From f3833d1e0e2d021a545a7ed7bb064f2d51cbf2dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Fri, 15 Feb 2002 14:20:09 +0100 Subject: (struct aes_table): New subtable idx_shift. Updated tables in aes_encrypt.c and aes_decrypt.c. Rev: src/nettle/aes-decrypt.c:1.2 Rev: src/nettle/aes-encrypt.c:1.2 Rev: src/nettle/aes-internal.h:1.6 --- aes-encrypt.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'aes-encrypt.c') diff --git a/aes-encrypt.c b/aes-encrypt.c index 940b9f3d..30511793 100644 --- a/aes-encrypt.c +++ b/aes-encrypt.c @@ -79,6 +79,10 @@ _aes_encrypt_table = { 1, 2, 3, 0 }, { 2, 3, 0, 1 }, { 3, 0, 1, 2 } }, + { /* idx_shift */ + { 1 * IDX_FACTOR, 2 * IDX_FACTOR, 3 * IDX_FACTOR, 0 * IDX_FACTOR }, + { 2 * IDX_FACTOR, 3 * IDX_FACTOR, 0 * IDX_FACTOR, 1 * IDX_FACTOR }, + { 3 * IDX_FACTOR, 0 * IDX_FACTOR, 1 * IDX_FACTOR, 2 * IDX_FACTOR } }, { /* dtable */ { 0xa56363c6,0x847c7cf8,0x997777ee,0x8d7b7bf6, -- cgit v1.2.1