Page MenuHome GnuPG
Feed Advanced Search

Aug 25 2019

jukivili claimed T4630: libgcrypt: POWER GHASH Vector Acceleration.

I'll start working on PowerPC GHASH implementation in September after SHA2 is done.

Aug 25 2019, 6:12 PM · Feature Request, libgcrypt
jukivili claimed T4530: libgcrypt: POWER SHA-2 Vector Acceleration.

I'll start working on new PowerPC SHA2 implementations for libgcrypt in coming weeks.

Aug 25 2019, 6:11 PM · libgcrypt, Feature Request
jukivili claimed T4529: libgcrypt: POWER AES Vector Acceleration.

Patches for PowerPC AES acceleration sent to mailing-list, based partly on initial work by Shawn Landden (@slandden): https://lists.gnupg.org/pipermail/gcrypt-devel/2019-August/004788.html

Aug 25 2019, 6:10 PM · libgcrypt, Feature Request

Aug 23 2019

werner added a parent task for T4683: Release Libgcrypt 1.8.5: T4684: Release GnuPG 2.2.18.
Aug 23 2019, 11:31 AM · CVE, Release Info, libgcrypt
werner created T4683: Release Libgcrypt 1.8.5.
Aug 23 2019, 11:28 AM · CVE, Release Info, libgcrypt

Aug 13 2019

ffontaine added a comment to T4663: libgcrypt: fix build without threads by adding an option to disable tests.

Fixing t-lock is indeed a better solution however having an option to disable tests could be used in another context than fixing this issue.
For example, in the context of buildroot (which goal is to build a custom embedded linux system), this option could be used to save time during compilation as well as to save space on the embedded system.

Aug 13 2019, 9:17 AM · libgcrypt, Bug Report
gniibe claimed T4663: libgcrypt: fix build without threads by adding an option to disable tests.

Thanks for your report.
I think that adding an option for disabling tests is too much.
If it were AC_SUBST, we could use HAVE_PTHREAD in tests/Makefile.am.
In the current situation, just modifining t-lock is easier.

Aug 13 2019, 7:13 AM · libgcrypt, Bug Report

Aug 2 2019

werner triaged T4663: libgcrypt: fix build without threads by adding an option to disable tests as Normal priority.
Aug 2 2019, 11:33 AM · libgcrypt, Bug Report

Jul 18 2019

slandden updated subscribers of T4630: libgcrypt: POWER GHASH Vector Acceleration.

@werner I would be willing to share 20% to the reviewer of my patches. (or 25% in this case, as @jwilk went through the effort to even write a test to point out a bug in my code). However, so far that has been entirely @jwilk who has been reviewing my patches.

Jul 18 2019, 5:59 PM · Feature Request, libgcrypt

Jul 17 2019

werner triaged T4630: libgcrypt: POWER GHASH Vector Acceleration as Low priority.
Jul 17 2019, 12:07 PM · Feature Request, libgcrypt
werner added a comment to T4630: libgcrypt: POWER GHASH Vector Acceleration.

Please STOP adding such bug reports or feature requests. They are not helpful and such discussion are better done at the mailing list. In case you want to spend money to speed up things you may contact gnupg.com for a quote.

Jul 17 2019, 12:07 PM · Feature Request, libgcrypt

Jul 16 2019

johnmar created T4630: libgcrypt: POWER GHASH Vector Acceleration in the S1 Public space.
Jul 16 2019, 6:32 PM · Feature Request, libgcrypt
werner triaged T4529: libgcrypt: POWER AES Vector Acceleration as Normal priority.

Please do not change the priority back. That is a maintainer's task. I consider this along with adding replicas of issues to a bit rude.

Jul 16 2019, 8:33 AM · libgcrypt, Feature Request
werner triaged T4530: libgcrypt: POWER SHA-2 Vector Acceleration as Normal priority.

Please do not change the priority back without discussing this with the maintainer first. Thanks.

