summaryrefslogtreecommitdiffstats
path: root/providers/implementations/ciphers/cipher_des.c
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2021-02-05 18:51:37 +0100
committerTomas Mraz <tomas@openssl.org>2021-02-11 09:34:31 +0100
commitf5f29796f00b94d150087bc72469a4f60a67a23b (patch)
treeb1e64bf9f3b39d9a099e2b595ffc1b41cac5a175 /providers/implementations/ciphers/cipher_des.c
parent2741128e9deeb7f6fd73f10a1c657c05433a41cb (diff)
Various cleanup of PROV_R_ reason codes
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/14086)
Diffstat (limited to 'providers/implementations/ciphers/cipher_des.c')
-rw-r--r--providers/implementations/ciphers/cipher_des.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/implementations/ciphers/cipher_des.c b/providers/implementations/ciphers/cipher_des.c
index dd8bbefa36..11688080ce 100644
--- a/providers/implementations/ciphers/cipher_des.c
+++ b/providers/implementations/ciphers/cipher_des.c
@@ -89,7 +89,7 @@ static int des_init(void *vctx, const unsigned char *key, size_t keylen,
if (key != NULL) {
if (keylen != ctx->keylen) {
- ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_KEYLEN);
+ ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_KEY_LENGTH);
return 0;
}
return ctx->hw->init(ctx, key, keylen);