Page MenuHome GnuPG
Feed Advanced Search

Jul 13 2023

gniibe committed rGfb046ccd931d: sm: Use open_stream_nc for HANDLE by assuan_get_output_fd. (authored by gniibe).
sm: Use open_stream_nc for HANDLE by assuan_get_output_fd.
Jul 13 2023, 4:19 AM
gniibe triaged T6592: GPGSM: Use estream_t instead of FD as Normal priority.
Jul 13 2023, 3:51 AM · Windows 64, Feature Request, gnupg26

Jul 12 2023

gniibe committed rG23bcb78d279e: gpg: Add support for Subkey-Expire-Date. (authored by gniibe).
gpg: Add support for Subkey-Expire-Date.
Jul 12 2023, 7:06 AM
gniibe committed rGb07b5144ff6a: gpg: Fix expiration time when Creation-Date is specified. (authored by gniibe).
gpg: Fix expiration time when Creation-Date is specified.
Jul 12 2023, 6:39 AM
gniibe claimed T5252: bad expiration value when using --batch Creation-Date/Expire-Date.

Fixed in master.
Will backport into 2.4, after testing.

Jul 12 2023, 6:39 AM · gnupg, Bug Report
gniibe committed rCe76e88eef781: Use unsigned int for a bit field. (authored by gniibe).
Use unsigned int for a bit field.
Jul 12 2023, 3:49 AM

Jul 11 2023

gniibe committed rG067bc2ed4c84: gpg: Move the check by is_secured_file earlier. (authored by gniibe).
gpg: Move the check by is_secured_file earlier.
Jul 11 2023, 6:54 AM
gniibe committed rG16d135c39648: common: Change iobuf_fdopen argument type to gnupg_fd_t. (authored by gniibe).
common: Change iobuf_fdopen argument type to gnupg_fd_t.
Jul 11 2023, 4:44 AM
gniibe committed rG250733c0d86d: common: Add gnupg_check_special_filename. (authored by gniibe).
common: Add gnupg_check_special_filename.
Jul 11 2023, 4:44 AM
gniibe committed rG37343db08f4a: common,gpg,kbx: Factor out open_stream_nc. (authored by gniibe).
common,gpg,kbx: Factor out open_stream_nc.
Jul 11 2023, 4:44 AM

Jul 10 2023

gniibe committed rG5bc949d23040: common:w32: Fix gnupg_w32_set_errno. (authored by gniibe).
common:w32: Fix gnupg_w32_set_errno.
Jul 10 2023, 4:27 AM
gniibe committed rGa3be97df4ddf: common:w32: Fix gnupg_w32_set_errno. (authored by gniibe).
common:w32: Fix gnupg_w32_set_errno.
Jul 10 2023, 4:27 AM

Jul 7 2023

gniibe added a comment to T6570: Better performance with OCB encryption + sign.

Updated the patch:

Jul 7 2023, 7:07 AM · gnupg, Restricted Project

Jul 6 2023

gniibe added a comment to T6570: Better performance with OCB encryption + sign.

This is a patch for master (which uses nPth for gpg):

Jul 6 2023, 9:18 AM · gnupg, Restricted Project
gniibe committed rG8cacfce898f2: kbx: Fix memory leak at spawning a thread for data pipe. (authored by gniibe).
kbx: Fix memory leak at spawning a thread for data pipe.
Jul 6 2023, 9:03 AM
gniibe added a comment to T6570: Better performance with OCB encryption + sign.

I'm trying to use a thread for computation of hashing. It works, but no performance gain, due to nPth.
I do:

npth_unprotect ();
gcry_md_write (mfx->md, mfx->buf, mfx->written);
npth_protect ();

to expect hashing is done in parallel.

Jul 6 2023, 8:11 AM · gnupg, Restricted Project
gniibe committed rSbc53a3e54f6a: agent: Fix off-by-one error for the length of CMD buffer. (authored by gniibe).
agent: Fix off-by-one error for the length of CMD buffer.
Jul 6 2023, 7:29 AM
gniibe committed rG2abea42d9ce4: kbx: Use es_sysopen_nc instead of es_fdopen_nc. (authored by gniibe).
kbx: Use es_sysopen_nc instead of es_fdopen_nc.
Jul 6 2023, 3:27 AM

Jul 5 2023

gniibe added a comment to T6570: Better performance with OCB encryption + sign.

It seemed I was wrong that it is due to buffering.
In the use case of --sign and --encrypt, hashing is done with IOBUF's 64KiB buffer (already).

