]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - providers/implementations/ciphers/ciphercommon.c
Various cleanup of PROV_R_ reason codes
[thirdparty/openssl.git] / providers / implementations / ciphers / ciphercommon.c
index 2e0603ce195fae4ce5040bad3b1bd5042363cfaf..9f6c82bdddd1b8ebdaf0527adedc6486889a1bd6 100644 (file)
@@ -191,7 +191,7 @@ static int cipher_generic_init_internal(PROV_CIPHER_CTX *ctx,
     if (key != NULL) {
         if (ctx->variable_keylength == 0) {
             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;
             }
         } else {
@@ -613,7 +613,7 @@ int ossl_cipher_generic_initiv(PROV_CIPHER_CTX *ctx, const unsigned char *iv,
 {
     if (ivlen != ctx->ivlen
         || ivlen > sizeof(ctx->iv)) {
-        ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_IVLEN);
+        ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_IV_LENGTH);
         return 0;
     }
     ctx->iv_set = 1;