diff options
Diffstat (limited to 'providers/common/ciphers/aes.c')
-rw-r--r-- | providers/common/ciphers/aes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/common/ciphers/aes.c b/providers/common/ciphers/aes.c index 1d2207a292..d98a5c520b 100644 --- a/providers/common/ciphers/aes.c +++ b/providers/common/ciphers/aes.c @@ -231,7 +231,7 @@ static int aes_cipher(void *vctx, unsigned char *out, const unsigned char *in, \ ctx->pad = 1; \ ctx->keylen = (len / 8); \ - ctx->ciph = PROV_AES_CIPHER_##lcmode(); \ + ctx->ciph = PROV_AES_CIPHER_##lcmode(ctx->keylen); \ ctx->mode = EVP_CIPH_##UCMODE##_MODE; \ return ctx; \ } |