Jul 5 2023, 8:56 AM · gnupg, Restricted Project
gniibe updated the task description for T6570: Better performance with OCB encryption + sign.
Jul 5 2023, 8:47 AM · gnupg, Restricted Project
gniibe added a comment to T6561: OpenPGP benchmarks on Windows OCB vs. CFB + MDC vs. Unsigned vs. Signed on real data..

I observed the benchmark by libgcrypt (Windows emulation 32-bit on Debian):

Jul 5 2023, 8:27 AM · gnupg
gniibe committed rGf2dcd158a5ff: gpg: Fix gpg --server mode on Windows. (authored by gniibe).
gpg: Fix gpg --server mode on Windows.
Jul 5 2023, 6:29 AM
gniibe committed rG577baf4af300: gpg: Format the value of type gnupg_fd_t by casting to int. (authored by gniibe).
gpg: Format the value of type gnupg_fd_t by casting to int.
Jul 5 2023, 6:14 AM
gniibe changed the status of T6579: gnupg-2.4.3 build failure from Open to Testing.

Thank you for your report.

Jul 5 2023, 4:33 AM · gnupg24 (gnupg-2.4.4), Gentoo, Bug Report
gniibe committed rG9ae3cfcabec9: dirmngr: Enable the call of ks_ldap_help_variables when USE_LDAP. (authored by gniibe).
dirmngr: Enable the call of ks_ldap_help_variables when USE_LDAP.
Jul 5 2023, 3:47 AM
gniibe committed rG3fb69641e84d: gpg: Use gnupg_fd_t for decryption and sign. (authored by gniibe).
gpg: Use gnupg_fd_t for decryption and sign.
Jul 5 2023, 3:45 AM
gniibe committed rG2c2516f03a28: gpg: Use gnupg_fd_t for encrypt_crypt and gpg_verify. (authored by gniibe).
gpg: Use gnupg_fd_t for encrypt_crypt and gpg_verify.
Jul 5 2023, 3:45 AM
gniibe committed rGdc13361524c1: dirmngr: Enable the call of ks_ldap_help_variables when USE_LDAP. (authored by gniibe).
dirmngr: Enable the call of ks_ldap_help_variables when USE_LDAP.
Jul 5 2023, 3:45 AM
gniibe committed rG68d3a73ea787: gpg: Use gnupg_fd_t for open_outfile. (authored by gniibe).
gpg: Use gnupg_fd_t for open_outfile.
Jul 5 2023, 3:45 AM
gniibe committed rG2c5a93e66e3e: gpg:card: Remove the code for GnuPG version 1. (authored by gniibe).
gpg:card: Remove the code for GnuPG version 1.
Jul 5 2023, 3:45 AM
gniibe triaged T6580: Use gnupg_fd_t if it's relevant as Wishlist priority.
Jul 5 2023, 2:38 AM · Windows 64, Feature Request, gnupg26

Jul 3 2023

gniibe triaged T6570: Better performance with OCB encryption + sign as Normal priority.
Jul 3 2023, 10:42 AM · gnupg, Restricted Project
gniibe claimed T6561: OpenPGP benchmarks on Windows OCB vs. CFB + MDC vs. Unsigned vs. Signed on real data..

OK. I'll take the signing part (possible performance improvement).

Jul 3 2023, 10:21 AM · gnupg
gniibe added a comment to T6561: OpenPGP benchmarks on Windows OCB vs. CFB + MDC vs. Unsigned vs. Signed on real data..

I looked through the code. What I observed is:

  • By jussi's improvements, AEAD code is optimized with AEAD_ENC_BUFFER_SIZE of 64KiB
    • this contributes much for better performance
  • If we invoke gpg --sign | gpg --encrypt then we can take advantage of multiple CPUs (but gpg is currently not automatically threaded in that way)
    • signing could be improved likewise, using larger buffer like 64KiB
  • CFB+MDC, it uses two functions together; encryption and hashing, and not with larger buffer like 64KiB
    • when signed, it also does hashing for signing, so three functions
