projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42660b3
)
e_aes.c: fix bug in aesni_gcm_tls_cipher [in HEAD].
author
Andy Polyakov
<appro@openssl.org>
Fri, 14 Oct 2011 09:34:14 +0000
(09:34 +0000)
committer
Andy Polyakov
<appro@openssl.org>
Fri, 14 Oct 2011 09:34:14 +0000
(09:34 +0000)
crypto/evp/e_aes.c
patch
|
blob
|
history
diff --git
a/crypto/evp/e_aes.c
b/crypto/evp/e_aes.c
index 6dc923401201d2f1e438ba766273c83f3c17df51..43eda7444394aaf9d97e45f8754eb781212cf38e 100644
(file)
--- a/
crypto/evp/e_aes.c
+++ b/
crypto/evp/e_aes.c
@@
-338,6
+338,7
@@
static int aesni_gcm_tls_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
/* Encrypt payload */
if (CRYPTO_gcm128_encrypt_ctr32(&gctx->gcm, in, out, len,
aesni_ctr32_encrypt_blocks))
+ goto err;
out += len;
/* Finally write tag */
CRYPTO_gcm128_tag(&gctx->gcm, out, EVP_GCM_TLS_TAG_LEN);