Page MenuHome GnuPG
Feed Advanced Search

Jul 29 2017

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

URL | name ]]URL | name ]]Hi Werner,

Jul 29 2017, 1:38 PM · libgcrypt, Bug Report
werner triaged T3314: libgcrypt-1.8.0 failed on solaris 10 as High priority.

Please provide information on how you build this. That is invocation of configure and make and best attsch the created config.log.

Jul 29 2017, 11:33 AM · libgcrypt, Bug Report

Jul 24 2017

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

The fixed sed expression still does not work correctly; it misses the plain "-O" form of the option. As per gcc docs, -O is the same as -O1, and clang accepts it (and the build falls over with it) even though it does not document it at all.

Jul 24 2017, 10:41 AM · clang, libgcrypt, Bug Report
werner triaged T3293: libgcrypt: warning: unknown pragma "#pragma GCC optimize" ignored => compile failure with LLVM 5.0 as Low priority.

The warning is just a warning, so no problem. The pragma even indicates the compiler for which it is intended.

Jul 24 2017, 9:41 AM · clang, libgcrypt, Bug Report

Jul 20 2017

marcus added a parent task for T2349: Composing a private key from raw key material: T1734: [SUGGESTION] Implement a function to re-generate public keys and(!) "stubs" from private keys stored on smartcard only.
Jul 20 2017, 9:15 PM · libgcrypt, Feature Request
marcus closed T2207: recipe for target 'mpih-add1-asm.lo' failed as Invalid.

According to this, setting LD is not sufficient to make gcc use a different linker.

Jul 20 2017, 6:05 PM · Bug Report, libgcrypt

Jul 18 2017

werner added a project to T3202: add support for illumos to our version of libtool: Info Needed.
Jul 18 2017, 2:25 PM · Info Needed, gpgrt, Bug Report

Jul 17 2017

marcus merged T2970: libgcrypt fails to build without NEON instruction set on arm64 into T2975: building libgcrypt fails on ARM64/FreeBSD 11x STABLE.
Jul 17 2017, 5:41 PM · Bug Report, libgcrypt
marcus merged task T2970: libgcrypt fails to build without NEON instruction set on arm64 into T2975: building libgcrypt fails on ARM64/FreeBSD 11x STABLE.
Jul 17 2017, 5:41 PM · Bug Report, libgcrypt, Won't Fix
marcus closed T1901: seed.c: the right operand of '^' is a garbage value as Wontfix.
Jul 17 2017, 5:33 PM · Won't Fix, libgcrypt
marcus closed T1900: des.c: the right operand of '^' is a garbage value as Wontfix.
Jul 17 2017, 5:32 PM · Mistaken, libgcrypt
marcus closed T1899: primegen.c: uses is_locked, which appears to suffer a race as Wontfix.
Jul 17 2017, 5:31 PM · Not A Bug, libgcrypt
marcus closed T1894: mpi-bit: numerous potential null pointer dereferences as Wontfix.
Jul 17 2017, 5:31 PM · Mistaken, libgcrypt

Jul 14 2017

gniibe added a comment to T3269: (Constant-time) modular reduction.

https://patents.stackexchange.com/questions/5766/is-an-expired-patent-in-the-public-domain

Jul 14 2017, 8:40 AM · libgcrypt
gniibe added a comment to T3269: (Constant-time) modular reduction.

I found US patent which is expired due to fee: https://patents.google.com/patent/US7080109B2/en
The technique is described in : https://koclab.cs.ucsb.edu/docs/koc/j56.pdf
This is related paper: https://koclab.cs.ucsb.edu/docs/koc/j47.pdf

Jul 14 2017, 8:26 AM · libgcrypt
gniibe added a comment to T3269: (Constant-time) modular reduction.

Intel has patent application for folding technique for Montgomery reduction: US8392494
which is described in this paper: https://www.cse.buffalo.edu/srds2009/escs2009_submission_Gopal.pdf

