Force 32-bit alignment on keys in tcrypt test vectors.

Signed-off-by: Atsushi Nemoto <[EMAIL PROTECTED]>

diff --git a/crypto/tcrypt.h b/crypto/tcrypt.h
index 733d07e..050f852 100644
--- a/crypto/tcrypt.h
+++ b/crypto/tcrypt.h
@@ -31,7 +31,7 @@ struct hash_testvec {
        char digest[MAX_DIGEST_SIZE];
        unsigned char np;
        unsigned char tap[MAX_TAP];
-       char key[128]; /* only used with keyed hash algorithms */
+       char key[128] __attribute__((__aligned__(4))); /* only used with keyed 
hash algorithms */
        unsigned char ksize;
 };
 
@@ -48,7 +48,7 @@ struct hmac_testvec {
 struct cipher_testvec {
        unsigned char fail;
        unsigned char wk; /* weak key flag */
-       char key[MAX_KEYLEN];
+       char key[MAX_KEYLEN] __attribute__((__aligned__(4)));
        unsigned char klen;
        char iv[MAX_IVLEN];
        char input[48];
-
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to