From: Dr. Stephen Henson Date: Sun, 7 Mar 2010 15:52:41 +0000 (+0000) Subject: oops, make EVP ctr mode work again X-Git-Tag: OpenSSL-fips-2_0-rc1~1215 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49436b59b505d9e49ac06e4d544d748f78689036;p=openssl oops, make EVP ctr mode work again --- 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);