Page MenuHome GnuPG
Feed Advanced Search

Aug 17 2021

gniibe added a comment to T5520: Fix tests in FIPS mode.

Sorry, I didn't test for non-FIPS mode when I committed rC347817438990: fips: Fix tests in fips mode..
Tweaking the value for memory allocation is needed for FIPS mode, because it uses some secure memory by DRBG.

Aug 17 2021, 4:06 AM · FIPS, libgcrypt, Bug Report

Aug 16 2021

gniibe updated the task description for T5556: Use of offsetof is better for allocation of flexible array.
Aug 16 2021, 10:17 AM · gnupg24, gpgme, libgcrypt
gniibe created T5556: Use of offsetof is better for allocation of flexible array.
Aug 16 2021, 10:17 AM · gnupg24, gpgme, libgcrypt
gniibe changed the status of T5244: libgcrypt: Restrict MD5 use from Open to Testing.

Since I think there is no reason why checking _gcry_enforced_fips_mode () here, I remove the check.

Aug 16 2021, 9:23 AM · Bug Report, FIPS, libgcrypt
gniibe committed rCacc1598ea891: cipher: Raise an error for non-approved digests correctly. (authored by gniibe).
cipher: Raise an error for non-approved digests correctly.
Aug 16 2021, 5:43 AM
gniibe committed rC44c7c41af21c: tests: Skip tests when FIPS for keygrip computations. (authored by gniibe).
tests: Skip tests when FIPS for keygrip computations.
Aug 16 2021, 5:43 AM
gniibe added a comment to T5244: libgcrypt: Restrict MD5 use.

Applied by rC0f118c2dfb8e: cipher: Do not use of non-approved digests in FIPS mode.

Aug 16 2021, 4:40 AM · Bug Report, FIPS, libgcrypt
gniibe committed rC347817438990: fips: Fix tests in fips mode. (authored by gniibe).
fips: Fix tests in fips mode.
Aug 16 2021, 3:51 AM
gniibe added a comment to rM3c1c98a43413: core: Use flexible array member if compiler has support..

There are two things here.
(1) Use of [] (FLEXIBLE_ARRAY_MEMBER)
(2) Use of offsetof (instead of sizeof) for computation of size of allocation.

Aug 16 2021, 2:37 AM

Aug 13 2021

gniibe committed rM3c1c98a43413: core: Use flexible array member if compiler has support. (authored by gniibe).
core: Use flexible array member if compiler has support.
Aug 13 2021, 8:36 AM

Aug 6 2021

gniibe committed rCca6797c5c5c6: fips: Fix check_binary_integrity. (authored by gniibe).
fips: Fix check_binary_integrity.
Aug 6 2021, 9:59 AM
gniibe triaged T5550: Fix check_binary_integrity as Normal priority.
Aug 6 2021, 9:37 AM · FIPS, libgcrypt
gniibe renamed T5547: Single thread support with newer GNU C library (2.34 or later) from Single thread support with newer GNU C library (2.32 or later) to Single thread support with newer GNU C library (2.34 or later).
Aug 6 2021, 9:19 AM · gpgrt
gniibe claimed T5547: Single thread support with newer GNU C library (2.34 or later).
Aug 6 2021, 9:19 AM · gpgrt
gniibe committed rE67595e8244ed: posix-lock: Support GNU C library 2.34 or later. (authored by gniibe).
posix-lock: Support GNU C library 2.34 or later.
Aug 6 2021, 7:13 AM
gniibe committed rE8538a83fd1b5: m4: Merge our local change for threadlib.m4. (authored by gniibe).
m4: Merge our local change for threadlib.m4.
Aug 6 2021, 7:13 AM
gniibe committed rE7ad1ff9673e4: m4: Update m4/threadlib.m4 from gnulib. (authored by gniibe).
m4: Update m4/threadlib.m4 from gnulib.
Aug 6 2021, 7:13 AM
gniibe added a comment to T5547: Single thread support with newer GNU C library (2.34 or later).

Here is the documentation of the new way of single-threaded execution:
https://www.gnu.org/software/libc/manual/html_node/Single_002dThreaded.html

Aug 6 2021, 4:17 AM · gpgrt

Aug 5 2021

gniibe committed rK379e787a9651: build: Simplify configure.ac. (authored by gniibe).
build: Simplify configure.ac.
Aug 5 2021, 9:24 AM
gniibe added a comment to T5547: Single thread support with newer GNU C library (2.34 or later).

We also need to update m4/threadlib.m4.
Now, it's maintained in gnulib.
See the changes in:
https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=12b5b00f93c6433c3df8176fc9674d7600f8b268

