lilliput-ae-reference-implementation

Implementations of Lilliput-AE submitted to the NIST LWC standardization process
git clone https://git.kevinlegouguec.net/lilliput-ae-reference-implementation
Log | Files | Refs | README

commit 590637c9e555d6ba6b9b0e8e871d1ed926b49911
parent cc2e0ab73ec7d971f8cdb36fc91895b79823ad9a
Author: Kévin Le Gouguec <kevin.legouguec@airbus.com>
Date:   Wed, 20 Feb 2019 15:31:02 +0100

Adaptation du code de α₅

Diffstat:
Msrc/add_tweakeyunrolled/tweakey.c | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/add_tweakeyunrolled/tweakey.c b/src/add_tweakeyunrolled/tweakey.c @@ -135,11 +135,13 @@ static void _multiply_MR(const uint8_t x[LANE_BYTES], uint8_t y[LANE_BYTES]) static void _multiply_MR2(const uint8_t x[LANE_BYTES], uint8_t y[LANE_BYTES]) { + uint8_t x_MR_4 = x[5] ^ x[6]<<3; + y[0] = x[2]; y[1] = x[3] ^ x[4]>>3; - y[2] = x[4] ^ x[5]>>3 ^ _M3(x[6]); - y[3] = x[5] ^ x[6]<<3; - y[4] = x[3]<<2 ^ x[6] ^ x[7]<<3; + y[2] = x[4] ^ x_MR_4>>3; + y[3] = x_MR_4; + y[4] = x[3]<<2 ^ x[6] ^ x[7]<<3; y[5] = x[4]<<2 ^ x[7]; y[6] = x[0]; y[7] = x[1];