Skip to content

Commit ea7d8eb

Browse files
committed
make sure that CTR->pad[] is aligned to 16 bytes
Fixes #549
1 parent 8f36c37 commit ea7d8eb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/headers/tomcrypt_cipher.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,9 @@ typedef struct {
318318
ctrlen;
319319

320320
/** The counter */
321-
unsigned char ctr[MAXBLOCKSIZE],
321+
unsigned char ctr[MAXBLOCKSIZE];
322322
/** The pad used to encrypt/decrypt */
323-
pad[MAXBLOCKSIZE];
323+
unsigned char pad[MAXBLOCKSIZE] LTC_ALIGN(16);
324324
/** The scheduled key */
325325
symmetric_key key;
326326
} symmetric_CTR;

0 commit comments

Comments
 (0)