Page MenuHome GnuPG
Feed Advanced Search

Feb 6 2018

werner closed T3780: Integer overflow causes heap overflow in parse_symkeyenc() in file g10/parse-packet.c as Resolved.

Thanks for testing. I recall that I wanted to update the checking but a phonecall disturbed my hacking sequence; should have used DND.

Feb 6 2018, 5:47 PM · g10, Bug Report
werner added a comment to T2905: EFL-based pinentry.

Okay. Thanks for the report. I once looked at Coverty but decided not to use it because of their rules which would not allow me to document and fix a possible security vulnerability without following their process. If there is a security problem I will fix it according to my schedule and not allow anyone to delay it.

Feb 6 2018, 11:40 AM · pinentry, Feature Request

Feb 3 2018

werner triaged T3770: heap buffer overflow in iobuf.c as Unbreak Now! priority.
Feb 3 2018, 1:30 AM · g10, Bug Report

Feb 2 2018

werner added a comment to T3768: Decryption of RSA public key encrypted session key packet fails when encrypted session key packet length is not equal to RSA key modulus size.

What kind of hardware token?

Feb 2 2018, 2:38 PM · gnupg (gpg14)

Feb 1 2018

werner committed rG303310d05e70: gpg: Rename a misnomed arg in open_outfile. (authored by werner).
gpg: Rename a misnomed arg in open_outfile.
Feb 1 2018, 12:28 PM
werner committed rG26c900a8f09d: Add a new OpenPGP card vendor. (authored by werner).
Add a new OpenPGP card vendor.
Feb 1 2018, 12:28 PM
werner committed rGf98e193c8425: gpg: Update list of card vendors from master (authored by werner).
gpg: Update list of card vendors from master
Feb 1 2018, 12:28 PM
werner added a comment to T3766: GnuPG should reject keys that are subkeys of itself.

You have a token with one spare key which you want to use for encryption and certification. And being able to replace the encryption subkey eventually.

Feb 1 2018, 9:28 AM · gnupg (gpg22), Feature Request
werner triaged T3767: simplify sharing dirmngr's across multiple GNUPGHOMEs as High priority.

Originally dirmngr was designed to be a system service for the reason that CRLs are not user specific. However, the majority of systems today are used by a single user and thus we dropped that feature when integrating dirmngr into gnupg.

Feb 1 2018, 9:26 AM · Documentation, Feature Request, gnupg, dirmngr

Jan 31 2018

werner triaged T3751: man page syntax mentions token "[args]" but then does not define it as Low priority.

Come on, it is in daily use for 15 years. MUA which can't handle MIME at all but PGP are still able to decrypt PGP/MIME. That is why ME specified PGP/MIME this way.

Jan 31 2018, 7:26 PM · Documentation, Bug Report
werner added a comment to T3348: gpgsm: should default to --disable-crl-checks.

--use-tor does not avoid it because the CRL-DP can be made unique for each certificate. Depending on the verification model a CRL or OCSP lookup is necessary for correct evalution of a signature (shell model as used for qualified signature). This is why we in gpg honor-keyserver-url is not enabled by default; the keyserver URL take from the key is the OpenPGP counterpart of the CRL-DP.

Jan 31 2018, 6:11 PM · gpgme, gnupg, S/MIME
werner triaged T3766: GnuPG should reject keys that are subkeys of itself as Normal priority.

I can't see why this should be out-of-spec. In fact I did this my self several times to create keys from other keys.

Jan 31 2018, 6:03 PM · gnupg (gpg22), Feature Request
werner added a comment to T3348: gpgsm: should default to --disable-crl-checks.

The implemented X.509 profiles require that the status of a certificate is to be checked. CRLs are also not looked up for each verification but only once during their lifetime. Some CA have unreasonable short lifetimes for their CRL but it is the decision of the user to use such a certificate.

Jan 31 2018, 9:47 AM · gpgme, gnupg, S/MIME
werner closed T3765: Remove my account as Resolved.

I disabled your account but the I won't delete any comments of yours. They are considered to be in the public domain (see welcome page) and are parts of other bug reports. Thanks for those comments.

Jan 31 2018, 9:38 AM · dev.gnupg.org

Jan 29 2018

werner triaged T3763: ECDH - encryption with obfuscated size of the symmetric key as Low priority.
Jan 29 2018, 11:03 PM · OpenPGP, gnupg (gpg23)

