Page MenuHome GnuPG
Feed Advanced Search

Apr 17 2018

werner closed T3764: AES-GCM bug for len(IV) != 96 as Resolved.

I backported the fix for 1.8.3.

Apr 17 2018, 8:23 PM · libgcrypt, Bug Report
werner closed T3408: keccak_permute_32.h : error: 'asm' operand requires impossible reload as Resolved.

Cherry-picked this for 1.8.3.

Apr 17 2018, 8:14 PM · libgcrypt, Bug Report
werner removed a project from T3491: FIPS-enabled libgcrypt traps gnome-keyring daemon in an infinite loop: Bug Report.
Apr 17 2018, 8:07 PM · libgcrypt
werner triaged T3491: FIPS-enabled libgcrypt traps gnome-keyring daemon in an infinite loop as Low priority.

FIPS rules changed anyway and thus more rework will be needed anyway. I keep this open at low priorirty.

Apr 17 2018, 8:06 PM · libgcrypt
loader added a comment to T3915: Allow building with Clang on MIPS64.

Thank you :)

Apr 17 2018, 5:27 PM · libgcrypt, Bug Report
werner added a comment to T3915: Allow building with Clang on MIPS64.

Thanks. I only now noticed that this is the same as we already use for 32 bit MIPS. I have no more questions. Will push to master and the 1.8 branch.

Apr 17 2018, 5:24 PM · libgcrypt, Bug Report
loader added a comment to T3915: Allow building with Clang on MIPS64.

Clang doesn't support the "h" inline asm constraint and the C version of umul_ppmm() works on MIPS64.

Apr 17 2018, 5:11 PM · libgcrypt, Bug Report
werner triaged T3915: Allow building with Clang on MIPS64 as Normal priority.
Apr 17 2018, 3:55 PM · libgcrypt, Bug Report
werner added a comment to T3915: Allow building with Clang on MIPS64.

Your patch indicates that all clang versions for MIPS64 support this feature. Is my reading correct?

Apr 17 2018, 3:55 PM · libgcrypt, Bug Report
loader created T3915: Allow building with Clang on MIPS64.
Apr 17 2018, 2:53 PM · libgcrypt, Bug Report

Apr 16 2018

bernhard added a comment to T3904: Clarify suggestion for diskperf.

Got the question about this note from a user (in a internal email) and I see the problem that users do not have enough information to decide this. They do not know what the consequences of this note are (and suspect it to be the cause of error of they see it together with other problems). So to me it is more than a 'wish' as it will generate questions and leaves users in a situation where they cannot progress by their own in most of the situations.

Apr 16 2018, 12:00 PM · Windows, libgcrypt
werner triaged T3904: Clarify suggestion for diskperf as Wishlist priority.
Apr 16 2018, 11:41 AM · Windows, libgcrypt
werner added a comment to T3904: Clarify suggestion for diskperf.

It is not an error or even a warning but just a NOTE. Thus the user should decide. it is not even translated and most systems this is enabled anyway.

Apr 16 2018, 11:41 AM · Windows, libgcrypt
gniibe claimed T3731: gcry_pk_genkey() segfaults for ecdsa 384.
Apr 16 2018, 10:24 AM · libgcrypt, Bug Report

Apr 14 2018

dkg added a comment to T3894: re-evaluate default randomness choices during key generation on GNU/Linux platforms.

See also Filippo Valsorda's 32c3 talk about CSPRNGs.

Apr 14 2018, 6:45 PM · libgcrypt, gnupg
dkg added a comment to T3894: re-evaluate default randomness choices during key generation on GNU/Linux platforms.

@gouttegd : setting only-urandom at the distro level problematic due to two factors:

Apr 14 2018, 6:42 PM · libgcrypt, gnupg

Apr 13 2018

gouttegd added a comment to T3894: re-evaluate default randomness choices during key generation on GNU/Linux platforms.

@dkg : Can’t this be solved at the distribution level? I assume the packager/maintainer for Libgcrypt on a given distribution should know whether the getrandom syscall is available on said distribution, so he could install a /etc/gcrypt/random.conf file with the only-urandom option.

Apr 13 2018, 11:38 PM · libgcrypt, gnupg
dkg added a comment to T3894: re-evaluate default randomness choices during key generation on GNU/Linux platforms.

Werner wrote:

we already use the getrandom system call if it is available

Apr 13 2018, 9:05 PM · libgcrypt, gnupg
bernhard updated the task description for T3904: Clarify suggestion for diskperf.
Apr 13 2018, 3:27 PM · Windows, libgcrypt
bernhard created T3904: Clarify suggestion for diskperf in the S1 Public space.
Apr 13 2018, 3:26 PM · Windows, libgcrypt
gniibe added a comment to T3878: not all calloc performed in libgcrypt covered by gcry_set_allocation_handler.

I am currently considering improvement of finalizer of libgcrypt, so, this matters.
Looking code, it would be better not to allocate and free the constant,
but use compile time constant data in .text section; Something like: const unsigned char ctr_null[DBRG_CTR_NULL_LEN].

Apr 13 2018, 4:17 AM · libgcrypt, Bug Report

Apr 11 2018

werner added a comment to T3894: re-evaluate default randomness choices during key generation on GNU/Linux platforms.

To clarify: We already use the getrandom system call if it is available. To map /dev/random to /dev/urandom you can create a file /etc/gcrypt/random.conf with this line:

Apr 11 2018, 8:55 PM · libgcrypt, gnupg
dkg created T3894: re-evaluate default randomness choices during key generation on GNU/Linux platforms.
Apr 11 2018, 8:01 PM · libgcrypt, gnupg
gniibe changed the status of T3877: not all malloc performed in libgcrypt covered by gcry_set_allocation_handler from Open to Testing.
Apr 11 2018, 1:52 AM · libgcrypt, Bug Report
gniibe claimed T3877: not all malloc performed in libgcrypt covered by gcry_set_allocation_handler.
Apr 11 2018, 1:16 AM · libgcrypt, Bug Report

Apr 10 2018

gniibe added a comment to T3877: not all malloc performed in libgcrypt covered by gcry_set_allocation_handler.

Note:
When we change the allocation, hmac256.c will not be standalone any more (as commented in the head of the file), and we will need to change the compile-command line to include libgpg-error.

Apr 10 2018, 7:09 AM · libgcrypt, Bug Report
gniibe added a comment to T3731: gcry_pk_genkey() segfaults for ecdsa 384.

I check this report again.
The test is single thread, IIUC.

Apr 10 2018, 3:08 AM · libgcrypt, Bug Report

Apr 5 2018

werner triaged T3848: Use of secure memory when generating secret primes in libgcrypt as Normal priority.

Hmmm, needs to be investigated.

Apr 5 2018, 2:49 PM · libgcrypt, Bug Report
werner triaged T3877: not all malloc performed in libgcrypt covered by gcry_set_allocation_handler as Normal priority.

For secmem.c this is on purpose. For the others we should fix that.

Apr 5 2018, 2:48 PM · libgcrypt, Bug Report
werner assigned T3878: not all calloc performed in libgcrypt covered by gcry_set_allocation_handler to smueller_chronox.de.

Thanks. Indeed this should also use the x... wrappers. It is not severe because this value is only used as a fixed constant.
Thus we won't fix it in 1.8 but should do this 1.9.

Apr 5 2018, 2:43 PM · libgcrypt, Bug Report

Apr 4 2018

JFi created T3878: not all calloc performed in libgcrypt covered by gcry_set_allocation_handler.
Apr 4 2018, 3:05 PM · libgcrypt, Bug Report
JFi created T3877: not all malloc performed in libgcrypt covered by gcry_set_allocation_handler.
Apr 4 2018, 1:44 PM · libgcrypt, Bug Report

Mar 20 2018

stm created T3848: Use of secure memory when generating secret primes in libgcrypt.
Mar 20 2018, 7:09 PM · libgcrypt, Bug Report

Feb 10 2018

jukivili added a watcher for libgcrypt: jukivili.
Feb 10 2018, 9:44 PM
jukivili added a member for libgcrypt: jukivili.
Feb 10 2018, 9:44 PM

Jan 31 2018

jukivili claimed T3764: AES-GCM bug for len(IV) != 96.
Jan 31 2018, 7:02 PM · libgcrypt, Bug Report

Jan 30 2018

gniibe created T3764: AES-GCM bug for len(IV) != 96.
Jan 30 2018, 12:14 PM · libgcrypt, Bug Report

Jan 16 2018

aa added a comment to T3731: gcry_pk_genkey() segfaults for ecdsa 384.
Jan 16 2018, 1:44 AM · libgcrypt, Bug Report

Jan 15 2018

werner added a comment to T3731: gcry_pk_genkey() segfaults for ecdsa 384.

I already talked with the upstream author and we figured a possible problem due to an non-locked use of the core function. The cause of this is

unsigned char *tmpval = ec->mem + ec->memlocation;
*tmpval = (*tmpval + 1) & 0xff;
ec->memlocation = ec->memlocation + ec->memblocksize - 1;
ec->memlocation = ec->memlocation % wrap;

which is non-atomic and will thus leads to the out-of-bounds deref. The EC object may only be used by one thread at a time.

Jan 15 2018, 10:44 AM · libgcrypt, Bug Report
gniibe added a comment to T3731: gcry_pk_genkey() segfaults for ecdsa 384.

It is reproducible on my Debian (stretch). I'm going to minimize the case.

Jan 15 2018, 10:36 AM · libgcrypt, Bug Report

Jan 14 2018

lbandlav added a comment to T3737: libgcrypt's gcry_kdf_scrypt has incorrectly set N and P values.

Have posted in gcrypt-devel mailer.. thanks

Jan 14 2018, 2:47 PM · libgcrypt, Bug Report

Jan 13 2018

lbandlav added a member for libgcrypt: lbandlav.
Jan 13 2018, 8:51 PM

Jan 12 2018

lbandlav added a comment to T3737: libgcrypt's gcry_kdf_scrypt has incorrectly set N and P values.

Will be posting it in gcrypt-devel shortly.

Jan 12 2018, 6:14 PM · libgcrypt, Bug Report
lbandlav added a comment to T3737: libgcrypt's gcry_kdf_scrypt has incorrectly set N and P values.

Hope you've got the problem with the current naming conventions for arguments and the result by going them. We should either document the arguments properly or change the code as i have pointed out. Since the iterations argument used properly in the case PBKDF2 (type8) within the same wrapper api gcry_kdf_derive.

Jan 12 2018, 5:51 PM · libgcrypt, Bug Report
werner added a comment to T3737: libgcrypt's gcry_kdf_scrypt has incorrectly set N and P values.

I would also suggest to discuss this at the gcrypt-devel list so that you can get get comments from others as well.

Jan 12 2018, 5:21 PM · libgcrypt, Bug Report
werner added a comment to T3737: libgcrypt's gcry_kdf_scrypt has incorrectly set N and P values.

Your are looking at the libgcrypt code. Unfortunately that does not help us. What I would like to see are two protocol implementations, using sccryptone with libgcrypt and one with anoter scruypt implementation. Do they both work? If so, there is no bug in libgcrypt's code - at best the parameter have been given different names and we can point other name use in the docs.

Jan 12 2018, 5:18 PM · libgcrypt, Bug Report
lbandlav added a comment to T3737: libgcrypt's gcry_kdf_scrypt has incorrectly set N and P values.

Here's what i got from 1.8.1 code (downloaded from gnupg).

Jan 12 2018, 3:16 PM · libgcrypt, Bug Report
werner added a project to T3737: libgcrypt's gcry_kdf_scrypt has incorrectly set N and P values: libgcrypt.

tests/t-kdf uses test vectors from an I-D and obviously works fine. Maybe that I-D has a different parameter naming than what is used in your examples. I simply can't say without researching the whole thing. Please let t me know a concrete bug where that KDF is not compatible with other implementations. As an example here is one of our test vectors:

Jan 12 2018, 2:45 PM · libgcrypt, Bug Report

Jan 11 2018

asn added a comment to T3731: gcry_pk_genkey() segfaults for ecdsa 384.

The segfault from an openSUSE machine looks the same:

Jan 11 2018, 2:56 PM · libgcrypt, Bug Report
werner added a comment to T3731: gcry_pk_genkey() segfaults for ecdsa 384.

Okay, so on Suse we have the same problem w/o the somewhat intrusive changes of Fedora. The inetresting thing is that segv code part is the same as used in Linux.

Jan 11 2018, 2:06 PM · libgcrypt, Bug Report
werner triaged T3731: gcry_pk_genkey() segfaults for ecdsa 384 as High priority.
Jan 11 2018, 1:55 PM · libgcrypt, Bug Report
asn added a comment to T3731: gcry_pk_genkey() segfaults for ecdsa 384.

The issue also occurs on openSUSE Tumbleweed:

Jan 11 2018, 12:37 PM · libgcrypt, Bug Report
asn added a comment to T3731: gcry_pk_genkey() segfaults for ecdsa 384.

libgpg-error is version 1.27: https://src.fedoraproject.org/rpms/libgpg-error/tree/f27
You can find the patches applied to libgcrypto here: https://src.fedoraproject.org/rpms/libgcrypt/tree/f27

Jan 11 2018, 12:33 PM · libgcrypt, Bug Report
werner added a comment to T3731: gcry_pk_genkey() segfaults for ecdsa 384.

Thanks for the report. I have a few questions, though
Which version of libgpg-error are you using?
What are the changes Fedora made to libgcrypt (and libgpg-error)?
Which CPU, what compile options and which compiler version?
Can you repeat this with a stock libgcrypt and libgpg-error?

Jan 11 2018, 12:26 PM · libgcrypt, Bug Report
asn created T3731: gcry_pk_genkey() segfaults for ecdsa 384.
Jan 11 2018, 11:42 AM · libgcrypt, Bug Report

Dec 12 2017

yourealwaysbe added a comment to T3606: failed to build S-Exp (off=0): Cannot allocate memory.

Great, many thanks.

Dec 12 2017, 11:15 AM · libgcrypt, Bug Report
werner triaged T3606: failed to build S-Exp (off=0): Cannot allocate memory as Normal priority.
Dec 12 2017, 9:11 AM · libgcrypt, Bug Report
werner added a comment to T3606: failed to build S-Exp (off=0): Cannot allocate memory.

The fatal bug you reported can happen if the process is running out of secure memory. In general it should return an error but there is one place where we assumed the allocation would always succeed. This has meanwhile changed in the repo and will go into 1.8.2 However, this is not the real problem you have but just a wrong error behaviour.

Dec 12 2017, 9:11 AM · libgcrypt, Bug Report

Dec 11 2017

yourealwaysbe added a comment to T3606: failed to build S-Exp (off=0): Cannot allocate memory.

Version 1.8.1. The full output is

Dec 11 2017, 2:59 PM · libgcrypt, Bug Report
werner added a project to T3606: failed to build S-Exp (off=0): Cannot allocate memory: libgcrypt.

Which libgcrypt version are you using (gpg --version shows it)

Dec 11 2017, 2:08 PM · libgcrypt, Bug Report

Nov 16 2017

gniibe added a project to T3283: Set 'mym4_revision' to 0 if not a git repo: npth.

Add the tag of npth (forgotten).

Nov 16 2017, 12:19 AM · libgcrypt, Bug Report

Nov 15 2017

werner removed a project from T3283: Set 'mym4_revision' to 0 if not a git repo: libassuan.

Done for libassuan

Nov 15 2017, 7:02 PM · libgcrypt, Bug Report

Nov 9 2017

werner added a comment to T3491: FIPS-enabled libgcrypt traps gnome-keyring daemon in an infinite loop.

Right, we can't do anything in Libgcrypt except for adding a way to return the open fds. This is the usual problem with libraries and the required closing of fds before an exec. Anyway the FIPS mode is questionable because it has not been adjusted for many years and does not take account newer requirements.

Nov 9 2017, 8:37 AM · libgcrypt
gniibe added a comment to T3223: gcry_mpi_ec_mul with Montgomery curves produces segfault.

ECDH on Curve25519 is fully supported in libgcrypt. You can see GnuPG supports ECDH on Curve25519.
Lower layer routines (point addition and point duplication) are not implemented, though.
That's because ECDH only requires point multiplication and it is better to implement point multiplication by Montgomery Ladder for Curve25519.

Nov 9 2017, 3:16 AM · libgcrypt, Bug Report
gniibe changed the status of T3351: libgcrypt: t_secmem fails on system with large page size (ppc64) from Open to Testing.

Fixed both for master and 1.8 branch.

Nov 9 2017, 3:03 AM · libgcrypt, Bug Report
gniibe claimed T3351: libgcrypt: t_secmem fails on system with large page size (ppc64).
Nov 9 2017, 3:01 AM · libgcrypt, Bug Report
gniibe merged T3375: t-secmem test failure on ppc64le / musl c-library into T3351: libgcrypt: t_secmem fails on system with large page size (ppc64).
Nov 9 2017, 3:00 AM · libgcrypt, Bug Report
gniibe merged task T3375: t-secmem test failure on ppc64le / musl c-library into T3351: libgcrypt: t_secmem fails on system with large page size (ppc64).
Nov 9 2017, 3:00 AM · libgcrypt, Bug Report

Nov 8 2017

civ created T3491: FIPS-enabled libgcrypt traps gnome-keyring daemon in an infinite loop.
Nov 8 2017, 10:17 PM · libgcrypt

Nov 1 2017

gniibe added a comment to T2349: Composing a private key from raw key material.

How about adding support with private in keyparam?

  • (genkey(rsa(nbit 2048)(d xxxx)(p xxxx)(q xxxx)(u xxxx))) ; Only p and q, is OK
  • (genkey(ecc(curve cv25519)(flags djb-tweak comp)(d xxx)))
Nov 1 2017, 12:52 AM · libgcrypt, Feature Request

Oct 26 2017

werner added a comment to T3283: Set 'mym4_revision' to 0 if not a git repo.

Thanks for the list

Oct 26 2017, 1:01 PM · libgcrypt, Bug Report
werner claimed T3283: Set 'mym4_revision' to 0 if not a git repo.
Oct 26 2017, 12:59 PM · libgcrypt, Bug Report
gniibe added projects to T3283: Set 'mym4_revision' to 0 if not a git repo: libgcrypt, libassuan, ntbtls, gpgme.

Here is the list:

  • libgcrypt
  • libassuan
  • ntbtls
  • gpgme : autogen.sh is ready
  • npth
Oct 26 2017, 8:28 AM · libgcrypt, Bug Report

Oct 25 2017

gniibe closed T3454: Hash SM3 support as Resolved.

Thanks for the information.
Closing, as I pushed rC94b84360ca55: Add OID information for SM3..

Oct 25 2017, 5:26 AM · libgcrypt, Feature Request
jiazhang added a comment to T3454: Hash SM3 support.

CESI also publishes a complete white pager documenting OID assignment in details. See http://www.cesi.cn/201612/1688.html and download the pdf. Search "10197" and I see the following info:

Oct 25 2017, 4:14 AM · libgcrypt, Feature Request
gniibe added a comment to T3454: Hash SM3 support.

OK, I found: http://www.oidchina.cn/oid/release/1.2.156.10197.
站点: 国家OID注册中心
数字OID: 10197
中文OID:
英文OID: sca10197
应用范围: 密码标准化技术委员会

Oct 25 2017, 4:00 AM · libgcrypt, Feature Request
gniibe added a comment to T3454: Hash SM3 support.

I use: 1.2.156.10197.1.401

Oct 25 2017, 3:49 AM · libgcrypt, Feature Request

Oct 24 2017

gniibe triaged T3454: Hash SM3 support as Normal priority.

I am now examining OID allocation.
I'll add the OID of SM3 into sm3.c.

Oct 24 2017, 9:29 AM · libgcrypt, Feature Request

Oct 21 2017

lumag added a watcher for libgcrypt: lumag.
Oct 21 2017, 2:50 PM

Oct 17 2017

jiazhang added a comment to T3454: Hash SM3 support.