Jul 14 2017, 4:44 AM · libgcrypt
gniibe renamed T3269: (Constant-time) modular reduction from (Constant-time) Barret modular reduction to (Constant-time) modular reduction.
Jul 14 2017, 4:42 AM · libgcrypt

Jul 13 2017

jukivili closed T2975: building libgcrypt fails on ARM64/FreeBSD 11x STABLE as Resolved.
Jul 13 2017, 10:02 PM · Bug Report, libgcrypt
marcus added a comment to T2325: rijndael error during make.

Ah, ok, thanks for the info!

Jul 13 2017, 9:33 PM · Assembler, Bug Report, libgcrypt
jukivili added a comment to T2325: rijndael error during make.

Likely fixed by commit a4d1595a2638db63ac4c73e722c8ba95fdd85ff7 (rijndael-aesni: split assembly block to ease register pressure) in 1.7 branch (and included in 1.7.3+).

Jul 13 2017, 9:32 PM · Assembler, Bug Report, libgcrypt
marcus closed T1608: GNUPG_SYS_SYMBOL_UNDERSCORE and cross compile as Wontfix.

I am closing this, because this particular change was rejected. Eventually libtool might get updated on its own merits, so no need to track this here.

Jul 13 2017, 5:20 PM · Stalled, libgcrypt, Not A Bug, Gentoo, Bug Report
marcus closed T2325: rijndael error during make as Invalid.

Compiler bug. Probably misdetection of aesni support in old AMD processors?

Jul 13 2017, 5:06 PM · Assembler, Bug Report, libgcrypt

Jul 11 2017

gniibe added a comment to T3269: (Constant-time) modular reduction.

Intel has patent application for folding technique for Barret reduction: US20070297601
and it is granted as: US8229109

Jul 11 2017, 9:54 AM · libgcrypt
gniibe created T3269: (Constant-time) modular reduction.
Jul 11 2017, 8:56 AM · libgcrypt
gniibe claimed T3264: Possible RSA improvement.

The part of using Simultaneous Multiple Exponentiation (SME) for RSA is not patented, I think.
So, let me consider with SME.

Jul 11 2017, 3:47 AM · libgcrypt

Jul 10 2017

gniibe added a comment to T3264: Possible RSA improvement.

Another area would be faster (constant time) Barrett reduction.

Jul 10 2017, 5:16 AM · libgcrypt
gniibe added a comment to T3264: Possible RSA improvement.

In search of algorithm, I found this slide:
http://www1.spms.ntu.edu.sg/~ccrg/documents/chienning-multiexponentiation.pdf

Jul 10 2017, 2:29 AM · libgcrypt
gniibe created T3264: Possible RSA improvement.
Jul 10 2017, 2:27 AM · libgcrypt

Jul 6 2017

jukivili added a comment to T3247: SIGILL in prepare_macpads() at md.c:681.

I did some experimenting and clang SIGILL does not trigger with commonly used, but non-conforming, variable-length object with "struct hack", as below:

Jul 6 2017, 1:22 PM · clang, Ubuntu, libgcrypt, Bug Report

Jul 5 2017

werner added a comment to T3247: SIGILL in prepare_macpads() at md.c:681.

With an integer overflow.

Jul 5 2017, 3:23 PM · clang, Ubuntu, libgcrypt, Bug Report
marcus added a comment to T3247: SIGILL in prepare_macpads() at md.c:681.

This is a standard dynamic sized array:

Jul 5 2017, 3:05 PM · clang, Ubuntu, libgcrypt, Bug Report
werner added a comment to T3247: SIGILL in prepare_macpads() at md.c:681.

Sorry, this is a standard C feature and the only way to have dynamic sized arrays. CLANG simply does not get this pattern right. Grep for pgut001's very comments on such ill behaving compilers (including gcc).

Jul 5 2017, 2:59 PM · clang, Ubuntu, libgcrypt, Bug Report
marcus added a comment to T3247: SIGILL in prepare_macpads() at md.c:681.

