Re: libgcrypt 1.12.0: g_mime_multipart_encrypted_decrypt failing on i386

Stuart Henderson via Gcrypt-devel <[email protected]> Mon, 9 Feb 2026 11:14:52 +0000
Newsgroups gmane.comp.encryption.gpg.libgcrypt.devel
Message-ID <[email protected]>
On 2026/02/09 11:32, Werner Koch wrote:
> On Fri,  6 Feb 2026 14:41, Stuart Henderson said:
> > When building the "notmuch" email indexer, the configure script tests
> > that gmime can extract a session key, which it does using gcrypt.
> > Since 1.12.0 this frequently, though not always, fails on i386 (32-bit).
> 
> You mean Notmuch uses its own *PGP parser to "extract" the session key?
> 
> I recall that there was a discussion on speeding up things by storing
> decrypted session in a database and then use gpg --override-sssion-key.
> But I can't remember the details.

I didn't look into how it's used in the main program code, was just
hitting the failure where it's used in autoconf when building (I'm an os
package builder).

It does look like it's doing something along those lines in the main
code though:
https://git.notmuchmail.org/git?p=notmuch;a=blob;f=util/crypto.c;h=156a6550c20afef00a6bb5eaab94e8ba435cbfbd;hb=HEAD