Do not precalculate OCB offset L0+L1+L0
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Sun, 27 Jan 2019 10:55:22 +0000 (12:55 +0200)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Sun, 27 Jan 2019 10:55:22 +0000 (12:55 +0200)
commitafab94d222425ecb838eb56cb0723bdaf3e5de36
tree3ef0517d57861f44c93b826ecfcad7c7b1bf7048
parentc15409c49993166ab1325d45360b3a8fe72a5556
Do not precalculate OCB offset L0+L1+L0

* cipher/cipher-internal.h (gcry_cipher_handle): Remove OCB L0L1L0.
* cipher/cipher-ocb.c (_gcry_cipher_ocb_setkey): Ditto.
* cipher/rijndael-aesni.c (aesni_ocb_enc, aesni_ocb_dec)
(_gcry_aes_aesni_ocb_auth): Replace L0L1L0 use with L1.
--

Patch fixes L0+L1+L0 thinko. This is same as L1 (L0 xor L1 xor L0).

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
cipher/cipher-internal.h
cipher/cipher-ocb.c
cipher/rijndael-aesni.c