diff options
author | Daniel Schadt <kingdread@gmx.de> | 2025-04-10 23:08:10 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2025-04-10 23:08:10 +0200 |
commit | eecd8fb23edb86223f8e3c6ac18df7c1dc596151 (patch) | |
tree | 170fad5455e097195da2fa52bb9cec09c443dc77 /src/accessor.rs | |
parent | 0009a24bfb76fe425844c99769148d66c23a7225 (diff) | |
download | zears-eecd8fb23edb86223f8e3c6ac18df7c1dc596151.tar.gz zears-eecd8fb23edb86223f8e3c6ac18df7c1dc596151.tar.bz2 zears-eecd8fb23edb86223f8e3c6ac18df7c1dc596151.zip |
only have a single AesImpl instance
When I first wrote the aesenc/aes4/aes10 functions, I didn't know yet
how they were going to be used, so I sticked to the spec as much as
possible. As it turns out, they are always used with the same keys, so
it's enough to "initialize" the AES once, and then re-use for multiple E
computations.
It's also beginning a lot to look like all of those functions should
actually be methods, which is something we can fix in the future (and
unite decipher/encipher).
Anyway, the speedup here is around 38% for the 1KiB benchmark, and 4%
for the 16KiB benchmark.
Diffstat (limited to 'src/accessor.rs')
0 files changed, 0 insertions, 0 deletions