summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2010-03-07 15:52:41 +0000
committerDr. Stephen Henson <steve@openssl.org>2010-03-07 15:52:41 +0000
commit49436b59b505d9e49ac06e4d544d748f78689036 (patch)
tree30f6ff2e0b551434c6f98728494711f55ba86f5c /crypto
parent9ef6fe8c2e9d67ede553a6ce9e154b179600ede5 (diff)
oops, make EVP ctr mode work again
Diffstat (limited to 'crypto')
-rw-r--r--crypto/evp/e_aes.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/evp/e_aes.c b/crypto/evp/e_aes.c
index eacc306fb4..2096399631 100644
--- a/crypto/evp/e_aes.c
+++ b/crypto/evp/e_aes.c
@@ -100,6 +100,7 @@ static int aes_counter (EVP_CIPHER_CTX *ctx, unsigned char *out,
const unsigned char *in, size_t len)
{
unsigned int num;
+ num = ctx->num;
AES_ctr128_encrypt (in,out,len,
&((EVP_AES_KEY *)ctx->cipher_data)->ks,
ctx->iv,ctx->buf,&num);