At a meta level, I really think that writing more conservative code that enables compilers to do a better job checking for safety is a good idea. The tricks we do with structs are premature optimization from a time when compilers were dumb as a doornail.

Jul 5 2017, 2:56 PM · clang, Ubuntu, libgcrypt, Bug Report
marcus added a comment to T3247: SIGILL in prepare_macpads() at md.c:681.

Maybe casting to a void* helps to disable the check in the compiler.

Jul 5 2017, 2:52 PM · clang, Ubuntu, libgcrypt, Bug Report
gniibe added a comment to T3247: SIGILL in prepare_macpads() at md.c:681.

I can replicate the issue on my system.
It is not the line 681, actually.

Jul 5 2017, 4:07 AM · clang, Ubuntu, libgcrypt, Bug Report

Jul 4 2017

gniibe claimed T3247: SIGILL in prepare_macpads() at md.c:681.

I think that the problem is in your usage with your tool. Please have a look at md_open function in cipher/md.c.
This bug is not the one in libgcrypt, but in the compiler.

Jul 4 2017, 6:27 AM · clang, Ubuntu, libgcrypt, Bug Report
gniibe closed T3246: md5.c:119:3: runtime error: unsigned integer overflow: 2612846078 + 3614090360 cannot be represented in type 'unsigned int' as Invalid.

Same argument can apply to MD5. See T3249: sha256.c:265:3: runtime error: unsigned integer overflow: 4084723048 + 1633837952 cannot be represented in type 'unsigned int' of SHA2.

Jul 4 2017, 5:10 AM · clang, Ubuntu, libgcrypt, Bug Report
gniibe closed T3250: random-csprng.c:1070:16: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'size_t' (aka 'unsigned long') as Invalid.

See T3245: cipher-gcm-intel-pclmul.c:418:17: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'size_t' (aka 'unsigned long').

Jul 4 2017, 5:08 AM · clang, Ubuntu, libgcrypt, Bug Report
gniibe closed T3245: cipher-gcm-intel-pclmul.c:418:17: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'size_t' (aka 'unsigned long') as Invalid.

See T3248: mpiutil.c:501:37: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'unsigned long' for unsigned integer overflow.

Jul 4 2017, 5:06 AM · clang, Ubuntu, libgcrypt, Bug Report
gniibe closed T3248: mpiutil.c:501:37: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'unsigned long' as Invalid.

It is intentionally used.
And in the C programming language, it is defined that unsigned integer never overflows (it is computed as modulo 2).

Jul 4 2017, 4:58 AM · clang, Ubuntu, libgcrypt, Bug Report
gniibe closed T3251: sha512.c:342:25: runtime error: unsigned integer overflow: 17296268247117069635 + 2271443192277056827 cannot be represented in type 'unsigned long' as Invalid.

See T3249: sha256.c:265:3: runtime error: unsigned integer overflow: 4084723048 + 1633837952 cannot be represented in type 'unsigned int'.

Jul 4 2017, 4:54 AM · clang, Ubuntu, libgcrypt, Bug Report
geeknik created T3251: sha512.c:342:25: runtime error: unsigned integer overflow: 17296268247117069635 + 2271443192277056827 cannot be represented in type 'unsigned long'.
Jul 4 2017, 3:11 AM · clang, Ubuntu, libgcrypt, Bug Report
geeknik created T3250: random-csprng.c:1070:16: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'size_t' (aka 'unsigned long').
Jul 4 2017, 3:11 AM · clang, Ubuntu, libgcrypt, Bug Report
geeknik created T3248: mpiutil.c:501:37: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'unsigned long'.
Jul 4 2017, 3:11 AM · clang, Ubuntu, libgcrypt, Bug Report
geeknik created T3247: SIGILL in prepare_macpads() at md.c:681.
Jul 4 2017, 3:11 AM · clang, Ubuntu, libgcrypt, Bug Report
geeknik created T3246: md5.c:119:3: runtime error: unsigned integer overflow: 2612846078 + 3614090360 cannot be represented in type 'unsigned int'.
Jul 4 2017, 3:11 AM · clang, Ubuntu, libgcrypt, Bug Report
geeknik created T3245: cipher-gcm-intel-pclmul.c:418:17: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'size_t' (aka 'unsigned long').
Jul 4 2017, 3:10 AM · clang, Ubuntu, libgcrypt, Bug Report

