openssl speed fails in FIPS mode
...because it uses md5 for HMAC tests. Skip md5 in case of its
unavailability.
@@ -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;
