We can't enforce 64-bit alignment of aes256 context w/ the current interface

This commit is contained in:
Frank Denis 2013-11-12 09:41:23 -08:00
parent deaa893ce4
commit 5a566c041c
2 changed files with 2 additions and 1 deletions

View File

@ -219,6 +219,7 @@ crypto_stream(unsigned char *out, unsigned long long outlen,
const unsigned char *n, const unsigned char *k)
{
unsigned char d[crypto_stream_BEFORENMBYTES];
crypto_stream_beforenm(d, k);
crypto_stream_afternm(out, outlen, n, d);

View File

@ -12,7 +12,7 @@ typedef uint32_t u32;
#define Nb 4
#pragma pack(push, 1)
__attribute__((aligned(64))) typedef struct ECRYPT_ctx
typedef struct ECRYPT_ctx
{
u32 round_key[Nr+1][4];
u32 counter[4];