summaryrefslogtreecommitdiffstats
path: root/providers/common/ciphers/aes.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2019-04-16 15:37:23 +0100
committerMatt Caswell <matt@openssl.org>2019-04-19 09:31:54 +0100
commit64adf9aac765f0872c33d225c57e5c128f5d7c69 (patch)
tree5636c9c357ea61ea56599fcd1a03cb416a9da86a /providers/common/ciphers/aes.c
parent3a7b15e484f950d4cb4061d93839802ecb74f8e5 (diff)
Fix the S390X support for the basic AES ciphers
Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8700)
Diffstat (limited to 'providers/common/ciphers/aes.c')
-rw-r--r--providers/common/ciphers/aes.c2
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; \
}