Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce memory-allocations in PrfAesCmac.compute.
The function now only allocates 4 objects with a combined size of 144 bytes. Before this change, the function allocated 41104 bytes and 1284 object when the input data had size 10 kB. This change also reduces the memory consumption of AES-SIV: for a 10 kB input, the memory allocation for both encrypt and decrypt is reduced from about 62kB to about 21kB. And the runtime is also reduced by about 30%. PiperOrigin-RevId: 646377300 Change-Id: I98fcada07d11553abcf596f9542d0102f66756af
- Loading branch information