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 879047 - symmetric encryption/decryption doesn't work in FIPS mode
Summary: symmetric encryption/decryption doesn't work in FIPS mode
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: gnupg2
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Tomas Mraz
QA Contact: Ondrej Moriš
URL:
Whiteboard:
Depends On:
Blocks: 839624 879088 883111
TreeView+ depends on / blocked
 
Reported: 2012-11-21 22:40 UTC by Miloslav Trmač
Modified: 2014-06-13 09:32 UTC (History)
2 users (show)

Fixed In Version: gnupg2-2.0.19-6.el7
Doc Type: Bug Fix
Doc Text:
Prior to this update, the GnuPG encryption and signing tool, gpg2, by default used CAST5, an encryption algorithm not approved by FIPS standards. Consequently, when gpg2 was run in FIPS mode, data encryption and decryption failed and caused gpg2 to terminate unexpectedly. With this update, GnuPG uses AES, a FIPS-approved encryption algorithm, and gpg2 data encryption and decryption in FIPS mode work as intended.
Clone Of:
: 966493 (view as bug list)
Environment:
Last Closed: 2014-06-13 09:32:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Miloslav Trmač 2012-11-21 22:40:45 UTC
In FIPS mode:

$ gpg2 -c -o foo
Ohhhh jeeee: cipher 3 not found
fatal error in libgcrypt, file misc.c, line 139, function _gcry_logv: internal error (fatal or bug)
Neúspěšně ukončen (SIGABRT)

the default cipher seems to be CAST5, which is prohibited.  Perhaps gpg could automatically fall back to FIPS-approved cipher algorithms?

As a workaround, it is possible manually specify --cipher-algo AES. ; however, even in that case decryption unnecessarily(?) complains
> DBG: md_enable: algorithm 3 not available

Comment 1 Miloslav Trmač 2012-11-22 00:41:43 UTC
Decryption of CAST5-encrypted data fails similarly:

$ gpg2 --decrypt foo 
gpg: zašifrováno neznámým algoritmem 3
Ohhhh jeeee: cipher 3 not found
fatal error in libgcrypt, file misc.c, line 139, function _gcry_logv: internal error (fatal or bug)
Neúspěšně ukončen (SIGABRT) (core dumped [obraz paměti uložen])

Comment 2 Tomas Mraz 2012-11-22 07:07:00 UTC
I don't want to diverge from upstream more than necessary. So I agree that the default in FIPS mode should be changed to cipher allowed in the FIPS mode. But I am hesitant to change the abort if the user explicitly asks for CAST5.

Comment 3 Tomas Mraz 2012-11-22 20:32:12 UTC
Fixed in Fedora gnupg2-2.0.19-6.fc18

Comment 5 Ondrej Moriš 2013-08-29 13:50:36 UTC
Successfully verified.

Old (gnupg2-2.0.19-4.el7):

# gpg2 -c  -o test
gpg: Ohhhh jeeee: ... this is a bug (passphrase.c:118:hash_passphrase)
Aborted

New (gnupg2-2.0.20-1.el7):

# gpg2 -c  -o test
test

Comment 6 Ludek Smid 2014-06-13 09:32:46 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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