From d1f13a65704e6426ee5b52df4255a56690e74a36 Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Thu, 22 Oct 2020 09:43:40 -0600 Subject: [PATCH] rearrange Rc2 struct for optimal alignment --- wolfssl/wolfcrypt/rc2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfssl/wolfcrypt/rc2.h b/wolfssl/wolfcrypt/rc2.h index 7b2330f6b..7a8bc6998 100644 --- a/wolfssl/wolfcrypt/rc2.h +++ b/wolfssl/wolfcrypt/rc2.h @@ -37,11 +37,11 @@ enum { /* RC2 encryption and decryption */ typedef struct Rc2 { - word32 keylen; /* key length, octets */ - word32 bits; /* effective key length, bits */ ALIGN16 word16 key[RC2_MAX_KEY_SIZE/2]; ALIGN16 word32 reg[RC2_BLOCK_SIZE / sizeof(word32)]; /* for CBC mode */ ALIGN16 word32 tmp[RC2_BLOCK_SIZE / sizeof(word32)]; /* same */ + word32 keylen; /* key length, octets */ + word32 bits; /* effective key length, bits */ } Rc2; WOLFSSL_API int wc_Rc2SetKey(Rc2* rc2, const byte* key, word32 length,