Aug 5 2021, 8:53 AM · gpgrt
gniibe edited projects for T5547: Single thread support with newer GNU C library (2.34 or later), added: gpgrt; removed libgcrypt.
Aug 5 2021, 8:34 AM · gpgrt
gniibe updated the task description for T5547: Single thread support with newer GNU C library (2.34 or later).
Aug 5 2021, 8:31 AM · gpgrt
gniibe added a project to T5547: Single thread support with newer GNU C library (2.34 or later): libgcrypt.
Aug 5 2021, 8:30 AM · gpgrt
gniibe created T5547: Single thread support with newer GNU C library (2.34 or later).
Aug 5 2021, 8:29 AM · gpgrt
gniibe committed rA669c76ee28c0: build: Simplify configure.ac. (authored by gniibe).
build: Simplify configure.ac.
Aug 5 2021, 8:29 AM
gniibe committed rEf8fe24a79232: build: Simplify checking headers. (authored by gniibe).
build: Simplify checking headers.
Aug 5 2021, 7:18 AM
gniibe committed rEb82b0d7a8d8f: core: Minor clean up. (authored by gniibe).
core: Minor clean up.
Aug 5 2021, 7:18 AM
gniibe committed rG29d58e9de783: build: Simplify for string.h and getopt.h. (authored by gniibe).
build: Simplify for string.h and getopt.h.
Aug 5 2021, 7:04 AM
gniibe committed rC538090d82948: build: Update checking headers. (authored by gniibe).
build: Update checking headers.
Aug 5 2021, 4:34 AM
gniibe committed rG100c954ab0d6: sm: Fix pwri. (authored by gniibe).
sm: Fix pwri.
Aug 5 2021, 4:20 AM
gniibe committed rGa89f13726d08: build: Update checking headers. (authored by gniibe).
build: Update checking headers.
Aug 5 2021, 3:41 AM
gniibe committed rG3f33c7ffcca0: build: Remove duplication of AC_HEADER_TIME. (authored by gniibe).
build: Remove duplication of AC_HEADER_TIME.
Aug 5 2021, 3:41 AM

Aug 4 2021

gniibe added a comment to T4894: FIPS: RSA/DSA/ECDSA are missing hashing operation.

Ah, I understand the point (at least, partially); My understanding is: With FIPS mode, at the module boundary (== libgcrypt), it ensures that all cipher/digest/etc. operations are done under the standard compliance, and it is considered wrong (violation) when non-FIPS mode operation (such as SHA-1) and FIPS mode operation are mixed.

Aug 4 2021, 5:39 AM · FIPS, libgcrypt, Feature Request

Aug 3 2021

gniibe committed rC8bf9ade071b8: tests: Fix values for DSA with larger key length. (authored by gniibe).
tests: Fix values for DSA with larger key length.
Aug 3 2021, 6:37 AM
gniibe committed rC7ac72ebaf7f7: fips: Support LIBGCRYPT_FORCE_FIPS_MODE envvar. (authored by gniibe).
fips: Support LIBGCRYPT_FORCE_FIPS_MODE envvar.
Aug 3 2021, 6:21 AM
gniibe triaged T5541: Envvar LIBGCRYPT_FORCE_FIPS_MODE as Normal priority.
Aug 3 2021, 4:53 AM · Feature Request, FIPS, libgcrypt
gniibe added a comment to T5540: Update fipsdrv and cavs_driver.pl.

SUSE has patches and version 3235 of cavs_driver.pl, bud it seems that it doesn't support DSA with Q+HASHALGO yet.

Aug 3 2021, 4:48 AM · FIPS, libgcrypt
gniibe triaged T5540: Update fipsdrv and cavs_driver.pl as Normal priority.
Aug 3 2021, 4:46 AM · FIPS, libgcrypt

Aug 2 2021

gniibe added a comment to T5539: Key generation on OpenPGP Version 3.4 card fails.

Thank you for the information.

Aug 2 2021, 8:08 AM · can't replicate, OpenPGP, scd, Bug Report, gpg4win
gniibe added a comment to T5539: Key generation on OpenPGP Version 3.4 card fails.

I checked with my OpenPGP card v3.4.
It works for me with GnuPG 2.2.x and 2.3.x.
My setting is for RSA-2048 key.

Aug 2 2021, 7:14 AM · can't replicate, OpenPGP, scd, Bug Report, gpg4win

Jul 29 2021

gniibe added a comment to T5520: Fix tests in FIPS mode.

As a start, I applied your patches.

