Do not precalculate OCB offset L0+L1+L0

Authored by jukivili on Jan 27 2019, 11:55 AM.

Description

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>

Details

Committed
jukiviliJan 27 2019, 11:55 AM
Parents
rCc15409c49993: Calculate OCB L-tables when setting key instead of when setting nonce
Branches
Unknown
Tags
Unknown