Skip to content

Commit

Permalink
make sure that CTR->pad[] is aligned to 16 bytes
Browse files Browse the repository at this point in the history
Fixes #549
  • Loading branch information
sjaeckel committed Feb 10, 2021
1 parent 57d4ac2 commit 38ff3c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/headers/tomcrypt_cipher.h
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,9 @@ typedef struct {
ctrlen;

/** The counter */
unsigned char ctr[MAXBLOCKSIZE],
unsigned char ctr[MAXBLOCKSIZE];
/** The pad used to encrypt/decrypt */
pad[MAXBLOCKSIZE];
unsigned char pad[MAXBLOCKSIZE] LTC_ALIGN(16);
/** The scheduled key */
symmetric_key key;
} symmetric_CTR;
Expand Down

0 comments on commit 38ff3c8

Please sign in to comment.