Browse Source

make sure that CTR->pad[] is aligned to 16 bytes

Fixes #549
Steffen Jaeckel 4 years ago
parent
commit
ea7d8eb541
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/headers/tomcrypt_cipher.h

+ 2 - 2
src/headers/tomcrypt_cipher.h

@@ -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;