Jan 27 2018

werner committed rGf8e868d9dfb6: dirmngr: Improve assuan error comment for cmd keyserver. (authored by werner).
dirmngr: Improve assuan error comment for cmd keyserver.
Jan 27 2018, 7:55 PM
werner added a comment to T2986: Can not access keyserver without the standard-resolver option.

dirmngr looks into /.etc/resolv.conf and does not know anything about systemd specific things (nor do I). Thus having a symlink seems to be an appropriate solution.

Jan 27 2018, 5:29 PM · Bug Report, gnupg

Jan 26 2018

werner committed rD5227081f8bc0: verein: URL fix (authored by werner).
verein: URL fix
Jan 26 2018, 3:40 PM
werner committed rDe88b83be6c38: verein: Link to the German translation of the annual accounst 2017 (authored by werner).
verein: Link to the German translation of the annual accounst 2017
Jan 26 2018, 3:21 PM
werner committed rD25761b4696f6: verein: Add links to the annual accounts 2017 (authored by werner).
verein: Add links to the annual accounts 2017
Jan 26 2018, 1:08 PM

Jan 25 2018

werner committed rG149369a92b44: Merge branch 'STABLE-BRANCH-2-2' into master (authored by werner).
Merge branch 'STABLE-BRANCH-2-2' into master
Jan 25 2018, 5:05 PM
werner committed rG91a3d15cee32: doc: Note --quick-gen-key as an alias for --quick-generate-key (authored by werner).
doc: Note --quick-gen-key as an alias for --quick-generate-key
Jan 25 2018, 3:21 PM

Jan 24 2018

werner closed T3717: I am tired of errors like Connection Closed in DNS, Server Indicated a Failure, No Keyserver Available, and Not Enabled when trying to do something with a keyserver as Invalid.

I close this bug - if you can provide the log files please feel free to reopen.

Jan 24 2018, 7:30 PM · Info Needed, Bug Report
werner raised the priority of T2905: EFL-based pinentry from Normal to High.

Thanks for the long explanation. I think it should go into pinentry proper. I will have a closer look on it.

Jan 24 2018, 7:27 PM · pinentry, Feature Request
werner closed T3758: Configuring with --disable-optimization doesn't disable optimizations as Wontfix.

That might be the case. I suggest to use

Jan 24 2018, 7:20 PM · Bug Report, gnupg (gpg22)
werner added a comment to T3759: Compile test fails, Libassuan v2.5.1 - Ubuntu 14.04 - fdpassing[7693]: assuan_pipe_connect failed: End of file.

Are you sure that you are runtime linking to the same libgpg-error version you used for the build?

Jan 24 2018, 7:03 PM · Info Needed, libassuan, Bug Report
werner added a comment to T3754: Problem importing DSA/1024 key signed with SHA256.

This would then be a 1024 bit DSA key according to the DSA-2 specification. Back when DSA was introduced to PGP the specs did not specify a truncation. Maybe because there were no hash algorithms larger than 160 bits at that time.

Jan 24 2018, 6:51 PM · Bug Report
werner committed rGdb7661b5a297: gpg: New maintainer option --debug-set-iobuf-size. (authored by werner).
gpg: New maintainer option --debug-set-iobuf-size.
Jan 24 2018, 6:45 PM
werner committed rGbfc118164445: iobuf: Increase the size of the buffer. Add iobuf_set_buffer_size. (authored by werner).
iobuf: Increase the size of the buffer. Add iobuf_set_buffer_size.
Jan 24 2018, 6:45 PM
werner committed rGff1bdc23d9f1: gpg: Fix AEAD encryption for chunk sizes other than 64 KiB. (authored by werner).
gpg: Fix AEAD encryption for chunk sizes other than 64 KiB.
Jan 24 2018, 1:59 PM
werner committed rG83a15fa88e91: gpg: Rename a variable in decrypt-data for clarity. (authored by werner).
gpg: Rename a variable in decrypt-data for clarity.
Jan 24 2018, 1:59 PM
werner committed rGf3ef8b0dcaed: gpg: New option --chunk-size. (authored by werner).
gpg: New option --chunk-size.
Jan 24 2018, 1:59 PM
werner triaged T3755: TLS hostname verification using hostname from DNS instead of supplied hostname as High priority.
Jan 24 2018, 8:47 AM · gnupg (gpg22), dns, dirmngr
werner added a comment to T3754: Problem importing DSA/1024 key signed with SHA256.

