RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2142121 - In FIPS mode, openssl should reject SHAKE as digest for RSA-OAEP or provide an indicator
Summary: In FIPS mode, openssl should reject SHAKE as digest for RSA-OAEP or provide a...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: openssl
Version: 9.0
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: Clemens Lang
QA Contact: Hubert Kario
Jan Fiala
URL:
Whiteboard:
Depends On:
Blocks: 2144010 2144011
TreeView+ depends on / blocked
 
Reported: 2022-11-11 17:16 UTC by Clemens Lang
Modified: 2023-05-09 10:31 UTC (History)
4 users (show)

Fixed In Version: openssl-3.0.7-5.el9
Doc Type: Deprecated Functionality
Doc Text:
.OpenSSL in FIPS mode cannot use SHAKE-128 and SHAKE-256 for composite operations The National Institute of Standards and Technology (NIST) allows only the SHAKE algorithms to be used as standalone functions. With this update, OpenSSL in FIPS mode can no longer use the SHAKE-128 and SHAKE-256 expandable output functions for composite operations, such as message digest signatures and mask generation functions.
Clone Of:
: 2144010 2144011 (view as bug list)
Environment:
Last Closed: 2023-05-09 08:20:47 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CRYPTO-8750 0 None None None 2022-11-14 10:21:58 UTC
Red Hat Issue Tracker RHELPLAN-139205 0 None None None 2022-11-11 17:25:28 UTC
Red Hat Product Errata RHSA-2023:2523 0 None None None 2023-05-09 08:21:25 UTC

Description Clemens Lang 2022-11-11 17:16:31 UTC
Description of problem:
According to FIPS 140-3 IG, section C.C, while SHA-3 may be used in higher-level algorithms (such as RSA-OAEP and RSASSA-PSS), SHAKE128 and SHAKE256 may not:

"To be used in an approved mode of operation, the SHA-3 hash functions may be implemented either as part of an approved higher-level algorithm, for example, a digital signature algorithm, or as the standalone functions. The SHAKE128 and SHAKE256 extendable-output functions may only be used as the standalone algorithms."

Version-Release number of selected component (if applicable):
3.0.1-43.el9_0

How reproducible:
Attempt to use RSA-OAEP encryption with one of the SHAKE digests in rsa_oaep_md.

Steps to Reproduce:
1. openssl genpkey -algorithm rsa -pkeyopt rsa_keygen_bits:2048 -out rsa2048.pem
2. openssl rand -out secret 64
3. openssl pkeyutl -encrypt -inkey rsa2048.pem -in secret -out wrapped-secret -pkeyopt rsa_padding_mode:oaep -pkeyopt rsa_oaep_md:shake256

Actual results:
Encryption succeeds

Expected results:
pkeyutl: Can't set parameter "rsa_oaep_md:md5":
802BCA725F7F0000:error:0308010C:digital envelope routines:?????:digest not allowed

Additional info:
https://csrc.nist.gov/CSRC/media/Projects/cryptographic-module-validation-program/documents/fips%20140-3/FIPS%20140-3%20IG.pdf

Comment 17 errata-xmlrpc 2023-05-09 08:20:47 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Low: openssl security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:2523


Note You need to log in before you can comment on or make changes to this bug.