Jul 3 2023, 4:50 AM · gnupg
gniibe updated the task description for T6562: gpgtar: --status-fd requires HANDLE (not POSIX fd) when spawning a process.
Jul 3 2023, 4:19 AM · Windows 64, Feature Request, gnupg26
gniibe updated the task description for T6562: gpgtar: --status-fd requires HANDLE (not POSIX fd) when spawning a process.
Jul 3 2023, 4:18 AM · Windows 64, Feature Request, gnupg26
gniibe changed the status of T6551: translate_sys2libc_fd_int on Windows 64-bit, a subtask of T6508: Port GnuPG to 64-bit Windows, from Testing to Open.
Jul 3 2023, 4:16 AM · Windows 64, Feature Request, gnupg26
gniibe changed the status of T6551: translate_sys2libc_fd_int on Windows 64-bit from Testing to Open.

The case in check_special_filename is fixed. So, there is no cases in GnuPG where the value of out of range is silently converted to wrong value.

Jul 3 2023, 4:16 AM · Windows 64, Feature Request, gnupg26
gniibe added a comment to T6508: Port GnuPG to 64-bit Windows.

Remaining places are:

  • common/sysutil.c debug output to format HANDLE --> T6597
  • common/sysutil.c iobuf_get_fd and its use cases --> T6580
  • agent, kbx, scdaemon, dirmngr: socket and FD2INT/INT2FD --> T6598
Jul 3 2023, 3:58 AM · Windows 64, Feature Request, gnupg26
gniibe committed rGb5efb52d4320: agent: Fix formatting thread ID of nPth. (authored by gniibe).
agent: Fix formatting thread ID of nPth.
Jul 3 2023, 3:53 AM
gniibe committed rGa0ff2919f710: tools:gpg-connect-agent: Fix use of HANDLE on Windows. (authored by gniibe).
tools:gpg-connect-agent: Fix use of HANDLE on Windows.
Jul 3 2023, 3:53 AM

Jun 30 2023

gniibe committed rG250fff0f6eaf: common:iobuf: Avoid losing bits of HANDLE on Windows 64-bit. (authored by gniibe).
common:iobuf: Avoid losing bits of HANDLE on Windows 64-bit.
Jun 30 2023, 9:06 AM

Jun 29 2023

gniibe committed rG6049d61991a1: common: Fix the cast for 64-bit Windows. (authored by gniibe).
common: Fix the cast for 64-bit Windows.
Jun 29 2023, 7:09 AM
gniibe committed rG3672c29156e3: common: Raise an error correctly in check_special_filename. (authored by gniibe).
common: Raise an error correctly in check_special_filename.
Jun 29 2023, 7:09 AM
gniibe added a comment to T6551: translate_sys2libc_fd_int on Windows 64-bit.

Except a case, all use cases of translate_sys2libc_fd_int is with a result of integer from command line argument.

Jun 29 2023, 7:00 AM · Windows 64, Feature Request, gnupg26

Jun 28 2023

gniibe changed the status of T6539: The digest&sign/verify API with SHAKE-class digests does not work from Open to Testing.

Add the check of digest algorithm for EdDSA in: rCd15fe6aac10b: cipher:ecc:fips: Only allow defined digest algo for EdDSA.

Jun 28 2023, 7:23 AM · libgcrypt, FIPS, Bug Report
gniibe committed rCd15fe6aac10b: cipher:ecc:fips: Only allow defined digest algo for EdDSA. (authored by gniibe).
cipher:ecc:fips: Only allow defined digest algo for EdDSA.
Jun 28 2023, 7:23 AM
gniibe changed the status of T6562: gpgtar: --status-fd requires HANDLE (not POSIX fd) when spawning a process, a subtask of T6551: translate_sys2libc_fd_int on Windows 64-bit, from Open to Testing.
Jun 28 2023, 7:12 AM · Windows 64, Feature Request, gnupg26
gniibe changed the status of T6562: gpgtar: --status-fd requires HANDLE (not POSIX fd) when spawning a process from Open to Testing.

Changes are pushed.

Jun 28 2023, 7:12 AM · Windows 64, Feature Request, gnupg26
gniibe committed rG25b59cf6ce86: scd:piv: Fix authentication with Administration Key. (authored by gniibe).
scd:piv: Fix authentication with Administration Key.
Jun 28 2023, 7:04 AM
gniibe committed rGcacb01899224: tools:gpgtar: Clean up the use of --status-fd. (authored by gniibe).
tools:gpgtar: Clean up the use of --status-fd.
Jun 28 2023, 7:03 AM
gniibe added a comment to T6539: The digest&sign/verify API with SHAKE-class digests does not work.

No, there are use cases in GnuPG, where we specify the hash algo for signing, and our own tests/benchmark.c.