If you look at the specs of DSA you will see that using SHA-256 truncated to 160 bits is not defined. DSA 1024 uses a 160 bit subgroup and thus SHA-256 would need to be truncated to 160 bits. If you want to look closer at that key the command

Jan 24 2018, 8:45 AM · Bug Report

Jan 23 2018

werner committed rG112e02ee89b7: gpg: Copy the AEAD prefs to the user ID struct. (authored by werner).
gpg: Copy the AEAD prefs to the user ID struct.
Jan 23 2018, 12:58 PM
werner committed rG278d87465685: gpg: Clear the symmetric passphrase cache for encrypted session keys. (authored by werner).
gpg: Clear the symmetric passphrase cache for encrypted session keys.
Jan 23 2018, 12:58 PM
werner committed rG9aab9167bca3: gpg: Implement AEAD for SKESK packets. (authored by werner).
gpg: Implement AEAD for SKESK packets.
Jan 23 2018, 12:58 PM
werner committed rGda3015e3c050: gpg: Unify AEAD parameter retrieval. (authored by werner).
gpg: Unify AEAD parameter retrieval.
Jan 23 2018, 12:58 PM
werner awarded rCe8629e535bd0: Add EAX mode a Cup of Joe token.
Jan 23 2018, 9:22 AM

Jan 22 2018

werner committed rG0131d4369a81: gpg: Refactor function encrypt_seskey. (authored by werner).
gpg: Refactor function encrypt_seskey.
Jan 22 2018, 3:58 PM
werner added projects to T3752: gpg --card-status does NOT to create secret key stubs : gnupg (gpg22), scd.
Jan 22 2018, 10:44 AM · scd, gnupg (gpg22), Bug Report
werner triaged T3753: Bad self-signatures and missing subkey usage flags when creating ECDSA/Ed25519 keys in batch mode as Normal priority.

You can't use the curve Ed25519 with ECDSA; you need to use EdDSA, The error checking when using the parameter file does not catch all errors. It should do this of course.

Jan 22 2018, 10:38 AM · gnupg24, Bug Report

Jan 21 2018

werner committed rG7356d6ec50ea: gpg: Support EAX if for latest Libgcrypt. (authored by werner).
gpg: Support EAX if for latest Libgcrypt.
Jan 21 2018, 5:05 PM
werner committed rG3f4ca85cb0cf: gpg: First take on PKT_ENCRYPTED_AEAD. (authored by werner).
gpg: First take on PKT_ENCRYPTED_AEAD.
Jan 21 2018, 4:41 PM

Jan 19 2018

werner added a comment to T3751: man page syntax mentions token "[args]" but then does not define it.

Sorry, I don't understand your request. I might missing some context related to the neomutt bug, though. What I can see tehre is that gpg options are used after the option/command to arg delimtyer "--" . That is of course wrong. It might be that mutt uses a special syntax here but I can't remeber that because it is 15 years since I implemented the new crypto layer in mutt. And you should really prefer to use the use_gpgme than the >20 year direct call of gpg.

Jan 19 2018, 4:55 PM · Documentation, Bug Report
werner closed T3750: Technological unemployment is (almost) here; as Spite.

@aa: this is not a platform to share arbitrary data or fun stuff. Please use some other service for this.

Jan 19 2018, 11:43 AM
werner committed rDf8a54305c4e3: web: Add La Boussole as first privacy training entity. (authored by werner).
web: Add La Boussole as first privacy training entity.
Jan 19 2018, 9:28 AM
werner reopened T2905: EFL-based pinentry as "Open".

Oh yes, I should re-open this because we should keep on tracking the status - either for an included EFL version or an external version.

Jan 19 2018, 8:54 AM · pinentry, Feature Request
werner updated subscribers of T2905: EFL-based pinentry.

I have not followed this bug for the last 6 months and meanwhile @justus and @neal moved on to the pEp company and are not any longer available to work on this. Although, I made the last pinentry release I do no closely follow the development. What I noticed is that we still don't have an EFL based pinentry despite that I explained them several times that I would like to see EFL in pinentry proper. I can't remember what the Mike Blumenkrantz version is or that there have been two pending versions at all. The thread is pretty long and I have note read it in its full length.