Jul 16 2019, 8:31 AM · libgcrypt, Feature Request
werner closed T4629: POWER AES Vector Acceleration as Spite.
Jul 16 2019, 8:27 AM · libgcrypt, Feature Request

Jul 15 2019

johnmar raised the priority of T4530: libgcrypt: POWER SHA-2 Vector Acceleration from Normal to Needs Triage.
Jul 15 2019, 9:09 PM · libgcrypt, Feature Request
johnmar raised the priority of T4529: libgcrypt: POWER AES Vector Acceleration from Normal to Needs Triage.
Jul 15 2019, 9:09 PM · libgcrypt, Feature Request
johnmar updated the task description for T4629: POWER AES Vector Acceleration.
Jul 15 2019, 8:45 PM · libgcrypt, Feature Request
johnmar created T4629: POWER AES Vector Acceleration.
Jul 15 2019, 8:38 PM · libgcrypt, Feature Request
johnmar added a watcher for libgcrypt: johnmar.
Jul 15 2019, 6:22 PM

Jul 10 2019

werner added a comment to T4541: C implementation of AES is vulnerable to side-channel attacks.

Check out the mailing list gcrypt-devel@

Jul 10 2019, 7:23 PM · side-channel, libgcrypt, Bug Report
ware added a comment to T4541: C implementation of AES is vulnerable to side-channel attacks.

Folks, I was just wondering if I could get an update on where we are with this bug. It seems we aren't sure if it's a real issue or not. What's the latest thought?

Jul 10 2019, 7:17 PM · side-channel, libgcrypt, Bug Report

Jul 8 2019

jukivili added a revision to T4530: libgcrypt: POWER SHA-2 Vector Acceleration: D490: PowerPC optimized routines for AES and SHA2 using PowerISA 2.07 instructions..
Jul 8 2019, 2:57 PM · libgcrypt, Feature Request
jukivili added a revision to T4529: libgcrypt: POWER AES Vector Acceleration: D490: PowerPC optimized routines for AES and SHA2 using PowerISA 2.07 instructions..
Jul 8 2019, 2:57 PM · libgcrypt, Feature Request
jukivili added revisions to T4529: libgcrypt: POWER AES Vector Acceleration: D493: AES block modes for PPC, D494: rijndael/ppc: re-implement single-block mode, and implement OCB block cipher.
Jul 8 2019, 2:55 PM · libgcrypt, Feature Request
jukivili added a subtask for T4460: libgcrypt performance TODOs: T4531: PowerPC performance improvements.
Jul 8 2019, 2:52 PM · libgcrypt

Jun 25 2019

gniibe changed the status of T4274: Fail selftests when checksum file is missing in FIPS mode only from Open to Testing.
Jun 25 2019, 6:01 AM · Restricted Project, libgcrypt, Bug Report
gniibe changed the status of T4274: Fail selftests when checksum file is missing in FIPS mode only, a subtask of T4294: Release Libgcrypt 1.9.0, from Open to Testing.
Jun 25 2019, 6:01 AM · Release Info, libgcrypt
gniibe changed the status of T4293: Add dedicated X25519 function to Libcgrypt from Open to Testing.
Jun 25 2019, 5:46 AM · Restricted Project, libgcrypt
gniibe changed the status of T4293: Add dedicated X25519 function to Libcgrypt , a subtask of T4294: Release Libgcrypt 1.9.0, from Open to Testing.
Jun 25 2019, 5:46 AM · Release Info, libgcrypt

Jun 23 2019

slandden added a comment to T4541: C implementation of AES is vulnerable to side-channel attacks.

Werner, I interpreted jwilik's patch as admission of a problem from upstream, and reported it as such to CVE. I felt that since this does not effect the main platforms (ARM and x86_64) it would not be a big deal. If I interpreted wrong, I am sorry.

Jun 23 2019, 7:52 PM · side-channel, libgcrypt, Bug Report
slandden added a comment to T4541: C implementation of AES is vulnerable to side-channel attacks.

I assigned the CVE, but yes it needs more facts.

Jun 23 2019, 5:48 PM · side-channel, libgcrypt, Bug Report
werner added a comment to T4541: C implementation of AES is vulnerable to side-channel attacks.

Andreas, I wonder on which grounds you assigned a CVE for this claimed side-channel attack. The mentioned paper is about an old RSA side-channel and not on AES. I would like to see more facts than the reference to a guy who knows PPC pretty well.

Jun 23 2019, 5:45 PM · side-channel, libgcrypt, Bug Report

Jun 22 2019

ametzler1 added a comment to T4541: C implementation of AES is vulnerable to side-channel attacks.

This bug has been assigned CVE-2019-12904. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-12904

Jun 22 2019, 6:36 AM · side-channel, libgcrypt, Bug Report

Jun 21 2019

gniibe added a comment to T4293: Add dedicated X25519 function to Libcgrypt .

Thanks, that's a good point. I'm adding gcry_ecc_get_algo_keylen.
I also changing the API for output (not allocating a buffer, but filling the buffer provided).

Jun 21 2019, 4:53 AM · Restricted Project, libgcrypt

Jun 20 2019

jukivili added a comment to T4293: Add dedicated X25519 function to Libcgrypt .

Would it be good to have interface for getting buffer size for different algos in this new interface? ... Similar as 'gcry_md_get_algo_dlen' for digest results.

Jun 20 2019, 11:37 AM · Restricted Project, libgcrypt
gniibe added a comment to T4293: Add dedicated X25519 function to Libcgrypt .

Perhaps, returning allocated memory is not good. Filling the buffer for output would be better.

Jun 20 2019, 5:02 AM · Restricted Project, libgcrypt
gniibe added a comment to T4293: Add dedicated X25519 function to Libcgrypt .

Shall we use secure buffer?

Jun 20 2019, 4:38 AM · Restricted Project, libgcrypt

Jun 6 2019

slandden updated the task description for T4541: C implementation of AES is vulnerable to side-channel attacks.
Jun 6 2019, 6:40 PM · side-channel, libgcrypt, Bug Report

Jun 3 2019

werner added a comment to T4293: Add dedicated X25519 function to Libcgrypt .

Thanks for taking this one.

Jun 3 2019, 11:13 AM · Restricted Project, libgcrypt
gniibe closed T4068: libgcrypt 1.8.3 make check errors as Invalid.
Jun 3 2019, 7:05 AM · Documentation, libgcrypt
gniibe closed T4068: libgcrypt 1.8.3 make check errors, a subtask of T4294: Release Libgcrypt 1.9.0, as Invalid.
Jun 3 2019, 7:05 AM · Release Info, libgcrypt
gniibe closed T4243: Test failure in libgcrypt-1.8.4, a subtask of T4294: Release Libgcrypt 1.9.0, as Invalid.
Jun 3 2019, 6:53 AM · Release Info, libgcrypt
gniibe closed T4243: Test failure in libgcrypt-1.8.4 as Invalid.

This is problem of your setup of your build environment. Closing.

Jun 3 2019, 6:53 AM · Documentation, Tests, libgcrypt, Bug Report
gniibe claimed T4068: libgcrypt 1.8.3 make check errors.

We got reports from Ubuntu users, perhaps, it's good to refer:

Jun 3 2019, 6:24 AM · Documentation, libgcrypt
gniibe claimed T4293: Add dedicated X25519 function to Libcgrypt .
Jun 3 2019, 6:15 AM · Restricted Project, libgcrypt

May 30 2019

slandden updated the task description for T4541: C implementation of AES is vulnerable to side-channel attacks.
May 30 2019, 3:46 PM · side-channel, libgcrypt, Bug Report

May 29 2019

werner added a project to T4541: C implementation of AES is vulnerable to side-channel attacks: side-channel.
May 29 2019, 8:29 AM · side-channel, libgcrypt, Bug Report
werner triaged T4541: C implementation of AES is vulnerable to side-channel attacks as Normal priority.

Thanks for taking the time to describe this attack vector. We will need to study this closer to balance such a change with other side effects of this.

May 29 2019, 8:27 AM · side-channel, libgcrypt, Bug Report

May 28 2019

slandden reopened T4541: C implementation of AES is vulnerable to side-channel attacks as "Open".
May 28 2019, 8:14 PM · side-channel, libgcrypt, Bug Report
slandden closed T4541: C implementation of AES is vulnerable to side-channel attacks as Invalid.

I do not have a PoC (or much interest in making one, I have too many more important things to do), but I believe this to be correct, based heavily on PPC knowledge of Nicolas König <koenigni@student.ethz.ch> . This attack also applies to AMD, Intel, and ARM.

May 28 2019, 8:12 PM · side-channel, libgcrypt, Bug Report
werner added a project to T4541: C implementation of AES is vulnerable to side-channel attacks: libgcrypt.

Can you please give more details and tell whether this is powerpc specific.

May 28 2019, 12:34 PM · side-channel, libgcrypt, Bug Report

May 25 2019

werner closed T4540: compress tarballs with xz as Wontfix.

No sorry, we won't do that for the regular source. However, the full source for the binary installer is xz compressed. That is because we are legally required to publish the source but in reality the source ist not used and weel, to build you have lots of other requirements with xz being the simplest one.

May 25 2019, 8:44 PM · gnupg, libgcrypt
vtorri created T4540: compress tarballs with xz in the S1 Public space.
May 25 2019, 7:51 PM · gnupg, libgcrypt

May 24 2019

slandden added a revision to T4530: libgcrypt: POWER SHA-2 Vector Acceleration: D492: Add PowerPC crypto acceleration support for SHA2..
May 24 2019, 6:06 AM · libgcrypt, Feature Request
slandden added a revision to T4529: libgcrypt: POWER AES Vector Acceleration: D491: Support for PowerPC's AES acceleration..
May 24 2019, 6:03 AM · libgcrypt, Feature Request

May 23 2019

gniibe closed T3283: Set 'mym4_revision' to 0 if not a git repo as Resolved.
May 23 2019, 1:59 AM · libgcrypt, Bug Report

May 21 2019

werner added a comment to T4534: gcry_sexp_canon_len() documentation claims that valid S-expressions will never return 0, but it returns 0 if an empty string is found in a valid S-expression.

I don't see why the documentation needs to be fixed. gcry_sexp_canon_len returns 0 for certain and s-expressions, meaning tha the s-expression is not valid. After all the s-expression code in libgcrypt does not claim to be a general purpose parser for s-expression but is targeted towards Libgcrypt needs.

May 21 2019, 6:26 PM · libgcrypt, Bug Report
dkg added a comment to T4534: gcry_sexp_canon_len() documentation claims that valid S-expressions will never return 0, but it returns 0 if an empty string is found in a valid S-expression.

By marking this as "wontfix", you appear to be saying that you won't even fix the documentation to describe the constraints that gcrypt intends to enforce. This is surprising to me.

May 21 2019, 5:59 PM · libgcrypt, Bug Report
werner closed T4534: gcry_sexp_canon_len() documentation claims that valid S-expressions will never return 0, but it returns 0 if an empty string is found in a valid S-expression as Wontfix.
May 21 2019, 4:30 PM · libgcrypt, Bug Report
dkg created T4534: gcry_sexp_canon_len() documentation claims that valid S-expressions will never return 0, but it returns 0 if an empty string is found in a valid S-expression.
May 21 2019, 4:28 PM · libgcrypt, Bug Report
werner added a parent task for T4529: libgcrypt: POWER AES Vector Acceleration: T4531: PowerPC performance improvements.
May 21 2019, 7:54 AM · libgcrypt, Feature Request
werner added a parent task for T4530: libgcrypt: POWER SHA-2 Vector Acceleration: T4531: PowerPC performance improvements.
May 21 2019, 7:54 AM · libgcrypt, Feature Request
werner renamed T4530: libgcrypt: POWER SHA-2 Vector Acceleration from [$] libgcrypt: POWER SHA-2 Vector Acceleration to libgcrypt: POWER SHA-2 Vector Acceleration.
May 21 2019, 7:52 AM · libgcrypt, Feature Request
werner triaged T4529: libgcrypt: POWER AES Vector Acceleration as Normal priority.

Perl would be okay for maintainer mode but not for regular builds. The reason is that perl is already used by autotools but a build shall still be possible w/o perl.

May 21 2019, 7:51 AM · libgcrypt, Feature Request
werner renamed T4529: libgcrypt: POWER AES Vector Acceleration from [$] libgcrypt: POWER AES Vector Acceleration to libgcrypt: POWER AES Vector Acceleration.
May 21 2019, 7:47 AM · libgcrypt, Feature Request

May 20 2019

slandden added a comment to T4529: libgcrypt: POWER AES Vector Acceleration.

I'm looking into doing a pretty epic hack of using the switch_endian syscall to speed this up.

May 20 2019, 11:52 PM · libgcrypt, Feature Request
gcwilson added a comment to T4529: libgcrypt: POWER AES Vector Acceleration.

I don't know. That would make it a relatively easy transplant. We've also used the Cryptogams code as a reference for Golang enhancements, if that helps. I'd welcome guidance on the matter from a maintainer.

May 20 2019, 9:46 PM · libgcrypt, Feature Request
slandden added a comment to T4529: libgcrypt: POWER AES Vector Acceleration.

Would the maintainers accept having perl in the repository? Linux does it.[1]

May 20 2019, 8:35 PM · libgcrypt, Feature Request
gcwilson created T4530: libgcrypt: POWER SHA-2 Vector Acceleration.
May 20 2019, 7:04 PM · libgcrypt, Feature Request
gcwilson created T4529: libgcrypt: POWER AES Vector Acceleration.
May 20 2019, 7:01 PM · libgcrypt, Feature Request

May 17 2019

werner triaged T4304: gcry_control (GCRYCTL_INIT_SECMEM, 16384, 0) failed: General error as Normal priority.
May 17 2019, 6:47 PM · Legacy OS, Fedora, libgcrypt, Bug Report

May 16 2019

werner closed T4516: use https: links internally where possible instead of http:// in libgcrypt source as Wontfix.

I pulled that branch with the commit w/o problems. However, as noted on your commit I won't apply that because it does not make any sense to change boilerplate blurbs for just an additional 's'. Nobody really uses that and browser can try to use https first. Sorry, there are more important things around.

May 16 2019, 10:50 AM · libgcrypt

May 14 2019

dkg added a comment to T4516: use https: links internally where possible instead of http:// in libgcrypt source.

