Page MenuHome GnuPG
Feed Advanced Search

Jul 8 2019

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

Apr 28 2019

jukivili updated the summary of D477: Add support for explicit_memset.
Apr 28 2019, 8:36 AM · libgcrypt
jukivili updated the summary of D477: Add support for explicit_memset.
Apr 28 2019, 8:36 AM · libgcrypt
jukivili created D477: Add support for explicit_memset.
Apr 28 2019, 8:35 AM · libgcrypt

Apr 14 2019

jukivili created T4460: libgcrypt performance TODOs in the S1 Public space.
Apr 14 2019, 2:14 PM · libgcrypt

Apr 1 2019

jukivili placed T4425: libgcrypt relocation error on aarch64 up for grabs.

I think commit https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commit;h=09c27280cc09798d15369b3a143036b7ab5ddd69 should be backported to 1.8 branch of libgcrypt.

Apr 1 2019, 9:16 PM · asm, libgcrypt, Bug Report

Mar 25 2019

Chris6502 added a comment to T4425: libgcrypt relocation error on aarch64.

Thank you, it worked.

Mar 25 2019, 7:45 PM · asm, libgcrypt, Bug Report

Mar 24 2019

jukivili closed T3878: not all calloc performed in libgcrypt covered by gcry_set_allocation_handler as Resolved.
Mar 24 2019, 8:56 PM · libgcrypt, Bug Report
jukivili closed T2388: Inform callers about memory alignment requirements of a cipher implementation as Resolved.
Mar 24 2019, 8:56 PM · libgcrypt, Feature Request
jukivili claimed T4425: libgcrypt relocation error on aarch64.
Mar 24 2019, 8:55 PM · asm, libgcrypt, Bug Report
jukivili claimed T2388: Inform callers about memory alignment requirements of a cipher implementation.
Mar 24 2019, 9:51 AM · libgcrypt, Feature Request
jukivili claimed T3878: not all calloc performed in libgcrypt covered by gcry_set_allocation_handler.
Mar 24 2019, 9:27 AM · libgcrypt, Bug Report
jukivili closed T4317: libgcrypt: cipher/camellia-aarch64.S is not PIC as Resolved.
Mar 24 2019, 9:14 AM · asm, libgcrypt, Bug Report
jukivili claimed T4317: libgcrypt: cipher/camellia-aarch64.S is not PIC.
Mar 24 2019, 9:13 AM · asm, libgcrypt, Bug Report

Mar 20 2019

werner closed T4414: please make ecc debugging info from libgcrypt more legible. as Resolved.

Thanks.

Mar 20 2019, 10:03 AM · libgcrypt, Bug Report
werner added a comment to T4414: please make ecc debugging info from libgcrypt more legible..

Applied to master. This is not suitable for 1.8

Mar 20 2019, 10:03 AM · libgcrypt, Bug Report
dkg added a comment to T4414: please make ecc debugging info from libgcrypt more legible..

for whatever reason, i don't seem to be able to push to the branch on playfair, so i've also pushed the same commit over at https://gitlab.com/dkg/libgcrypt

Mar 20 2019, 3:10 AM · libgcrypt, Bug Report
dkg created T4414: please make ecc debugging info from libgcrypt more legible..
Mar 20 2019, 3:08 AM · libgcrypt, Bug Report

Feb 25 2019

gniibe triaged T4274: Fail selftests when checksum file is missing in FIPS mode only as Normal priority.

Fixed in master.

Feb 25 2019, 1:10 AM · Restricted Project, libgcrypt, Bug Report
gniibe claimed T4274: Fail selftests when checksum file is missing in FIPS mode only.

Thanks for your report.
I think that your patch is too generous to run HMAC even if fips_mode is not enabled; Simply, we can stop calling integrity check when fips_mode is not active.

Feb 25 2019, 1:09 AM · Restricted Project, libgcrypt, Bug Report

Feb 19 2019

gniibe closed T4217: {libksba,libgcrypt,ntbtls,libassuan,npth}.m4, {libksba,libgcrypt,ntbtls,libassuan}-config script and gpg-error-config as Resolved.
Feb 19 2019, 2:48 AM · npth, libassuan, ntbtls, libgcrypt, libksba

Jan 17 2019

gniibe added a comment to T4304: gcry_control (GCRYCTL_INIT_SECMEM, 16384, 0) failed: General error.

Reading https://en.wikipedia.org/wiki/Fedora_version_history, I guess that your kernel/glibc doesn't have working mlock.
It may work if running by root, though.

Jan 17 2019, 4:05 AM · Legacy OS, Fedora, libgcrypt, Bug Report
gniibe claimed T4243: Test failure in libgcrypt-1.8.4.

T4298: 'make check' with uninstalled library, which is building now (even if rpath doesn't work well) handles related issue, which was fixed for libgcrypt-1.9. Since this issue is for other libraries (libgpg-error, specifically), we could do something similar, but, it may be detecting LD_LIBRARY_PATH to fail with "Please remove LD_LIBRARY_PATH".

Jan 17 2019, 1:39 AM · Documentation, Tests, libgcrypt, Bug Report
gniibe abandoned D473: Introducing LDADD_FOR_TESTS_KLUDGE to enable 'make check' with LD_LIBRARY_PATH.

Applied.

Jan 17 2019, 1:00 AM · gpgme, libksba, libgcrypt, ntbtls, libassuan, gpgrt

Jan 15 2019

gniibe closed T4288: Add getrandom support for the BSDs as Resolved.

Pushed to master, fixing about return value of getentropy. Tested on FreeBSD 12. Tested on FreeBSD 11 where getentropy is not available.

Jan 15 2019, 7:54 AM · libgcrypt