summaryrefslogtreecommitdiff
path: root/crypto_aead/lilliputaei128v1/ref/lilliput-ae-i.c
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2018-11-26 15:41:56 +0100
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2018-11-26 15:42:24 +0100
commit384266125a9ada7f011e4e742f4cb88045a66bca (patch)
tree90ea5238bc74e27c788799340e5dfbf931c99e08 /crypto_aead/lilliputaei128v1/ref/lilliput-ae-i.c
parent5e48d6b0824773c41ecac4afd6129bbc8c908454 (diff)
downloadlilliput-ae-implem-384266125a9ada7f011e4e742f4cb88045a66bca.tar.xz
Correction d'un XOR intempestif
"Tiens c'est marrant mon octet vaut zéro un coup sur deux." (Test toujours KO pour le moment)
Diffstat (limited to 'crypto_aead/lilliputaei128v1/ref/lilliput-ae-i.c')
-rw-r--r--crypto_aead/lilliputaei128v1/ref/lilliput-ae-i.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto_aead/lilliputaei128v1/ref/lilliput-ae-i.c b/crypto_aead/lilliputaei128v1/ref/lilliput-ae-i.c
index 3226be3..1ef1c24 100644
--- a/crypto_aead/lilliputaei128v1/ref/lilliput-ae-i.c
+++ b/crypto_aead/lilliputaei128v1/ref/lilliput-ae-i.c
@@ -86,7 +86,7 @@ static void _fill_ad_tweak(
/* Assume padding bytes have already been memset to 0. */
- tweak[TWEAK_BYTES-1] ^= prefix << 4;
+ tweak[TWEAK_BYTES-1] |= prefix << 4;
}
static void _fill_msg_tweak(