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 2086562 - libotr should use gcry_pk_hash_sign()/gcry_pk_hash_verify() instead of gcry_pk_sign()/gcry_pk_verify()
Summary: libotr should use gcry_pk_hash_sign()/gcry_pk_hash_verify() instead of gcry_p...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: libotr
Version: 9.1
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: rc
: ---
Assignee: Joe Orton
QA Contact: František Hrdina
Šárka Jana
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-16 12:37 UTC by Clemens Lang
Modified: 2023-03-02 21:28 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
.`libotr` is not compliant with FIPS The `libotr` library and toolkit for off-the-record (OTR) messaging provides end-to-end encryption for instant messaging conversations. However, the `libotr` library does not conform to the Federal Information Processing Standards (FIPS) due to its use of the `gcry_pk_sign()` and `gcry_pk_verify()` functions. As a result, you cannot use the `libotr` library in FIPS mode.
Clone Of:
Environment:
Last Closed: 2023-02-14 14:47:07 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-6238 0 None None None 2022-05-16 12:37:11 UTC
Red Hat Issue Tracker RHELPLAN-122108 0 None None None 2022-05-16 12:43:57 UTC

Description Clemens Lang 2022-05-16 12:37:11 UTC
Description of problem:
In libotr-4.1.1/src/privkey.c, libotr uses gcry_pk_sign() and gcry_pk_verify() from libgcrypt. This API is not FIPS-compliant, because hash and signature are computed separately and not together inside of the boundary of the libgcrypt FIPS module. You should consider using the gcry_pk_hash_sign() and gcry_pk_hash_verify() functions introduced in libgcrypt-1.10 instead.

Version-Release number of selected component (if applicable):
4.1.1-13.el9

How reproducible:
grep -rE 'gcry_pk_(sign|verify)' .

Actual results:
gcry_pk_sign() and gcry_pk_verify() are used.

Expected results:
gcry_pk_hash_sign() and gcry_pk_hash_verify() are used to compute the digest to be signed inside of the FIPS module boundary.

Additional info:
See https://dev.gnupg.org/T4894, where this function was introduced. From what I can see, it should be possible to use it with an HMAC, although it seems that was never discussed upstream.

I don't know if libotr is supported in FIPS mode.


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