summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2013-02-08 09:43:01 +0100
committerAndy Polyakov <appro@openssl.org>2013-02-08 09:45:09 +0100
commit13e225300ff819754a2192229d8bbd329795d793 (patch)
tree525bfa9891bb97f120bdce30f8fc6cb8937ef5bb
parent26bc56d014c71a2ba436ddc8f244b92d34b1d6ec (diff)
downloadopenssl-new-13e225300ff819754a2192229d8bbd329795d793.tar.gz
e_aes_cbc_hmac_sha1.c: fine-tune cache line alignment.
With previous commit it also ensures that valgrind is happy.
-rw-r--r--crypto/evp/e_aes_cbc_hmac_sha1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/e_aes_cbc_hmac_sha1.c b/crypto/evp/e_aes_cbc_hmac_sha1.c
index 6a2628cf1a..483e04b605 100644
--- a/crypto/evp/e_aes_cbc_hmac_sha1.c
+++ b/crypto/evp/e_aes_cbc_hmac_sha1.c
@@ -247,7 +247,7 @@ static int aesni_cbc_hmac_sha1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
unsigned char c[32+SHA_DIGEST_LENGTH]; } mac, *pmac;
/* arrange cache line alignment */
- pmac = (void *)(((size_t)mac.c+32)&((size_t)0-32));
+ pmac = (void *)(((size_t)mac.c+31)&((size_t)0-32));
/* decrypt HMAC|padding at once */
aesni_cbc_encrypt(in,out,len,