mirror of
https://github.com/restic/restic.git
synced 2025-08-21 23:17:26 +00:00
Use large, dynamic buffer for encrypting maps
This commit is contained in:
@@ -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