-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reuse hmac instance in AES-CTR-HMAC streaming AEAD.
For 4k segment size this reduces the number of bytes allocated by almost 5x. Before: BenchmarkEncryptDecrypt/AES128_CTR_HMAC_SHA256_4KB-8 9 113506814 ns/op 4923624 B/op 57864 allocs/op After: BenchmarkEncryptDecrypt/AES128_CTR_HMAC_SHA256_4KB-8 10 103825294 ns/op 1092451 B/op 33096 allocs/op PiperOrigin-RevId: 633105527 Change-Id: Ida36ad73c21f014e480cf3ecdd91445d614622f4
- Loading branch information
1 parent
d082851
commit 3b8e748
Showing
1 changed file
with
12 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters