mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
We can't enforce 64-bit alignment of aes256 context w/ the current interface
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user