Jun 28 2023, 3:54 AM · libgcrypt, FIPS, Bug Report
gniibe added a comment to T6539: The digest&sign/verify API with SHAKE-class digests does not work.

For the first issue, I added a check in: rCf65c30d470f5: cipher:ecc:fips: Reject use of SHAKE when it's ECDSA with RFC6979.

Jun 28 2023, 3:52 AM · libgcrypt, FIPS, Bug Report
gniibe committed rCf65c30d470f5: cipher:ecc:fips: Reject use of SHAKE when it's ECDSA with RFC6979. (authored by gniibe).
cipher:ecc:fips: Reject use of SHAKE when it's ECDSA with RFC6979.
Jun 28 2023, 3:32 AM

Jun 27 2023

gniibe committed rG7cfbf0dd72d8: scd:piv: Fix authentication with Administration Key. (authored by gniibe).
scd:piv: Fix authentication with Administration Key.
Jun 27 2023, 8:47 AM
gniibe committed rG631c23b66404: gpgtar: Use FD on POSIX. (authored by gniibe).
gpgtar: Use FD on POSIX.
Jun 27 2023, 8:01 AM
gniibe committed rGb9b0c183204f: common,gpg,sm,tools: Don't remove translate_sys2libc_fd_int. (authored by gniibe).
common,gpg,sm,tools: Don't remove translate_sys2libc_fd_int.
Jun 27 2023, 8:01 AM
gniibe added a comment to T6562: gpgtar: --status-fd requires HANDLE (not POSIX fd) when spawning a process.

We need to keep the gpgtar part of commit in rG2756147e392c: gpg,sm,tools: Use string for option --*-fd..

Jun 27 2023, 7:57 AM · Windows 64, Feature Request, gnupg26
gniibe triaged T6562: gpgtar: --status-fd requires HANDLE (not POSIX fd) when spawning a process as Normal priority.
Jun 27 2023, 7:55 AM · Windows 64, Feature Request, gnupg26
gniibe added a comment to T6551: translate_sys2libc_fd_int on Windows 64-bit.

The changes are intrusive to other implementations (POSIX and Windows 32-bit).
So, I revert the changes of replacing translate_sys2libc_fd_int.

Jun 27 2023, 7:41 AM · Windows 64, Feature Request, gnupg26

Jun 26 2023

gniibe committed rG72ac77c4fab9: agent: Fix cast mistake for Windows. (authored by gniibe).
agent: Fix cast mistake for Windows.
Jun 26 2023, 8:00 AM
gniibe committed rG76df93492928: tests:gpgscm: Add annotation for unreachable code for GCC. (authored by gniibe).
tests:gpgscm: Add annotation for unreachable code for GCC.
Jun 26 2023, 7:48 AM
gniibe committed rG1f9a4fbc7e6c: gpg,w32: Add comment about debug output of ShellExecuteEx. (authored by gniibe).
gpg,w32: Add comment about debug output of ShellExecuteEx.
Jun 26 2023, 7:48 AM
gniibe added a comment to T6551: translate_sys2libc_fd_int on Windows 64-bit.

I don't argue about the technical necessity for the change. I agree the fact it works (without such changes).

Jun 26 2023, 3:29 AM · Windows 64, Feature Request, gnupg26
gniibe committed rGf0ecc07c4e48: tools: Fix use of EXCEPTS when spawning a process. (authored by gniibe).
tools: Fix use of EXCEPTS when spawning a process.
Jun 26 2023, 3:22 AM

Jun 23 2023

gniibe committed rG87a73e8eb0c9: common: Remove translate_sys2libc_fd_int. (authored by gniibe).
common: Remove translate_sys2libc_fd_int.
Jun 23 2023, 6:40 AM
gniibe committed rG2756147e392c: gpg,sm,tools: Use string for option --*-fd. (authored by gniibe).
gpg,sm,tools: Use string for option --*-fd.
Jun 23 2023, 6:40 AM
gniibe committed rG04d0851ccaae: common: Add gnupg_sys2libc_fdstr function. (authored by gniibe).
common: Add gnupg_sys2libc_fdstr function.
Jun 23 2023, 6:40 AM
gniibe changed the status of T6551: translate_sys2libc_fd_int on Windows 64-bit, a subtask of T6508: Port GnuPG to 64-bit Windows, from Open to Testing.
Jun 23 2023, 6:38 AM · Windows 64, Feature Request, gnupg26
gniibe changed the status of T6551: translate_sys2libc_fd_int on Windows 64-bit from Open to Testing.

