mirror of
https://github.com/restic/restic.git
synced 2026-11-25 15:17:50 +00:00
Use large, dynamic buffer for encrypting maps
This commit is contained in:
1 parent
2d8dc7b695
commit
719e121c74
6 files changed
+48
-10
No files matched your search
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user