Jun 27 2017

justus triaged T3223: gcry_mpi_ec_mul with Montgomery curves produces segfault as Wishlist priority.
Jun 27 2017, 10:55 AM · libgcrypt, Bug Report

Jun 26 2017

vivira created T3223: gcry_mpi_ec_mul with Montgomery curves produces segfault.
Jun 26 2017, 11:59 PM · libgcrypt, Bug Report
justus triaged T3220: Missing curve documentation as Wishlist priority.
Jun 26 2017, 3:12 PM · patch, libgcrypt, Bug Report

Jun 23 2017

vivira created T3220: Missing curve documentation.
Jun 23 2017, 11:47 PM · patch, libgcrypt, Bug Report
werner closed T2056: libgcrypt: make check fails "random" test on OS X 10.11 with link error as Resolved.

No way to test on El Capitain anymore. It works on Sierra.

Jun 23 2017, 4:28 PM · Stalled, MacOS, Bug Report, libgcrypt
werner closed T1810: Overhaul rndunix.c and rndw32.c as Resolved.

With the new rndjent as used with libgcrypt 1.8 under Windows rhis can be claimed as finished.

Jun 23 2017, 4:13 PM · Bug Report, libgcrypt

Jun 22 2017

marcus closed T1863: libgcrypt offers/uses --with-pth-prefix as Resolved.

@werner Is it clearer now if gcryptrnd will be removed or ported?

Jun 22 2017, 9:09 PM · libgcrypt
marcus closed T1741: comparison between signed and unsigned integer as Wontfix.

If we will ever do this, then only in conjunction with appropriate continuous integration tools that report on new warnings and progress. Closing here.

Jun 22 2017, 5:09 PM · Won't Fix, libgcrypt
marcus closed T1154: While encrypting file getting error as Invalid.
Jun 22 2017, 4:18 PM · libgcrypt

Jun 13 2017

werner added a comment to T3202: add support for illumos to our version of libtool.

and the platform is ...

Jun 13 2017, 8:37 AM · Info Needed, gpgrt, Bug Report

Jun 12 2017

justus triaged T3202: add support for illumos to our version of libtool as Wishlist priority.
Jun 12 2017, 11:41 AM · Info Needed, gpgrt, Bug Report

Jun 9 2017

andy_js added a comment to T3202: add support for illumos to our version of libtool.

The version of libtool that you ship does not have the necessary patches required to support my platform. Normally this isn't a problem because autogen.sh (or autoreconf) will update it.

Jun 9 2017, 3:58 PM · Info Needed, gpgrt, Bug Report
werner added a project to T3202: add support for illumos to our version of libtool: Not A Bug.

You may not run your own version of libtool or libtoolize. Only the maintainer updates the autotools related files including libtool. This is to avoid bugs stemming from different or broken versions of autotools. This makes it much easier to reproduce bugs.

Jun 9 2017, 3:42 PM · Info Needed, gpgrt, Bug Report
andy_js created T3202: add support for illumos to our version of libtool.
Jun 9 2017, 12:10 PM · Info Needed, gpgrt, Bug Report

Jun 8 2017

gniibe abandoned D431: secmem fix.
Jun 8 2017, 6:39 AM · libgcrypt

Jun 2 2017

gniibe added a comment to D431: secmem fix.

Applied in rCe0958debe1a7: secmem: Fix SEGV and stat calculation..

Jun 2 2017, 3:40 AM · libgcrypt
gniibe added a comment to D431: secmem fix.

Here is a test case:


It doesn't dump core on my x86 GNU/Linux, but we can see invalid stats.
Running under valgrind, it dumps core.