Jan 19 2018, 8:53 AM · pinentry, Feature Request
werner closed T3728: error: sign+encrypt failed: unusable public key as Invalid.
Jan 19 2018, 8:29 AM · Support

Jan 18 2018

werner triaged T3748: GPA is stuck if keyring is too big and trust-model is tofu+pgp as High priority.

One of these TOFU bugs. Thanks for the good bug report.

Jan 18 2018, 7:43 PM · TOFU, gnupg (gpg22), gpa
werner added a comment to T3714: Failing to decrypt due to missing MDC.

There can't be an MDC warning if MDC is not used ;-)

Jan 18 2018, 7:37 PM · FAQ, kleopatra
werner committed rGe1e35db510c9: gpg: Fix the use of future-default with --quick-add-key. (authored by werner).
gpg: Fix the use of future-default with --quick-add-key.
Jan 18 2018, 2:22 PM
werner closed T3747: Erroneous algo picked when using quick-add-key and future-default as Resolved.

Well, that was a bit tricky to fix but it has been done and will go into 2.2.5.

Jan 18 2018, 1:46 PM · gnupg (gpg22), Bug Report

Jan 17 2018

werner added a comment to T3745: Text "Trusted Sender Address" misleading/incomplete.

Depends: Not everything you see has been protected by the signature. Thus such a description would need to go into more detail.

Jan 17 2018, 8:06 PM · gpgol
werner added a comment to T3739: pinentry: manual type enforcement degrades security of passwords and emails.

BTW, using a long passphrase for public key encryption is in almost all cases useless. The passphrase is there to protect the private key, the passphrase is never sent to another site and will only be seen by gpg-agent, pinentry and the tty I/O software of the OS.

Jan 17 2018, 9:37 AM · pinentry, Bug Report, gpg4win
werner added a comment to T3739: pinentry: manual type enforcement degrades security of passwords and emails.

FWIW, Running gpg from the commandline with option -v shows the pinentry flavor.

Jan 17 2018, 9:21 AM · pinentry, Bug Report, gpg4win
werner added a comment to T3741: dirmngr, GnuPG: WKD lookup unexpectedly slow.

I can't replicate it here. With my key it takes
real 0m0.346s
user 0m0.080s
sys 0m0.004s
and for your key it takes a few 10ms longer (more hops). Is one of your DNS responder failing? Can you please run dirmngr with --debug dns ?

Jan 17 2018, 9:19 AM · dirmngr, gnupg

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
werner reopened T1967: GnuPG should select a key for signing without trying to use missing subkeys as "Open".
Jan 15 2018, 8:28 AM · gnupg (gpg22), Feature Request

Jan 13 2018

werner reopened T3354: gpgme only builds against two versions of python at once as "Open".
Jan 13 2018, 5:01 PM · Python, gpgme, Bug Report
werner raised the priority of T3354: gpgme only builds against two versions of python at once from Wishlist to Normal.

The actual problem is that justus quit his job to work for pEp. Thus we have no maintainer for the python port. There is one candidate for this job but don't expect any fast fixes because one of the near term goals will be to replace swig so that we can provide the bindings also for WIndows. Maybe that will also solve the problem with different Python versions.

Jan 13 2018, 5:01 PM · Python, gpgme, Bug Report

Jan 12 2018

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
werner edited the content of Wiki Home.
Jan 12 2018, 3:03 PM
werner edited the content of Wiki Home.
Jan 12 2018, 3:03 PM
werner edited the content of Wiki Home.
Jan 12 2018, 3:03 PM
werner edited the content of Wiki Home.
Jan 12 2018, 3:02 PM
werner edited the content of Wiki Home.
Jan 12 2018, 3:01 PM
werner edited the content of Wiki Home.
Jan 12 2018, 3:01 PM
werner edited the content of Wiki Home.
Jan 12 2018, 3:00 PM
werner edited the content of Wiki Home.
Jan 12 2018, 3:00 PM
werner edited the content of Wiki Home.
Jan 12 2018, 2:59 PM
werner changed the Can Use Application policy for application Phriction from Public (No Login Required) to Administrators.
Jan 12 2018, 2:58 PM
werner edited the content of Wiki Home.
Jan 12 2018, 2:56 PM
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
werner added a comment to T3728: error: sign+encrypt failed: unusable public key.

Let me comment this

Jan 12 2018, 11:49 AM · Support
werner added a comment to T3576: Open PGP SmartCard V2.1 - decryption error: ERR 100663364 Missing item in object <SCD>.

