فهرست منبع

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

Fixes #549
Steffen Jaeckel 4 سال پیش
والد
کامیت
ea7d8eb541
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/headers/tomcrypt_cipher.h

+ 2 - 2
src/headers/tomcrypt_cipher.h

@@ -318,9 +318,9 @@ typedef struct {
                        ctrlen;
                        ctrlen;
 
 
    /** The counter */
    /** The counter */
-   unsigned char       ctr[MAXBLOCKSIZE],
+   unsigned char       ctr[MAXBLOCKSIZE];
    /** The pad used to encrypt/decrypt */
    /** The pad used to encrypt/decrypt */
-                       pad[MAXBLOCKSIZE];
+   unsigned char       pad[MAXBLOCKSIZE] LTC_ALIGN(16);
    /** The scheduled key */
    /** The scheduled key */
    symmetric_key       key;
    symmetric_key       key;
 } symmetric_CTR;
 } symmetric_CTR;