Jul 29 2021, 7:38 AM · FIPS, libgcrypt, Bug Report
gniibe committed rC0ab4e8063729: tests: Verify unsupported KDF tests fail in FIPS mode (authored by Jakuje).
tests: Verify unsupported KDF tests fail in FIPS mode
Jul 29 2021, 7:38 AM
gniibe committed rC0f118c2dfb8e: cipher: Do not use of non-approved digests in FIPS mode (authored by Jakuje).
cipher: Do not use of non-approved digests in FIPS mode
Jul 29 2021, 7:38 AM
gniibe committed rCd2a26b30b5db: tests: Expect the 192b ECDSA tests to fail in fips mode (authored by Jakuje).
tests: Expect the 192b ECDSA tests to fail in fips mode
Jul 29 2021, 7:38 AM
gniibe committed rC6df523bfb095: tests: Skip secmem overflow test in FIPS mode (authored by Jakuje).
tests: Skip secmem overflow test in FIPS mode
Jul 29 2021, 7:38 AM
gniibe committed rC83893f3f77da: tests: Transient DSA keys work in FIPS mode (authored by Jakuje).
tests: Transient DSA keys work in FIPS mode
Jul 29 2021, 7:38 AM
gniibe committed rCa93d678fa5a3: tests: Generating DSA from domain should fail in FIPS mode (authored by Jakuje).
tests: Generating DSA from domain should fail in FIPS mode
Jul 29 2021, 7:38 AM
gniibe committed rC302614833152: tests: Expect curves 25519/448 to fail in FIPS mode (authored by Jakuje).
tests: Expect curves 25519/448 to fail in FIPS mode
Jul 29 2021, 7:38 AM
gniibe committed rCf56a33df60dc: tests: Do not expect GCM work in FIPS (authored by Jakuje).
tests: Do not expect GCM work in FIPS
Jul 29 2021, 7:38 AM
gniibe committed rCaa1e9ebf8bdb: mac: Disable AES GMAC in FIPS mode (authored by Jakuje).
mac: Disable AES GMAC in FIPS mode
Jul 29 2021, 7:38 AM
gniibe committed rC55dbac435c5b: tests: Skip unsupported mechanisms in FIPS mode (authored by Jakuje).
tests: Skip unsupported mechanisms in FIPS mode
Jul 29 2021, 7:38 AM
gniibe claimed T5508: Allow hardware optimizations in FIPS.
Jul 29 2021, 7:25 AM · FIPS, libgcrypt, Bug Report
gniibe changed the status of T5508: Allow hardware optimizations in FIPS from Open to Testing.
Jul 29 2021, 7:25 AM · FIPS, libgcrypt, Bug Report
gniibe committed rC70e6cec07d86: hwfeatures: Enable hardware support also in FIPS mode. (authored by gniibe).
hwfeatures: Enable hardware support also in FIPS mode.
Jul 29 2021, 7:25 AM
gniibe committed rC4a3e71403225: cipher: Support internal hashing for DSA and ECDSA signing. (authored by gniibe).
cipher: Support internal hashing for DSA and ECDSA signing.
Jul 29 2021, 5:24 AM
gniibe changed the status of T5530: Add "prehash" support to DSA and ECDSA signing from Open to Testing.
Jul 29 2021, 5:00 AM · Restricted Project, FIPS, libgcrypt, Feature Request
gniibe changed the status of T5530: Add "prehash" support to DSA and ECDSA signing, a subtask of T4894: FIPS: RSA/DSA/ECDSA are missing hashing operation, from Open to Testing.
Jul 29 2021, 5:00 AM · FIPS, libgcrypt, Feature Request

Jul 23 2021

gniibe triaged T5530: Add "prehash" support to DSA and ECDSA signing as Normal priority.
Jul 23 2021, 8:18 AM · Restricted Project, FIPS, libgcrypt, Feature Request
gniibe committed rC877be1bf9df0: cipher: Support internal hashing for RSA-PSS. (authored by gniibe).
cipher: Support internal hashing for RSA-PSS.
Jul 23 2021, 8:10 AM
gniibe committed rC285b4cb70df1: cipher: Extend RSA-PSS internal function for verify, too. (authored by gniibe).
cipher: Extend RSA-PSS internal function for verify, too.
Jul 23 2021, 8:10 AM
gniibe committed rC652e115e10f2: cipher: Check by caller instead, not by callee for RSA-PSS. (authored by gniibe).
cipher: Check by caller instead, not by callee for RSA-PSS.
Jul 23 2021, 8:10 AM
gniibe committed rC51307b1ceaa7: cipher: Extend RSA-PSS internal function. (authored by gniibe).
cipher: Extend RSA-PSS internal function.
Jul 23 2021, 8:10 AM
gniibe updated the task description for T5529: Support internal hashing for RSA-PSS.
Jul 23 2021, 7:36 AM · libgcrypt, Feature Request
gniibe updated the task description for T5529: Support internal hashing for RSA-PSS.
Jul 23 2021, 7:22 AM · libgcrypt, Feature Request
gniibe triaged T5529: Support internal hashing for RSA-PSS as Normal priority.
Jul 23 2021, 4:26 AM · libgcrypt, Feature Request

