diff options
author | Fangming.Fang <fangming.fang@arm.com> | 2021-04-02 11:17:05 +0000 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2021-04-07 23:27:03 +1000 |
commit | bec9289143c955b330a8f9ad32f26f3da76e2685 (patch) | |
tree | e2f80f45224e04576f7d637ff25b54076e264dc1 /providers/implementations | |
parent | 30573117bbfef0991b522fd0f7c3d4abc5e296cd (diff) |
Fix AES-CBC perf test failure issue
As ossl_cipher_generic dosen't support to set key length, and
"openssl speed aes-(128|192|256)-cbc" tests fail. A small fix by
adding OSSL_CIPHER_PARAM_KEYLEN params.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14777)
Diffstat (limited to 'providers/implementations')
-rw-r--r-- | providers/implementations/ciphers/ciphercommon.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/providers/implementations/ciphers/ciphercommon.c b/providers/implementations/ciphers/ciphercommon.c index 53ecbc9012..73d39ad1eb 100644 --- a/providers/implementations/ciphers/ciphercommon.c +++ b/providers/implementations/ciphers/ciphercommon.c @@ -97,6 +97,7 @@ CIPHER_DEFAULT_GETTABLE_CTX_PARAMS_END(ossl_cipher_generic) CIPHER_DEFAULT_SETTABLE_CTX_PARAMS_START(ossl_cipher_generic) OSSL_PARAM_uint(OSSL_CIPHER_PARAM_TLS_VERSION, NULL), OSSL_PARAM_size_t(OSSL_CIPHER_PARAM_TLS_MAC_SIZE, NULL), +OSSL_PARAM_size_t(OSSL_CIPHER_PARAM_KEYLEN, NULL), CIPHER_DEFAULT_SETTABLE_CTX_PARAMS_END(ossl_cipher_generic) /* |