Oh dear what an evening and morning. I reversed the facts I reported. Sure 2.1 is borken - that is the whole point. ( I realized that only after install 2.2.4 and generating fresh keys). To avoid confusion I will delete my last comments.

Jan 12 2018, 9:59 AM · Info Needed, scd, Bug Report
werner added a comment to T3576: Open PGP SmartCard V2.1 - decryption error: ERR 100663364 Missing item in object <SCD>.
Jan 12 2018, 9:14 AM · Info Needed, scd, Bug Report
werner added a comment to T3576: Open PGP SmartCard V2.1 - decryption error: ERR 100663364 Missing item in object <SCD>.
Jan 12 2018, 9:04 AM · Info Needed, scd, Bug Report

Jan 11 2018

werner added a project to T3728: error: sign+encrypt failed: unusable public key: Support.
Jan 11 2018, 3:31 PM · Support
werner edited Description on Support.
Jan 11 2018, 3:30 PM
werner updated the image for Support from F252123: profile to F252125: profile.
Jan 11 2018, 3:29 PM
werner updated the image for Support from F252122: profile to F252123: profile.
Jan 11 2018, 3:28 PM
werner updated the image for Support from F20825: fa-envelope-pink.png to F252122: profile.
Jan 11 2018, 3:25 PM
werner removed a project from T3728: error: sign+encrypt failed: unusable public key: Bug Report.

I can't tell you from your input what is wrong with your key. Please run

Jan 11 2018, 2:32 PM · Support
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
werner triaged T3730: Add support to HTTP Basic Auth for Keyservers as Normal priority.

Thanks for the patch. The "fixme" indicates that I probably was just too lazy to add and test support.

Jan 11 2018, 12:29 PM · gnupg24, Feature Request
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
werner added a comment to T3730: Add support to HTTP Basic Auth for Keyservers.

Why do you need this for a keyserver? Keys are public and in-house keyservers should be at a local address and there need to be strict provisions not to upload to a public keyserver. Maybe LDAP or the kDNS thing (which is currently disabled) would be better for such use cases.

Jan 11 2018, 9:16 AM · gnupg24, Feature Request

Jan 10 2018

werner added a comment to T3576: Open PGP SmartCard V2.1 - decryption error: ERR 100663364 Missing item in object <SCD>.

Can you exactly explain how you tested this?

Jan 10 2018, 10:26 PM · Info Needed, scd, Bug Report
werner committed rG81d71818d054: gpg: Add stub function for encrypting AEAD. (authored by werner).
gpg: Add stub function for encrypting AEAD.
Jan 10 2018, 5:41 PM
werner committed rG8217cd49364b: gpg: Add option and preference framework for AEAD. (authored by werner).
gpg: Add option and preference framework for AEAD.
Jan 10 2018, 5:41 PM
werner committed rG4e2ba546cdcc: gpg: New option --force-aead (authored by werner).
gpg: New option --force-aead
Jan 10 2018, 5:41 PM
werner raised the priority of T3374: gpg recv-keys fail if first dns server end up with "Connection refused" from Normal to High.
Jan 10 2018, 4:11 PM · dns, dirmngr, Bug Report
werner added a project to T3717: I am tired of errors like Connection Closed in DNS, Server Indicated a Failure, No Keyserver Available, and Not Enabled when trying to do something with a keyserver: Info Needed.
Jan 10 2018, 12:08 PM · Info Needed, Bug Report
werner closed T3720: Crashes on Windows if homedir is a windows drive letter as Wontfix.

gnupg 2.0 reached EOL - there won't be any fixes.

Jan 10 2018, 9:15 AM · gnupg (gpg22), Windows

Jan 9 2018

werner added a comment to T3720: Crashes on Windows if homedir is a windows drive letter.

Do you mean that GnuPG installed to c:/gnupg/bin/ crashed if that mentioned --homedir is given but it does work if it is installed at the standard place? Please run "gpgconf --version" in both ways.

Jan 9 2018, 7:06 PM · gnupg (gpg22), Windows
werner added a comment to T3576: Open PGP SmartCard V2.1 - decryption error: ERR 100663364 Missing item in object <SCD>.

FWIW, I ran the same test with three card versions:

Jan 9 2018, 10:20 AM · Info Needed, scd, Bug Report