Various cleanup of PROV_R_ reason codes
[openssl.git] / providers / implementations / macs / kmac_prov.c
index 8f74c2306af57059b44abbfb87f2c31942b4618c..3a57dd0db69273e6e05e709a3faea6508e58cef4 100644 (file)
@@ -258,7 +258,7 @@ static int kmac_init(void *vmacctx)
 
     /* Check key has been set */
     if (kctx->key_len == 0) {
-        ERR_raise(ERR_LIB_EVP, EVP_R_NO_KEY_SET);
+        ERR_raise(ERR_LIB_PROV, PROV_R_NO_KEY_SET);
         return 0;
     }
     if (!EVP_DigestInit_ex(kctx->ctx, ossl_prov_digest_md(&kctx->digest),