Use large, dynamic buffer for encrypting maps

This commit is contained in:
Alexander Neumann committed 2014-11-23 22:58:41 +01:00
1 parent 2d8dc7b695
commit 719e121c74
6 files changed
+48 -10

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ func BenchmarkChunkEncrypt(b *testing.B) {
ok(b, err)
buf := make([]byte, khepri.MaxCiphertextSize)
buf := make([]byte, khepri.CiphertextExtension+chunker.MaxSize)
_, err = key.Encrypt(buf, chunk_data.Data)
ok(b, err)
}