mirror of
https://github.com/openssl/openssl.git
synced 2025-01-24 13:55:42 +08:00
openssl speed fails in FIPS mode
...because it uses md5 for HMAC tests. Skip md5 in case of its unavailability. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17331)
This commit is contained in:
parent
4c10099086
commit
c63e8637fd
@ -2018,7 +2018,7 @@ int speed_main(int argc, char **argv)
|
||||
goto end;
|
||||
|
||||
if (!EVP_MAC_CTX_set_params(loopargs[i].mctx, params))
|
||||
goto end;
|
||||
goto skip_hmac; /* Digest not found */
|
||||
}
|
||||
for (testnum = 0; testnum < size_num; testnum++) {
|
||||
print_message(names[D_HMAC], c[D_HMAC][testnum], lengths[testnum],
|
||||
@ -2035,7 +2035,7 @@ int speed_main(int argc, char **argv)
|
||||
EVP_MAC_free(mac);
|
||||
mac = NULL;
|
||||
}
|
||||
|
||||
skip_hmac:
|
||||
if (doit[D_CBC_DES]) {
|
||||
int st = 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user