Fixed in master.

Jun 23 2023, 6:38 AM · Windows 64, Feature Request, gnupg26
gniibe added a comment to T6557: Support of SHAKE in MGF function of RSA.

Pushed a change in master.

Jun 23 2023, 6:00 AM · libgcrypt, FIPS, Bug Report
gniibe changed the status of T6557: Support of SHAKE in MGF function of RSA, a subtask of T6539: The digest&sign/verify API with SHAKE-class digests does not work, from Open to Testing.
Jun 23 2023, 6:00 AM · libgcrypt, FIPS, Bug Report
gniibe changed the status of T6557: Support of SHAKE in MGF function of RSA from Open to Testing.
Jun 23 2023, 6:00 AM · libgcrypt, FIPS, Bug Report
gniibe committed rC8802faadab79: cipher:rsa: Add support of SHAKE as MGF. (authored by gniibe).
cipher:rsa: Add support of SHAKE as MGF.
Jun 23 2023, 3:48 AM
gniibe committed rM05ac1ce09ff1: build: Add BUILT_SOURCE for better dependency. (authored by gniibe).
build: Add BUILT_SOURCE for better dependency.
Jun 23 2023, 3:41 AM
gniibe changed the status of T6547: gpgme: conf/config.h dependency from Open to Testing.

Applied.

Jun 23 2023, 3:40 AM
gniibe updated the task description for T6557: Support of SHAKE in MGF function of RSA.
Jun 23 2023, 3:28 AM · libgcrypt, FIPS, Bug Report
gniibe renamed T6557: Support of SHAKE in MGF function of RSA from Support of SHAKE in MGF1 function of RSA to Support of SHAKE in MGF function of RSA.
Jun 23 2023, 3:27 AM · libgcrypt, FIPS, Bug Report
gniibe triaged T6557: Support of SHAKE in MGF function of RSA as Normal priority.
Jun 23 2023, 2:41 AM · libgcrypt, FIPS, Bug Report

Jun 22 2023

gniibe added a comment to T6539: The digest&sign/verify API with SHAKE-class digests does not work.

I found the case of X.509, which also uses fixed length output for RSA-PSS and ECDSA: https://www.rfc-editor.org/rfc/rfc8692.html

Jun 22 2023, 7:29 AM · libgcrypt, FIPS, Bug Report
gniibe committed rGe9e7b5425fdd: common: Add translate_sys2libc_fdstr. (authored by gniibe).
common: Add translate_sys2libc_fdstr.
Jun 22 2023, 4:40 AM
gniibe added a comment to T6551: translate_sys2libc_fd_int on Windows 64-bit.

The use cases are:

  • oPassphraseFD for gpgsm, gpg
  • oStatusFD for gpg-auth, gpg-wks-client, gpg-card, gpg-pair-tool, gpgtar, gpgconf, gpgsm, gpg, gpgv
  • oLoggerFD for gpgsm, gpg, gpgv
  • oAttributeFD for gpg
  • oCommandFD for gpg
  • oOverrideSessionKeyFD for gpg
Jun 22 2023, 3:46 AM · Windows 64, Feature Request, gnupg26
gniibe updated the task description for T6551: translate_sys2libc_fd_int on Windows 64-bit.
Jun 22 2023, 3:16 AM · Windows 64, Feature Request, gnupg26
gniibe triaged T6551: translate_sys2libc_fd_int on Windows 64-bit as Normal priority.
Jun 22 2023, 3:12 AM · Windows 64, Feature Request, gnupg26

Jun 21 2023

gniibe added a comment to T6547: gpgme: conf/config.h dependency.

Thank you. Now, I see the reason for conf/ sub directory.

Jun 21 2023, 3:51 AM

Jun 20 2023

gniibe triaged T6547: gpgme: conf/config.h dependency as Wishlist priority.
Jun 20 2023, 8:22 AM
gniibe closed T6495: kbx/keybox-dump.c: close file handle when return as Resolved.

Thank you.
Applied to master, 2.4 branch and 2.2 branch.

Jun 20 2023, 2:23 AM · gnupg
gniibe committed rG3efd0052854d: kbx: Close file handle when return. (authored by zhangguangzhi).
kbx: Close file handle when return.
Jun 20 2023, 2:23 AM
gniibe committed rG06aeb2b45c60: kbx: Close file handle when return. (authored by zhangguangzhi).
kbx: Close file handle when return.
Jun 20 2023, 2:23 AM
gniibe committed rG28a4d0d4f5c5: kbx: Close file handle when return. (authored by zhangguangzhi).
kbx: Close file handle when return.
Jun 20 2023, 2:23 AM
gniibe closed T6482: Delete redundant characters as Resolved.

