Bug 2087253

Summary: openssl speed failures with -engine ibmca
Product: Red Hat Enterprise Linux 9 Reporter: Alicja Kario <hkario>
Component: opensslAssignee: Dmitry Belyavskiy <dbelyavs>
Status: CLOSED CURRENTRELEASE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: low Docs Contact: Jan Fiala <jafiala>
Priority: low    
Version: 9.0CC: dbelyavs, jafiala
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
.OpenSSL cannot use engines in FIPS mode Engine API is deprecated in OpenSSL 3.0 and is incompatible with OpenSSL Federal Information Processing Standards (FIPS) implementation and other FIPS-compatible implementations. Therefore, OpenSSL cannot run engines in FIPS mode. There is no workaround for this problem.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-08 15:36:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alicja Kario 2022-05-17 16:55:14 UTC
Description of problem:
When running openssl speed -engine ibmca, openssl reports multiple errors

Version-Release number of selected component (if applicable):
openssl-ibmca-2.2.2-1.el9.s390x
openssl-3.0.1-24.el9_0

How reproducible:
always

Steps to Reproduce:
1. openssl speed -engine ibmca

Actual results:
Doing sha512 for 3s on 16384 size blocks: 623699 sha512's in 2.98s
Doing hmac(md5) for 3s on 16 size blocks: hmac(md5) error!
000003FFA0EF2720:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:349:FIPS internal library context, Algorithm (md5 : 0), Properties (<null>)
RSA sign setup failure.  No RSA sign will be done.
000003FFA0EF2720:error:1C800069:Provider routines:ossl_rsa_check_key:invalid key length:providers/common/securitycheck.c:66:operation: 16
RSA verify setup failure.  No RSA verify will be done.
DSA sign setup failure.  No DSA sign will be done.
000003FFA0EF2720:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:349:Global default library context, Algorithm (DSA : 103), Properties (<null>)
DSA verify setup failure.  No DSA verify will be done.
EC params init failure.
000003FFA0EF2720:error:0800008D:elliptic curve routines:group_new_from_name:invalid curve:crypto/ec/ec_lib.c:1490:
ECDH key generation failure.
EdDSA failure.
000003FFA0EF2720:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:349:Global default library context, Algorithm (ED25519 : 109), Properties (<null>)
EdDSA failure.
000003FFA0EF2720:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:349:Global default library context, Algorithm (ED448 : 110), Properties (<null>)

Expected results:
speed should not try algorithms in FIPS mode which are not fips approved

Additional info:

Comment 1 Dmitry Belyavskiy 2022-07-18 15:37:37 UTC
I tend to not fix this issue. Engines in FIPS mode is not supported combination, so any behavior is relevant. Probably we should raise an error if we see an engine in command line in FIPS mode but I don't think it's worth efforts.