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 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)
}