oops, make EVP ctr mode work again

This commit is contained in:
Dr. Stephen Henson 2010-03-07 15:52:41 +00:00
parent 9ef6fe8c2e
commit 49436b59b5

View 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);