Jun 2 2017, 3:31 AM · libgcrypt

Jun 1 2017

werner triaged T3189: secmem routines should be in libgpg-error as gpgrt_* as Normal priority.
Jun 1 2017, 9:31 PM · gpgrt, libgcrypt
gniibe created D431: secmem fix.
Jun 1 2017, 2:13 PM · libgcrypt

May 31 2017

gniibe created T3189: secmem routines should be in libgpg-error as gpgrt_*.
May 31 2017, 1:10 PM · gpgrt, libgcrypt

May 17 2017

srgblnchtrn added a watcher for libgcrypt: srgblnchtrn.
May 17 2017, 9:20 AM

May 4 2017

leanne63 closed T3127: libgcrypt-1.7.6 'random' fails test on MacOS Sierra: Incompatible library version as Resolved.
May 4 2017, 12:59 AM · libgcrypt
leanne63 added a comment to T3127: libgcrypt-1.7.6 'random' fails test on MacOS Sierra: Incompatible library version.

I had an older version of libgcrypt (1.6.5) in my /usr/local/bin. I removed that version, ran the make check again, and this time got a fail again for random: image not found. I continued the installation, and libgcrypt-1.7.6 successfully (it appears, anyway!) installed.

May 4 2017, 12:59 AM · libgcrypt

May 2 2017

leanne63 created T3127: libgcrypt-1.7.6 'random' fails test on MacOS Sierra: Incompatible library version in the S1 Public space.
May 2 2017, 11:56 PM · libgcrypt

Apr 28 2017

gniibe closed T3120: Spelling fix for libgcrypt as Resolved.

Patch applied and pushed.

Apr 28 2017, 2:42 AM · libgcrypt
gniibe created T3120: Spelling fix for libgcrypt.
Apr 28 2017, 2:35 AM · libgcrypt

Apr 11 2017

jukivili added a watcher for libgcrypt: jukivili.
Apr 11 2017, 8:00 AM
jukivili added a member for libgcrypt: jukivili.
Apr 11 2017, 8:00 AM

Apr 3 2017

gniibe added a member for libgcrypt: gniibe.
Apr 3 2017, 11:20 AM

Mar 30 2017

admin created libgcrypt.
Mar 30 2017, 6:42 PM

Mar 27 2017

LuLu added a comment to T3017: libgcrypt-1.7.6 (ARM32 Beaglebone black) make check failed.

Thanks very much! I have solved the problem.

Mar 27 2017, 6:34 AM · Bug Report, libgcrypt
LuLu closed T3017: libgcrypt-1.7.6 (ARM32 Beaglebone black) make check failed as Resolved.
Mar 27 2017, 6:34 AM · Bug Report, libgcrypt

Mar 26 2017

werner removed Due Date on T3017: libgcrypt-1.7.6 (ARM32 Beaglebone black) make check failed.
Mar 26 2017, 10:10 AM · Bug Report, libgcrypt
werner lowered the priority of T3017: libgcrypt-1.7.6 (ARM32 Beaglebone black) make check failed from Unbreak Now! to Normal.
Mar 26 2017, 10:10 AM · Bug Report, libgcrypt
werner added a comment to T3017: libgcrypt-1.7.6 (ARM32 Beaglebone black) make check failed.

Please do not post files in closed formats like Microsoft word. We will only
look at reports in a plain text format.

From your description it looks more like a build problem because Libgcrypt is
already part of Ubuntu and installing a different version is possible but you
need to get some things right. In general I would suggest to write to
gcrypt-devel@gnupg.org

Mar 26 2017, 10:10 AM · Bug Report, libgcrypt
LuLu set Due Date to Mar 31 2017, 2:00 AM on T3017: libgcrypt-1.7.6 (ARM32 Beaglebone black) make check failed.
Mar 26 2017, 8:58 AM · Bug Report, libgcrypt
LuLu added a comment to T3017: libgcrypt-1.7.6 (ARM32 Beaglebone black) make check failed.

