Closed jengelh closed 2 years ago
I was not able to reproduce this locally (Fedora 35 IIRC)
Maybe it's a bug in rpm's libgcrypt code. AFAIK SUSE uses libgcrypt whereas Fedora uses openssl.
libgcrypt is not a good choice; I would prefer the kernel crypto API or Nettle.
Well, this is only about signature verification so side channel attacks don't matter. And the library has to be FIPS certified.
Well, this is only about signature verification so side channel attacks don't matter. And the library has to be FIPS certified.
Which both Nettle and the kernel crypto API are.
Nettle has a FIPS certification? I can't find anything on the web, can you give me a pointer?
Nettle has a FIPS certification? I can't find anything on the web, can you give me a pointer?
Let me rephrase that: I presume that the Nettle provided by Red Hat Enterprise Linux is FIPS certified. And Fedora/CentOS Stream/etc do not have certified OpenSSL or libgcrypt libraries unless I have missed something.
@jengelh can you post the output of rpm -qv libgcrypt
?
Name : libgcrypt20
Version : 1.9.4
Release : 3.3
Architecture: x86_64
Install Date: Tue 22 Feb 2022 03:12:16 PM CET
Group : System/Libraries
Size : 1328155
License : GPL-2.0-or-later AND LGPL-2.1-or-later
Signature : RSA/SHA256, Sat 19 Feb 2022 11:06:26 PM CET, Key ID b88b2fd43dbdc284
Source RPM : libgcrypt-1.9.4-3.3.src.rpm
Build Date : Sat 19 Feb 2022 11:01:31 PM CET
Build Host : cloud124
Packager : https://bugs.opensuse.org
Vendor : openSUSE
URL : https://gnupg.org/software/libgcrypt
Summary : The GNU Crypto Library
Description :
Libgcrypt is a general purpose crypto library based on the code used in
GnuPG (alpha version).
Distribution: openSUSE Tumbleweed
@jengelh what is your default hash algorithm? If your RPM does not contain a1fac5beef99969f2a4ff28a8f916b30bdaea8b5 and you are using SHA-384 or SHA-512 this will be the result. I suggest filing a bug report with openSUSE asking for a backport of a1fac5beef99969f2a4ff28a8f916b30bdaea8b5.
Indeed my gnupg.conf has this part
personal-digest-preferences SHA512 SHA384 ...
cert-digest-algo SHA512
default-preference-list SHA512 SHA384 ...
Okay so this is already fixed (by a1fac5beef99969f2a4ff28a8f916b30bdaea8b5) and also headed for 4.17.1 (#2089), closing.
I'm on rpm-4.17.0 and gpg2-2.3.4 on openSUSE Tumbleweed.