Rearrange cmac's block_mulx, make it closer to xts_shift.
authorNiels Möller <nisse@lysator.liu.se>
Wed, 27 Mar 2019 05:30:58 +0000 (06:30 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Wed, 27 Mar 2019 05:30:58 +0000 (06:30 +0100)
commitb87ec212616765f920000b72d57b7a317e1a0c24
tree62149d349e8fc9d6615c5cc4251d06e45f6d4808
parent0beec6b237dc3b6b2aab25457173d1f353f133f4
Rearrange cmac's block_mulx, make it closer to xts_shift.

* xts.c (xts_shift): Arrange with a single write to u64[1].
* cmac.c (block_mulx): Rewrite to work in the same way as
xts_shift, with 64-bit operations. XTS and CMAC use opposite
endianness, but otherwise, these two functions are identical.
ChangeLog
cmac.c
xts.c