Page MenuHome GnuPG
Feed Advanced Search

Apr 11 2018

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
svenihoney added a revision to T3336: Support OID 1.2.840.10045.4.3.3 (SHA384WithECDSA): D443: Add SHA384WithECDSA OID to ciphers.
Aug 7 2017, 4:29 PM · libgcrypt, Feature Request
svenihoney created T3336: Support OID 1.2.840.10045.4.3.3 (SHA384WithECDSA).
Aug 7 2017, 4:16 PM · libgcrypt, Feature Request

Aug 4 2017

werner closed T3314: libgcrypt-1.8.0 failed on solaris 10 as Invalid.

Please ask any Unix sysadmin for help. Paid support is available from the companies listed here: https://gnupg.org/service.html and there are lot of others.

Aug 4 2017, 11:03 AM · libgcrypt, Bug Report
rajeshg8 added a comment to T3314: libgcrypt-1.8.0 failed on solaris 10.

Hi Werner,

Aug 4 2017, 3:45 AM · libgcrypt, Bug Report

Aug 3 2017

marcus reopened T3202: add support for illumos to our version of libtool as "Open".
Aug 3 2017, 6:33 PM · Info Needed, gpgrt, Bug Report
andy_js added a comment to T3202: add support for illumos to our version of libtool.

The platform is illumos, a fork of OpenSolaris.

Aug 3 2017, 6:04 PM · Info Needed, gpgrt, Bug Report
marcus closed T3202: add support for illumos to our version of libtool as Wontfix.

No response.

Aug 3 2017, 5:30 PM · Info Needed, gpgrt, Bug Report

Aug 2 2017

rajeshg8 added a comment to T3314: libgcrypt-1.8.0 failed on solaris 10.

Thanks for the update, any fix for above issues not able make and make install

Aug 2 2017, 6:44 PM · libgcrypt, Bug Report
werner added a comment to T3314: libgcrypt-1.8.0 failed on solaris 10.

I don't know. We only provide binary packages for Windows.

Aug 2 2017, 5:47 PM · libgcrypt, Bug Report
rajeshg8 added a comment to T3314: libgcrypt-1.8.0 failed on solaris 10.

could you tell me how to download direct binary pkg which we can directly install for solaris 10

Aug 2 2017, 5:16 PM · libgcrypt, Bug Report
rajeshg8 added a comment to T3314: libgcrypt-1.8.0 failed on solaris 10.

below also failed to make .

Aug 2 2017, 4:40 PM · libgcrypt, Bug Report
rajeshg8 added a comment to T3314: libgcrypt-1.8.0 failed on solaris 10.

HI Werner,

Aug 2 2017, 4:31 PM · libgcrypt, Bug Report

Aug 1 2017

chrullrich added a comment to T3293: libgcrypt: warning: unknown pragma "#pragma GCC optimize" ignored => compile failure with LLVM 5.0.

No, it's not. It still misses "-O" entirely.

Aug 1 2017, 2:26 PM · clang, libgcrypt, Bug Report
cpm closed T3293: libgcrypt: warning: unknown pragma "#pragma GCC optimize" ignored => compile failure with LLVM 5.0 as Resolved.

It's solved!

Aug 1 2017, 2:24 PM · clang, libgcrypt, Bug Report

Jul 31 2017

rajeshg8 added a comment to T3314: libgcrypt-1.8.0 failed on solaris 10.

getting same error with 1.7 version also.

Jul 31 2017, 6:37 AM · libgcrypt, Bug Report
rajeshg8 added a comment to T3314: libgcrypt-1.8.0 failed on solaris 10.

Could you please help me on this, any fix do you have for this kind of issue.

Jul 31 2017, 3:06 AM · libgcrypt, Bug Report
rajeshg8 added a comment to T3314: libgcrypt-1.8.0 failed on solaris 10.

not able to apply given patch in my unix box, please find the below output.

Jul 31 2017, 3:00 AM · libgcrypt, Bug Report

Jul 30 2017

rajeshg8 added a comment to T3314: libgcrypt-1.8.0 failed on solaris 10.

Could you please provide me the dyñamic library path to set my profile Solaris 10 command

Jul 30 2017, 3:04 AM · libgcrypt, Bug Report

Jul 29 2017

werner added a comment to T3314: libgcrypt-1.8.0 failed on solaris 10.

On Sat, 29 Jul 2017 15:12, noreply@dev.gnupg.org said:

Jul 29 2017, 9:25 PM · libgcrypt, Bug Report
rajeshg8 added a comment to T3314: libgcrypt-1.8.0 failed on solaris 10.

could you please guide me order to install below libraries and I will update you once I apply that patch .

Jul 29 2017, 3:54 PM · libgcrypt, Bug Report
rajeshg8 added a comment to T3314: libgcrypt-1.8.0 failed on solaris 10.

Also could you please guide me the order to install these libraries to solaris box.
I am installing as below order:
npth-1.5
libgpg-error-1.27.tar
libgcrypt-1.8.0.tar
libassuan-2.4.3.tar
libksba-1.3.5.tar
gnupg-2.1.21.tar

Jul 29 2017, 3:12 PM · libgcrypt, Bug Report
jukivili added a comment to T3314: libgcrypt-1.8.0 failed on solaris 10.

You can apply this patch by first navigating to libgcrypt-1.8 path and then giving following command (you need 'patch' tool to be installed):

Jul 29 2017, 2:10 PM · libgcrypt, Bug Report
rajeshg8 added a comment to T3314: libgcrypt-1.8.0 failed on solaris 10.

please guide me how to add this patch in solaris 10 os version

Jul 29 2017, 1:54 PM · libgcrypt, Bug Report
jukivili added a comment to T3314: libgcrypt-1.8.0 failed on solaris 10.

In libgcrypt, _gcry_md_extract has different return type in gcrypt-int.h than in md.c. Does attached patch solve the problem?

Jul 29 2017, 1:51 PM · libgcrypt, Bug Report