Remove OPENSSL_assert() from crypto/hmac
Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3740)
This commit is contained in:
parent
de61c03cc7
commit
8f9ee7a33f
1 changed files with 2 additions and 1 deletions
|
@ -37,7 +37,8 @@ int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len,
|
|||
if (key != NULL) {
|
||||
reset = 1;
|
||||
j = EVP_MD_block_size(md);
|
||||
OPENSSL_assert(j <= (int)sizeof(ctx->key));
|
||||
if (!ossl_assert(j <= (int)sizeof(ctx->key)))
|
||||
goto err;
|
||||
if (j < len) {
|
||||
if (!EVP_DigestInit_ex(ctx->md_ctx, md, impl))
|
||||
goto err;
|
||||
|
|
Loading…
Reference in a new issue