This is my note.
If it is intended to be used to OpenPGP, GCRY_MD_SM3 should be assigned in OpenPGP standard.

Oct 17 2017, 4:57 AM · libgcrypt, Feature Request
jiazhang added a comment to T3454: Hash SM3 support.

Thank you. The diff doesn't include sm3.c. Could you please update?

Oct 17 2017, 4:52 AM · libgcrypt, Feature Request
gniibe added a comment to T3454: Hash SM3 support.

This is my note.
If it is intended to be used to OpenPGP, GCRY_MD_SM3 should be assigned in OpenPGP standard.

Oct 17 2017, 4:50 AM · libgcrypt, Feature Request
gniibe added a comment to T3454: Hash SM3 support.

Thank you. The diff doesn't include sm3.c. Could you please update?

Oct 17 2017, 4:49 AM · libgcrypt, Feature Request
jiazhang added a comment to T3454: Hash SM3 support.

This is the review request link: https://dev.gnupg.org/D449

Oct 17 2017, 4:45 AM · libgcrypt, Feature Request
gniibe claimed T3454: Hash SM3 support.
Oct 17 2017, 2:39 AM · libgcrypt, Feature Request
gniibe set External Link to https://tools.ietf.org/html/draft-shen-sm3-hash-01 on T3454: Hash SM3 support.
Oct 17 2017, 2:35 AM · libgcrypt, Feature Request
gniibe created T3454: Hash SM3 support.
Oct 17 2017, 2:33 AM · libgcrypt, Feature Request

Sep 21 2017

werner closed T3247: SIGILL in prepare_macpads() at md.c:681 as Resolved.

Closing due to compiler error.

Sep 21 2017, 3:39 PM · clang, Ubuntu, libgcrypt, Bug Report

Sep 14 2017

werner added a project to T3408: keccak_permute_32.h : error: 'asm' operand requires impossible reload: libgcrypt.
Sep 14 2017, 2:02 PM · libgcrypt, Bug Report

Aug 29 2017

werner triaged T3375: t-secmem test failure on ppc64le / musl c-library as Normal priority.

I recall something about this on our mailing list.

Aug 29 2017, 5:17 PM · libgcrypt, Bug Report
gniibe closed T3358: Curve specific field computation routines as Resolved.

Pushed for master.

Aug 29 2017, 3:15 AM · libgcrypt

Aug 27 2017

werner added a comment to T3358: Curve specific field computation routines.

I prepared Libgcrypt for the 1.9 series, thus feel free to merge your patches to master anytime you like.

Aug 27 2017, 10:24 AM · libgcrypt

Aug 23 2017

gniibe added a comment to T3358: Curve specific field computation routines.

Bonus: less memory usage and performance improvement.

Aug 23 2017, 5:52 AM · libgcrypt

Aug 21 2017

gniibe created T3358: Curve specific field computation routines.
Aug 21 2017, 7:29 AM · libgcrypt

Aug 20 2017

jukivili removed a member for libgcrypt: jukivili.
Aug 20 2017, 8:25 PM
jukivili removed a watcher for libgcrypt: jukivili.
Aug 20 2017, 8:25 PM

Aug 17 2017

peterglen created D445: Libgcrypt examples.
Aug 17 2017, 4:55 AM · libgcrypt

Aug 16 2017

marcus triaged T3351: libgcrypt: t_secmem fails on system with large page size (ppc64) as Normal priority.
Aug 16 2017, 3:24 PM · libgcrypt, Bug Report

Aug 7 2017

marcus closed T3336: Support OID 1.2.840.10045.4.3.3 (SHA384WithECDSA) as Resolved.

Done in a7bd2cbd.

Aug 7 2017, 7:28 PM · libgcrypt, Feature Request
svenihoney changed External Link from https://lists.gnupg.org/pipermail/gcrypt-devel/2013-June/002212.html to https://lists.gnupg.org/pipermail/gcrypt-devel/2012-May/001950.html on T3336: Support OID 1.2.840.10045.4.3.3 (SHA384WithECDSA).
Aug 7 2017, 4:34 PM · libgcrypt, Feature Request