diff --git a/src/libstrongswan/plugins/sha3/sha3_keccak.c b/src/libstrongswan/plugins/sha3/sha3_keccak.c index 69df057d3..480855692 100644 --- a/src/libstrongswan/plugins/sha3/sha3_keccak.c +++ b/src/libstrongswan/plugins/sha3/sha3_keccak.c @@ -59,18 +59,18 @@ struct private_sha3_keccak_t { /** * Internal state of 1600 bits as defined by FIPS-202 */ - uint8_t state[KECCAK_STATE_SIZE]; + uint8_t state[KECCAK_STATE_SIZE] __attribute__((aligned(8))); + + /** + * Rate input buffer + */ + uint8_t rate_buffer[KECCAK_MAX_RATE] __attribute__((aligned(8))); /** * Rate in bytes */ u_int rate; - /** - * Rate input buffer - */ - uint8_t rate_buffer[KECCAK_MAX_RATE]; - /** * Index pointing to the current position in the rate buffer */