diff options
author | Dmitry Belyavskiy <beldmit@gmail.com> | 2021-12-21 16:52:25 +0100 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2022-08-23 10:21:25 +1000 |
commit | c63e8637fd79c826b3c438cf99cf7f1b293e8318 (patch) | |
tree | 6446474bbef797f7abb8bef3f4f852cf07949a9f | |
parent | 4c10099086dd75d583317056fb5ce0f88825bf0c (diff) | |
download | openssl-new-c63e8637fd79c826b3c438cf99cf7f1b293e8318.tar.gz |
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)
-rw-r--r-- | apps/speed.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/speed.c b/apps/speed.c index 2eab740fc5..469a1a4441 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -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; |