You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move udiv and sencond tweak calculations to when needed (#2726)
### Issues:
Addresses CryptoAlg-2941
### Description of changes:
- We don't need to do `len DIV 0x50` until before the loop that
processes 5 blocks at a time.
- We don't need the computation of the second block's tweak (iv) until
we know we will use it.
Note: that iv was not needed in the case of 1 block + k bytes, k < 16,
i.e. cipher-stealing case of tail1x, because that iv is anyway computed
before cipher-stealing, so it was actually computed twice before this
move.
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license and the ISC license.
0 commit comments