Mar 26 2017, 8:58 AM · Bug Report, libgcrypt
LuLu added projects to T3017: libgcrypt-1.7.6 (ARM32 Beaglebone black) make check failed: libgcrypt, Bug Report.
Mar 26 2017, 8:58 AM · Bug Report, libgcrypt

Mar 1 2017

cpm added a comment to T2970: libgcrypt fails to build without NEON instruction set on arm64.

Yes, it's the same issue.

Mar 1 2017, 3:14 PM · Bug Report, libgcrypt, Won't Fix
werner added a comment to T2970: libgcrypt fails to build without NEON instruction set on arm64.

Isn't this the same as T2975 ?

Mar 1 2017, 3:04 PM · Bug Report, libgcrypt, Won't Fix

Feb 26 2017

krion added a comment to T2975: building libgcrypt fails on ARM64/FreeBSD 11x STABLE.

Yes, .cpu generic+simd+crypto that what I thought after first patch from the beginning
but didn't test it first, blame me for it. Now it compiles as expected, please include
it into next release.

Feb 26 2017, 7:42 PM · Bug Report, libgcrypt
jukivili added a comment to T2975: building libgcrypt fails on ARM64/FreeBSD 11x STABLE.

D410: 957_03-fix-clang-arm64.patch

Feb 26 2017, 6:54 PM · Bug Report, libgcrypt
jukivili added a comment to T2975: building libgcrypt fails on ARM64/FreeBSD 11x STABLE.

How about this patch?

Feb 26 2017, 6:54 PM · Bug Report, libgcrypt
krion added a comment to T2975: building libgcrypt fails on ARM64/FreeBSD 11x STABLE.

No, it still fails, here is fresh log:
http://pkg.krion.cc/data/110arm64-default/2017-02-26_16h58m38s/logs/errors/libgcrypt-
1.7.6.log

Feb 26 2017, 5:03 PM · Bug Report, libgcrypt
jukivili added a comment to T2975: building libgcrypt fails on ARM64/FreeBSD 11x STABLE.

Does the attached patch fix the problem?

Feb 26 2017, 2:21 PM · Bug Report, libgcrypt
jukivili added a comment to T2975: building libgcrypt fails on ARM64/FreeBSD 11x STABLE.

D411: 956_02-fix-clang-arm64.patch

Feb 26 2017, 2:21 PM · Bug Report, libgcrypt
jukivili claimed T2975: building libgcrypt fails on ARM64/FreeBSD 11x STABLE.
Feb 26 2017, 2:08 PM · Bug Report, libgcrypt

Feb 24 2017

krion added projects to T2975: building libgcrypt fails on ARM64/FreeBSD 11x STABLE: libgcrypt, Bug Report.
Feb 24 2017, 12:16 PM · Bug Report, libgcrypt

Feb 23 2017

cpm added a comment to T2970: libgcrypt fails to build without NEON instruction set on arm64.

Ok, thanks!

Feb 23 2017, 9:17 PM · Bug Report, libgcrypt, Won't Fix
werner added a project to T2970: libgcrypt fails to build without NEON instruction set on arm64: Won't Fix.
Feb 23 2017, 8:31 PM · Bug Report, libgcrypt, Won't Fix
werner added a comment to T2970: libgcrypt fails to build without NEON instruction set on arm64.

You need to wait for 1.8 - in a few weeks.
I looked at the required changes but decided not to backport that for 1.7.6.

Feb 23 2017, 8:31 PM · Bug Report, libgcrypt, Won't Fix

Feb 22 2017

cpm added projects to T2970: libgcrypt fails to build without NEON instruction set on arm64: libgcrypt, Bug Report.
Feb 22 2017, 1:18 AM · Bug Report, libgcrypt, Won't Fix

Feb 4 2017

jukivili closed T2292: cipher/crc-intel-pclmul.c: load of misaligned address as Resolved.
Feb 4 2017, 12:57 PM · Not A Bug, Bug Report, libgcrypt, Assembler