(hm, i'm pushing apparently successfully to playfair.gnupg.org:/git/libgcrypt.git but it is not showing up here. if you want to fetch this patch, you can also find it on the http-to-https branch at https://gitlab.com/dkg/libgcrypt.git

May 14 2019, 10:35 PM · libgcrypt
dkg created T4516: use https: links internally where possible instead of http:// in libgcrypt source.
May 14 2019, 10:30 PM · libgcrypt
werner added a comment to T4499: Asan finding in libgcrypt.

I would prefer not to fix that. I did some experiments on replacing all the runtime parsed ECC constants by static data. Adding the other constants will then be simple.

May 14 2019, 8:19 PM · libgcrypt
jukivili added a comment to T4499: Asan finding in libgcrypt.

I've prepared patch for statically defining mpiutil contants, but I can leave it out and not push to master.

May 14 2019, 6:38 PM · libgcrypt
JW added a comment to T4499: Asan finding in libgcrypt.

I was talking to Thomas Dickey, who maintains Ncurses. Ncurses had a leak and he offered a config option to remove it. Ncurses config responds to --disable-leaks.

May 14 2019, 1:45 AM · libgcrypt

May 13 2019

JW added a comment to T4499: Asan finding in libgcrypt.

Dynamic loading of Libgcrypt is anyway not supported; those who do that are on their own.

May 13 2019, 10:17 PM · libgcrypt
werner triaged T4499: Asan finding in libgcrypt as Low priority.

I have not yet looked at the details but I do not consider one-time allocation a problem. If you want to silence ASAN it is possible to use gpgrt_annotate_leaked_object( foo). Dynamic loading of Libgcrypt is anyway not supported; those who do that are on their own.

May 13 2019, 4:01 PM · libgcrypt

May 12 2019

jukivili added a comment to T4499: Asan finding in libgcrypt.

That type of variadic macro is GCC extension, see https://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html

May 12 2019, 6:45 PM · libgcrypt
JW added a comment to T4499: Asan finding in libgcrypt.

The second and third arguments passed to xgcry_control seem to be lost when calling gcry_control.

May 12 2019, 7:16 AM · libgcrypt
JW added a comment to T4499: Asan finding in libgcrypt.

Here are the next two failures I am seeing while testing libgrcypt. It appears to be related to GCRYCTL_INIT_SECMEM.

May 12 2019, 12:44 AM · libgcrypt

May 11 2019

JW added a comment to T4499: Asan finding in libgcrypt.

I'm still seeing a few odd outputs from make check, but I have not investigated them yet.

May 11 2019, 10:50 PM · libgcrypt
JW added a comment to T4499: Asan finding in libgcrypt.

Maybe cleaner option for mpi/mpiutil.c would be to statically allocate the constants

May 11 2019, 9:14 PM · libgcrypt
jukivili added a comment to T4499: Asan finding in libgcrypt.

Maybe cleaner option for mpi/mpiutil.c would be to statically allocate the constants

May 11 2019, 1:27 PM · libgcrypt
JW added a comment to T4499: Asan finding in libgcrypt.

Here's a couple of awful hacks that get me through make check. Feel free to restate how awful they are; I know it is a bad thing to do.

May 11 2019, 7:24 AM · libgcrypt

May 10 2019

JW updated the task description for T4499: Asan finding in libgcrypt.
May 10 2019, 11:44 PM · libgcrypt
JW created T4499: Asan finding in libgcrypt in the S1 Public space.
May 10 2019, 11:43 PM · libgcrypt

May 7 2019

jukivili updated the task description for T4460: libgcrypt performance TODOs.
May 7 2019, 8:15 PM · libgcrypt
jukivili added a comment to T4460: libgcrypt performance TODOs.

SPARC T4 has crypto instruction set for AES, GCM, SHA1, SHA256, SHA512, Camellia and DES, that can be used from user-space too.

May 7 2019, 8:14 PM · libgcrypt
werner added a comment to T4460: libgcrypt performance TODOs.

Isn't the Sparc crypto instruction set only available in kernel mode?

May 7 2019, 11:57 AM · libgcrypt
werner triaged T4485: Add AEAD mode AES-GCM-SIV to libgcrypt (RFC 8452) as Normal priority.
May 7 2019, 8:55 AM · Feature Request, libgcrypt
werner triaged T4486: Add AEAD mode AES-SIV to libgcrypt (RFC 5297) as Normal priority.
May 7 2019, 8:55 AM · Feature Request, libgcrypt

May 6 2019

jukivili updated the task description for T4460: libgcrypt performance TODOs.
May 6 2019, 9:14 PM · libgcrypt
jukivili updated the task description for T4460: libgcrypt performance TODOs.
May 6 2019, 9:12 PM · libgcrypt
jukivili updated the task description for T4460: libgcrypt performance TODOs.
May 6 2019, 9:12 PM · libgcrypt
jukivili created T4486: Add AEAD mode AES-SIV to libgcrypt (RFC 5297) in the S1 Public space.
May 6 2019, 9:06 PM · Feature Request, libgcrypt
jukivili created T4485: Add AEAD mode AES-GCM-SIV to libgcrypt (RFC 8452) in the S1 Public space.
May 6 2019, 9:03 PM · Feature Request, libgcrypt

May 1 2019

jukivili abandoned D477: Add support for explicit_memset.

This change has been pushed to repository.

May 1 2019, 3:24 PM · libgcrypt