Thank you.
Applied to master, 2.4 branch, and 2.2 branch.

Jun 20 2023, 2:10 AM · gnupg
gniibe committed rG96e3579f6dfa: delete redundant characters (authored by zhangguangzhi).
delete redundant characters
Jun 20 2023, 2:09 AM
gniibe committed rG40090dbbf9ea: delete redundant characters (authored by zhangguangzhi).
delete redundant characters
Jun 20 2023, 2:09 AM
gniibe committed rGbe77c0553203: delete redundant characters (authored by zhangguangzhi).
delete redundant characters
Jun 20 2023, 2:09 AM

Jun 19 2023

gniibe added a comment to T6539: The digest&sign/verify API with SHAKE-class digests does not work.

Here is a possible change (... to master, assuming it's good to support use case of RFC 8702):

diff --git a/cipher/keccak.c b/cipher/keccak.c
index 22c40302..76e08cb5 100644
--- a/cipher/keccak.c
+++ b/cipher/keccak.c
@@ -1630,8 +1630,8 @@ const gcry_md_spec_t _gcry_digest_spec_sha3_512 =
 const gcry_md_spec_t _gcry_digest_spec_shake128 =
   {
     GCRY_MD_SHAKE128, {0, 1},
-    "SHAKE128", shake128_asn, DIM (shake128_asn), oid_spec_shake128, 0,
-    shake128_init, keccak_write, keccak_final, NULL, keccak_extract,
+    "SHAKE128", shake128_asn, DIM (shake128_asn), oid_spec_shake128, 32,
+    shake128_init, keccak_write, keccak_final, keccak_read, keccak_extract,
     _gcry_shake128_hash_buffers,
     sizeof (KECCAK_CONTEXT),
     run_selftests
@@ -1639,8 +1639,8 @@ const gcry_md_spec_t _gcry_digest_spec_shake128 =
 const gcry_md_spec_t _gcry_digest_spec_shake256 =
   {
     GCRY_MD_SHAKE256, {0, 1},
-    "SHAKE256", shake256_asn, DIM (shake256_asn), oid_spec_shake256, 0,
-    shake256_init, keccak_write, keccak_final, NULL, keccak_extract,
+    "SHAKE256", shake256_asn, DIM (shake256_asn), oid_spec_shake256, 64,
+    shake256_init, keccak_write, keccak_final, keccak_read, keccak_extract,
     _gcry_shake256_hash_buffers,
     sizeof (KECCAK_CONTEXT),
     run_selftests
Jun 19 2023, 4:53 AM · libgcrypt, FIPS, Bug Report
gniibe added a comment to T6539: The digest&sign/verify API with SHAKE-class digests does not work.

Reading RFC 8702, I realized that it defines the hash size in the use of CMS as: SHAKE128 : 32-byte SHAKE256 : 64-byte.

Jun 19 2023, 4:47 AM · libgcrypt, FIPS, Bug Report
gniibe added a comment to T6539: The digest&sign/verify API with SHAKE-class digests does not work.

Applied rC8cdd0d353e19: cipher:pubkey: Check digest size which should not be zero. for 1.10.

Jun 19 2023, 4:36 AM · libgcrypt, FIPS, Bug Report

Jun 16 2023

gniibe claimed T6539: The digest&sign/verify API with SHAKE-class digests does not work.
Jun 16 2023, 9:36 AM · libgcrypt, FIPS, Bug Report
gniibe added a comment to T6539: The digest&sign/verify API with SHAKE-class digests does not work.

I found this use case: RFC 8702
"Use of the SHAKE One-Way Hash Functions in the Cryptographic Message Syntax (CMS)": https://www.rfc-editor.org/rfc/rfc8702.html

Jun 16 2023, 9:35 AM · libgcrypt, FIPS, Bug Report
gniibe added a comment to T6539: The digest&sign/verify API with SHAKE-class digests does not work.

Another possibility for digest&sign API: it is possible to determine the length of required hash function by the underlining field Fp of the curve in use. Then, use this length instead. It's better than to (try to) get the length by _gcry_md_get_algo_dlen (for SHAKE, it's undefined).

Jun 16 2023, 9:16 AM · libgcrypt, FIPS, Bug Report