Jul 22 2021

gniibe committed rC7f401b9748c4: doc: Fix a typo. (authored by gniibe).
doc: Fix a typo.
Jul 22 2021, 9:57 AM
gniibe added projects to T5524: scd: serialize access of ctrl->card_ctx: Restricted Project, gnupg (gpg23).
Jul 22 2021, 4:38 AM · gnupg (gpg23), Restricted Project, scd
gniibe changed the status of T5524: scd: serialize access of ctrl->card_ctx from Open to Testing.
Jul 22 2021, 4:38 AM · gnupg (gpg23), Restricted Project, scd
gniibe committed rG5c8124b8b955: scd: Small clean up for card access. (authored by gniibe).
scd: Small clean up for card access.
Jul 22 2021, 4:23 AM
gniibe committed rG50ad29f9a72f: scd: Fix direct use of card with no ctrl->card_ctx. (authored by gniibe).
scd: Fix direct use of card with no ctrl->card_ctx.
Jul 22 2021, 2:46 AM

Jul 21 2021

gniibe committed rGb436fb6766b4: scd: Fix access to list of cards (2/3). (authored by gniibe).
scd: Fix access to list of cards (2/3).
Jul 21 2021, 10:32 AM
gniibe committed rG0d6b4210cf31: scd: Fix access to list of cards (3/3). (authored by gniibe).
scd: Fix access to list of cards (3/3).
Jul 21 2021, 10:32 AM
gniibe committed rG216945a80e7b: scd: Fix access to list of cards (1/3). (authored by gniibe).
scd: Fix access to list of cards (1/3).
Jul 21 2021, 10:32 AM

Jul 16 2021

gniibe added a comment to T4894: FIPS: RSA/DSA/ECDSA are missing hashing operation.

And... as long as I read the PCT patches, it is not needed to export those API to users.
It is only needed internally for PCT tests (at most).

Jul 16 2021, 10:12 AM · FIPS, libgcrypt, Feature Request
gniibe added a comment to T4894: FIPS: RSA/DSA/ECDSA are missing hashing operation.

I am considering API enhancement, for this task.

Jul 16 2021, 10:01 AM · FIPS, libgcrypt, Feature Request
gniibe added a comment to T5524: scd: serialize access of ctrl->card_ctx.

This rwlock guarantees access with ctrl->card_ctx is always valid.

Jul 16 2021, 8:42 AM · gnupg (gpg23), Restricted Project, scd
gniibe created T5524: scd: serialize access of ctrl->card_ctx.
Jul 16 2021, 8:40 AM · gnupg (gpg23), Restricted Project, scd

Jul 15 2021

gniibe committed rCdb9f7abb7af7: hmac: Use xfree. (authored by gniibe).
hmac: Use xfree.
Jul 15 2021, 8:16 AM

Jul 12 2021

gniibe created T5523: jitter entropy RNG update.
Jul 12 2021, 11:36 AM · FIPS, libgcrypt
gniibe added a comment to T4873: Enable AES GCM in FIPS mode.

(OpenSSL for FIPS support is a bit tricky, which is described in README-FIPS.md in their distribution. It offers OpenSSL FIPS provider as shared library fips.so.)

Jul 12 2021, 3:38 AM · FIPS, libgcrypt, Feature Request

Jul 9 2021

gniibe added a comment to T5512: Implement service indicators.

Just FYI, NSS offers following API:

Jul 9 2021, 8:11 AM · Feature Request, FIPS, libgcrypt

Jul 8 2021

gniibe added a comment to T5520: Fix tests in FIPS mode.

