Use large, dynamic buffer for encrypting maps

This commit is contained in:
Alexander Neumann
2014-11-23 22:58:28 +01:00
parent 2d8dc7b695
commit 719e121c74
6 changed files with 48 additions and 10 deletions

View File

@@ -48,7 +48,7 @@ func TestCrypto(t *testing.T) {
Sign: tv.skey,
}
msg := make([]byte, MaxCiphertextSize)
msg := make([]byte, maxCiphertextSize)
n, err := r.encrypt(r.master, msg, tv.plaintext)
if err != nil {
t.Fatal(err)