]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - providers/implementations/ciphers/cipher_aes_ocb.c
Various cleanup of PROV_R_ reason codes
[thirdparty/openssl.git] / providers / implementations / ciphers / cipher_aes_ocb.c
index b94d7644df346e2be30ecaa8c89c72301e0cd6d3..faa6cb470c56b07c3875ee0fd6597ec02a91edea 100644 (file)
@@ -451,7 +451,7 @@ static int aes_ocb_get_ctx_params(void *vctx, OSSL_PARAM params[])
             return 0;
         }
         if (!ctx->base.enc || p->data_size != ctx->taglen) {
-            ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_TAGLEN);
+            ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_TAG_LENGTH);
             return 0;
         }
         memcpy(p->data, ctx->tag, ctx->taglen);