oops, make EVP ctr mode work again
authorDr. Stephen Henson <steve@openssl.org>
Sun, 7 Mar 2010 15:52:41 +0000 (15:52 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 7 Mar 2010 15:52:41 +0000 (15:52 +0000)
crypto/evp/e_aes.c

index eacc306..2096399 100644 (file)
@@ -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);