We can't enforce 64-bit alignment of aes256 context w/ the current interface
This commit is contained in:
parent
deaa893ce4
commit
5a566c041c
@ -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);
|
||||
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user