With `/etc/gcrypt/fips_enabled/', make check fails by:

Jul 8 2021, 6:50 AM · FIPS, libgcrypt, Bug Report
gniibe added a comment to T4873: Enable AES GCM in FIPS mode.

If I understand correctly, to conform FIPS, we need to ensure Key/IV pair uniqueness (See "Implementation Guidance for FIPS 140-3", Annex C. "C.H Key/IV Pair Uniqueness Requirements from SP 800-38D").
Use of the API to set IV by any value may be considered bad.

Jul 8 2021, 3:55 AM · FIPS, libgcrypt, Feature Request
gniibe added a comment to T5520: Fix tests in FIPS mode.

Update: still ./basic --fips fails (for me), because of GCM (18 errors).
Need to fix T4873: Enable AES GCM in FIPS mode.

Jul 8 2021, 2:58 AM · FIPS, libgcrypt, Bug Report

Jul 7 2021

gniibe committed rCccb076e8aabb: tests: Fix tests/basic.c for FIPS mode. (authored by gniibe).
tests: Fix tests/basic.c for FIPS mode.
Jul 7 2021, 9:32 AM
gniibe committed rC61c87070abc4: tests: Skip unavailable ciphers in FIPS mode. (authored by gniibe).
tests: Skip unavailable ciphers in FIPS mode.
Jul 7 2021, 9:32 AM
gniibe added a comment to T5520: Fix tests in FIPS mode.

I applied rC297d31294333: tests: Fix messages to STDERR when FIPS mode is enabled.. Please note that your intention to change check_digests is right, but your patch actually didn't; When a MD algo is not supported, gcry_md_test_algo returns != 0 (an error code), and it "continues" to next entry (before the change).

Jul 7 2021, 8:19 AM · FIPS, libgcrypt, Bug Report
gniibe committed rC297d31294333: tests: Fix messages to STDERR when FIPS mode is enabled. (authored by gniibe).
tests: Fix messages to STDERR when FIPS mode is enabled.
Jul 7 2021, 8:16 AM
gniibe added a comment to T5520: Fix tests in FIPS mode.

Thank you for your report.

Jul 7 2021, 8:07 AM · FIPS, libgcrypt, Bug Report
gniibe claimed T5520: Fix tests in FIPS mode.
Jul 7 2021, 4:42 AM · FIPS, libgcrypt, Bug Report

Jul 6 2021

gniibe added a comment to T3456: GPG does not import secret subkeys from --export-secret-subkeys output if subkey stubs existed before.

In agent_write_private_key of agent/findkey.c, when file is available, it returns GPG_ERR_EEXIST error. Thus, private (stub) key will be kept.

Jul 6 2021, 8:45 AM · gnupg22 (gnupg-2.2.42), Restricted Project
gniibe committed rG044e5a3c3801: scd: Detect external interference when PCSC_SHARED. (authored by gniibe).
scd: Detect external interference when PCSC_SHARED.
Jul 6 2021, 7:57 AM
gniibe moved T5433: libgcrypt: Do not use SHA1 by default from Backlog to For 1.10 on the libgcrypt board.
Jul 6 2021, 6:33 AM · FIPS, libgcrypt, Bug Report
gniibe moved T5508: Allow hardware optimizations in FIPS from Backlog to For 1.10 on the libgcrypt board.
Jul 6 2021, 6:33 AM · FIPS, libgcrypt, Bug Report

Jul 5 2021

gniibe claimed T3456: GPG does not import secret subkeys from --export-secret-subkeys output if subkey stubs existed before.
Jul 5 2021, 10:14 AM · gnupg22 (gnupg-2.2.42), Restricted Project
gniibe added a comment to T5512: Implement service indicators.

Implementation Guidance for FIPS 140-3 and the Cryptographic Module Validation Program:
https://csrc.nist.gov/CSRC/media/Projects/cryptographic-module-validation-program/documents/fips%20140-3/FIPS%20140-3%20IG.pdf

Jul 5 2021, 8:50 AM · Feature Request, FIPS, libgcrypt

Jun 25 2021

gniibe added a comment to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.

There are multiple issues here.

Jun 25 2021, 2:59 AM · yubikey, Bug Report, scd

Jun 23 2021

gniibe added a comment to T5483: Yubikey OpenPGP app.

For KDF setup (00F9), setting it to '' (null, to reset the DO) doesn't work, but it raises 6a80.
Once KDF is enabled, only factory-reset can reset the feature.

Jun 23 2021, 8:20 AM · yubikey
gniibe closed T5413: Unblock PIN by Reset Code as Resolved.
Jun 23 2021, 7:12 AM · Restricted Project, gnupg, scd
gniibe committed rGb90c55fa66db: scd:ccid: Handle LIBUSB_TRANSFER_OVERFLOW interrupt transfer. (authored by gniibe).
scd:ccid: Handle LIBUSB_TRANSFER_OVERFLOW interrupt transfer.
Jun 23 2021, 5:10 AM