Page MenuHome GnuPG
Feed All Stories

Dec 7 2020

aheinecke committed rO9f81ed6561c5: Change encryption to work on OOM (authored by aheinecke).
Change encryption to work on OOM
Dec 7 2020, 5:26 PM
aheinecke committed rO21f4b7f88801: Add helper for utf8 tmp name (authored by aheinecke).
Add helper for utf8 tmp name
Dec 7 2020, 5:26 PM
aheinecke committed rO310824f4e8eb: Add OOM SaveAs helper (authored by aheinecke).
Add OOM SaveAs helper
Dec 7 2020, 5:26 PM
Ericson2314 added a comment to D506: build: Make configure.ac for lock-obj-pub.native.h ideomatic.

Thank you! And for what it's worth, I think your version,

Dec 7 2020, 3:46 PM
ikloecker closed T5141: GnuPG: Make quick-gen-key work for keys on PIV cards as Resolved.
Dec 7 2020, 3:18 PM · gnupg (gpg23)
ikloecker closed T5141: GnuPG: Make quick-gen-key work for keys on PIV cards, a subtask of T5128: Kleopatra: Generate OpenPGP public key for NetKey card key, as Resolved.
Dec 7 2020, 3:18 PM · kleopatra
ikloecker closed T5141: GnuPG: Make quick-gen-key work for keys on PIV cards, a subtask of T5126: Kleopatra: Generate OpenPGP public key for PIV card key, as Resolved.
Dec 7 2020, 3:18 PM · kleopatra
ikloecker committed rG255d33d65126: gpg: Make quick-gen-key with algo "card" work for keys without keytime (authored by ikloecker).
gpg: Make quick-gen-key with algo "card" work for keys without keytime
Dec 7 2020, 3:16 PM
gbschenkel added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

Hi, I changed the PIN, killed the gpg-agent and scdaemon, edited the scdaemon.conf to include your instruction, after, I run the following commands:

Dec 7 2020, 3:10 PM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
glr created T5169: gpg: Clarify output.
Dec 7 2020, 1:34 PM · Bug Report
ikloecker claimed T5141: GnuPG: Make quick-gen-key work for keys on PIV cards.
Dec 7 2020, 1:25 PM · gnupg (gpg23)
werner placed T5141: GnuPG: Make quick-gen-key work for keys on PIV cards up for grabs.
Dec 7 2020, 11:45 AM · gnupg (gpg23)
werner assigned T5166: gpg --quick-gen-key userid card fails on first run resp. for unknown key to gniibe.
Dec 7 2020, 11:23 AM
ikloecker added a comment to T5166: gpg --quick-gen-key userid card fails on first run resp. for unknown key.

Maybe the line (pksign.c:328)

algo = get_pk_algo_from_key (s_skey);

should be moved to the start of the else-branch (pksign.c:484):

Dec 7 2020, 11:00 AM
ikloecker added a comment to T5166: gpg --quick-gen-key userid card fails on first run resp. for unknown key.

Maybe the line (pksign.c:328)

algo = get_pk_algo_from_key (s_skey);

should be moved to the start of the else-branch (pksign.c:484):

else
  {
    /* No smartcard, but a private key (in S_SKEY). */
Dec 7 2020, 10:50 AM
ikloecker added a comment to T5166: gpg --quick-gen-key userid card fails on first run resp. for unknown key.

The problem is that in agent_pksign_do() the algo is read from s_skey (pksign.c:328), but s_skey is NULL because agent_key_from_file() fails to find a local KEYGRIP.key file in private-keys-v1.d. The code then reads the public key from the card (or a stub file), but it fails to set algo from s_pkey. The following patch fixes this:

Dec 7 2020, 10:43 AM
aheinecke committed rO5e513aa0c108: Switch some data debugging statements to log_debug (authored by aheinecke).
Switch some data debugging statements to log_debug
Dec 7 2020, 10:31 AM
ikloecker added a comment to T5166: gpg --quick-gen-key userid card fails on first run resp. for unknown key.

I think that the semantics of gpg --quick-gen-key <KEY> card (currently) assumes keys are available on card.
IIUC, it is for some specific (very special) use case to specify same key creation time to the key on card.
I don't know well about this use case.

Anyway, because of this, (currently) the first run results undefined behavior.

It would be good if it just means "creating key(s) on card".

Dec 7 2020, 8:32 AM
gniibe added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

Thank you for the information.
In the log, the driver detects removal of card wrongly.
That's the cause of this problem.

Dec 7 2020, 5:38 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gbschenkel added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

Please show us the output of gpg --card-status, and your configuration if you have something special. Are you using Yubikey also for gpg's signing, or is it only for SSH?

Dec 7 2020, 5:12 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gniibe committed rE9ee011259f81: build: Use AC_CHECK_TOOL to detect objdump for cross build. (authored by gniibe).
build: Use AC_CHECK_TOOL to detect objdump for cross build.
Dec 7 2020, 4:59 AM
gniibe accepted D503: fix undefined-shift in block_filter.
Dec 7 2020, 4:07 AM
gniibe added a comment to D506: build: Make configure.ac for lock-obj-pub.native.h ideomatic.

Pushed in rE9ee011259f81: build: Use AC_CHECK_TOOL to detect objdump for cross build..

Dec 7 2020, 4:04 AM
gniibe accepted D506: build: Make configure.ac for lock-obj-pub.native.h ideomatic.

Thank you. I'm going to apply it, modifying a bit.

Dec 7 2020, 4:00 AM
gniibe added a comment to T5166: gpg --quick-gen-key userid card fails on first run resp. for unknown key.

I think that the semantics of gpg --quick-gen-key <KEY> card (currently) assumes keys are available on card.
IIUC, it is for some specific (very special) use case to specify same key creation time to the key on card.
I don't know well about this use case.

Dec 7 2020, 2:53 AM
gniibe claimed T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

Please show us the output of gpg --card-status, and your configuration if you have something special. Are you using Yubikey also for gpg's signing, or is it only for SSH?

Dec 7 2020, 2:44 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gniibe changed the status of T5163: Cannot import NIST-P521 key to OpenPGP v3.3 smart card from Open to Testing.

Backported.

Dec 7 2020, 2:16 AM · Restricted Project, gnupg, scd, Bug Report
gniibe committed rG5a03bf61304d: scd:openpgp: Fix writing ECC key to card. (authored by gniibe).
scd:openpgp: Fix writing ECC key to card.
Dec 7 2020, 2:15 AM
gniibe committed rG1cd615afe301: gpg,card: Allow no version information of Yubikey. (authored by gniibe).
gpg,card: Allow no version information of Yubikey.
Dec 7 2020, 2:10 AM
gniibe added a comment to T5100: OpenPGP app overwrites Yubikey serial number.

We need another patch, because there are two places for gpg --card-edit and gpg-card to check OpenPGPcard's version number if it's >= 2 or not.

Dec 7 2020, 2:01 AM · Restricted Project, gnupg, scd, yubikey, kleopatra

Dec 6 2020

rkolvick added a comment to T5168: New computer, can't decrypt.

Thank you very much

Dec 6 2020, 11:49 PM · Support, gpg4win
werner added projects to T5167: GnuPG 2.25 still have problems related to Yubikey NEO.: scd, ssh, yubikey, gnupg (gpg22).

There is no caching for smardcard PINs. Once a key (or group of keys) on a hard has been used (i.e. PIN entered). that key can be used as long as the card has not been reset or powered-down. No rule without exception: Some cards may require that a PIN entry is required for each crypto operation. For example the OpenPGP card (which is implemented on a Yubikey) does this for the signing key but not for the authentication (ssh) key. To disable this for the signing key you use the "forcesig" command of gpg --card-edit.

Dec 6 2020, 5:00 PM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
werner closed T5168: New computer, can't decrypt as Resolved.

Select your key in the certificate view, click right, select "Backup Secret keys ...", store to a file. Then copy that file in a secure why (USB stick etc) to the new box, import it there.

Dec 6 2020, 4:50 PM · Support, gpg4win
rkolvick created T5168: New computer, can't decrypt.
Dec 6 2020, 9:17 AM · Support, gpg4win
gbschenkel updated the task description for T5167: GnuPG 2.25 still have problems related to Yubikey NEO..
Dec 6 2020, 3:50 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gbschenkel created T5167: GnuPG 2.25 still have problems related to Yubikey NEO..
Dec 6 2020, 3:34 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report

Dec 4 2020

ikloecker committed rLIBKLEO97526165da68: Merge branch 'work/static-analysis' into 'master' (authored by ikloecker).
Merge branch 'work/static-analysis' into 'master'
Dec 4 2020, 10:51 PM
ikloecker committed rLIBKLEO553098647741: Run linux build job also on manually triggered pipeline (authored by ikloecker).
Run linux build job also on manually triggered pipeline
Dec 4 2020, 10:49 PM
patrick added a comment to T5157: libgcrypt: ARM64 Builds on macOS fail.

OK, then we'll have to live with --disable-asm until the next major version is released, or switch to gcc.

Dec 4 2020, 9:20 PM · toolchain, MacOS, libgcrypt, Bug Report
aheinecke committed rW7976719b3618: msi: Allo dashes in custom names (authored by aheinecke).
msi: Allo dashes in custom names
Dec 4 2020, 2:57 PM
Valodim added a comment to T4163: hkps://hkps.pool.sks-keyservers.net has to many bad servers to be a good default.

Perhaps of interest for this issue: the HKPS pool has consisted of only a single server for a couple of months now.

Dec 4 2020, 1:07 PM · gnupg, Keyserver
ikloecker added a parent task for T5166: gpg --quick-gen-key userid card fails on first run resp. for unknown key: T5125: Kleopatra: Generate OpenPGP public key for OpenPGP card key.
Dec 4 2020, 12:39 PM
ikloecker added a subtask for T5125: Kleopatra: Generate OpenPGP public key for OpenPGP card key: T5166: gpg --quick-gen-key userid card fails on first run resp. for unknown key.
Dec 4 2020, 12:39 PM · kleopatra
ikloecker created T5166: gpg --quick-gen-key userid card fails on first run resp. for unknown key.
Dec 4 2020, 12:39 PM
werner added a comment to T4788: System wide configuration of the GnuPG system.

And I also did a backport to 2.2 :-) See rGa028f24136a062f55408a5fec84c6d31201b2143

Dec 4 2020, 12:21 PM · gnupg (gpg23), Feature Request, gpg4win, g10code
werner committed rGa028f24136a0: Backport of the new option parser from 2.3 (authored by werner).
Backport of the new option parser from 2.3
Dec 4 2020, 12:18 PM
werner added a comment to T5157: libgcrypt: ARM64 Builds on macOS fail.

We should not do this.

Dec 4 2020, 12:17 PM · toolchain, MacOS, libgcrypt, Bug Report
ikloecker closed T5130: Kleopatra: Generating OpenPGP keys on Yubikey (with PIV enabled) fails with "General error" as Resolved.

Re-opening. Now trying to generate new keys fails with a "Wrong card" error.

Dec 4 2020, 10:40 AM · kleopatra, Bug Report
ikloecker committed rLIBKLEOdc837292248b: Merge branch 'work/static-analysis' into 'master' (authored by ikloecker).
Merge branch 'work/static-analysis' into 'master'
Dec 4 2020, 10:25 AM
ikloecker committed rLIBKLEOb770d27c6e1d: Enable static analysis jobs on Gitlab CI (authored by ikloecker).
Enable static analysis jobs on Gitlab CI
Dec 4 2020, 10:25 AM
gniibe added a comment to T2291: Smartcard interaction improvement (was: Shadowed private key design (for smartcard)).

if I am running master, it is now possible to have a setup where the same encryption key is shared by and usable from multiple smart cards?

Dec 4 2020, 8:30 AM · Restricted Project, Feature Request, gnupg
ikloecker committed rLIBKLEOcdd5273572f0: Merge branch 'work/static-analysis' into 'master' (authored by ikloecker).
Merge branch 'work/static-analysis' into 'master'
Dec 4 2020, 7:57 AM
lopter added a comment to T2291: Smartcard interaction improvement (was: Shadowed private key design (for smartcard)).

Thank you for all the work! Does it mean that, if I am running master, it is now possible to have a setup where the same encryption key is shared by and usable from multiple smart cards?

Dec 4 2020, 7:55 AM · Restricted Project, Feature Request, gnupg
Laurent Montel <montel@kde.org> committed rKLEOPATRAece361bd62e6: Remove unused includes (authored by Laurent Montel <montel@kde.org>).
Remove unused includes
Dec 4 2020, 7:50 AM
Laurent Montel <montel@kde.org> committed rLIBKLEO372edd4e2210: Remove unused include (authored by Laurent Montel <montel@kde.org>).
Remove unused include
Dec 4 2020, 7:36 AM

Dec 3 2020

jukivili committed rC2065720b5b06: tests/basic: check 32-bit and 64-bit overflow for CTR and ChaCha20 (authored by jukivili).
tests/basic: check 32-bit and 64-bit overflow for CTR and ChaCha20
Dec 3 2020, 8:04 PM
jukivili committed rC1a83df98b198: Prevent link-time optimization from inlining __gcry_burn_stack (authored by jukivili).
Prevent link-time optimization from inlining __gcry_burn_stack
Dec 3 2020, 8:04 PM
jukivili committed rCed45eac3b721: chacha20-ppc: fix 32-bit counter overflow handling (authored by jukivili).
chacha20-ppc: fix 32-bit counter overflow handling
Dec 3 2020, 8:04 PM
jukivili added a comment to T5157: libgcrypt: ARM64 Builds on macOS fail.

AArch64 clang support was added to 'master' on 2018-03-28. One would need to backport commits 8ee38806245ca8452051b1a245f44082323f37f6...9b58e4a03ba3aeff7bae3f40da706977870c9649 to 1.8 branch.

Dec 3 2020, 7:39 PM · toolchain, MacOS, libgcrypt, Bug Report
ikloecker committed rKLEOPATRA4307edd79033: Add helper for serialization of parameters for key generation (authored by ikloecker).
Add helper for serialization of parameters for key generation
Dec 3 2020, 5:59 PM
ikloecker committed rKLEOPATRA99dc007770c5: Add widget/dialog for entering certificate details (authored by ikloecker).
Add widget/dialog for entering certificate details
Dec 3 2020, 5:59 PM
patrick added a comment to T5157: libgcrypt: ARM64 Builds on macOS fail.

ARM64 has been only tested on platforms which support ELF.

While it doesn't looks good (using AMD64 even if it's ARM64), I think this patch should be applied:

diff --git a/cipher/asm-common-aarch64.h b/cipher/asm-common-aarch64.h
...
Dec 3 2020, 5:48 PM · toolchain, MacOS, libgcrypt, Bug Report
aheinecke committed rOe3b0e1159788: Fix multipart/encrypted and signed preview (authored by aheinecke).
Fix multipart/encrypted and signed preview
Dec 3 2020, 4:33 PM
aheinecke committed rO7b10d01d90fc: Add mssing initializer (authored by aheinecke).
Add mssing initializer
Dec 3 2020, 4:33 PM
aheinecke added a comment to D512: Adds Microsoft Edge (Chromium) browser support.

For the record, Thomas from mailvelope confirmed by signed mail that this is the correct id.

Dec 3 2020, 8:47 AM
gniibe triaged T5161: scd: For NetKey cards KEYINFO with keygrip fails as Normal priority.
Dec 3 2020, 8:26 AM · Restricted Project, scd
gniibe claimed T5161: scd: For NetKey cards KEYINFO with keygrip fails.

I think that T5150 was also not fixed completely.

Dec 3 2020, 8:26 AM · Restricted Project, scd
gniibe committed rG87d2c579cc38: scd:nks: Fix caching keygrip (more). (authored by gniibe).
scd:nks: Fix caching keygrip (more).
Dec 3 2020, 8:25 AM
gniibe added a comment to T5161: scd: For NetKey cards KEYINFO with keygrip fails.

I found a bug which resulted "Not Found <SCD>" when "SCD KEYINFO" is used with "--data" or "--".
It is fixed in rG54b88ae46062: scd: Fix KEYINFO command with --data option..

Dec 3 2020, 7:44 AM · Restricted Project, scd
gniibe committed rG54b88ae46062: scd: Fix KEYINFO command with --data option. (authored by gniibe).
scd: Fix KEYINFO command with --data option.
Dec 3 2020, 7:32 AM
gniibe edited projects for T5163: Cannot import NIST-P521 key to OpenPGP v3.3 smart card, added: gnupg, backport; removed gnupg (gpg22).

Fixed in master. I will backport to 2.2.

Dec 3 2020, 7:08 AM · Restricted Project, gnupg, scd, Bug Report
gniibe committed rGa25c99b156ca: scd:openpgp: Fix writing ECC key to card. (authored by gniibe).
scd:openpgp: Fix writing ECC key to card.
Dec 3 2020, 7:07 AM
gniibe added a comment to T5163: Cannot import NIST-P521 key to OpenPGP v3.3 smart card.

I was wrong. Patch is being updated...

Dec 3 2020, 6:33 AM · Restricted Project, gnupg, scd, Bug Report
gniibe committed rM7a4fe82a017b: python: Fix key_export*. (authored by gniibe).
python: Fix key_export*.
Dec 3 2020, 4:30 AM
gniibe committed rC16e855d49ca2: tests: Put a work around to tests/random for macOS. (authored by gniibe).
tests: Put a work around to tests/random for macOS.
Dec 3 2020, 3:54 AM
gniibe committed rC9769b40b54cf: tests: Put a work around to tests/random for macOS. (authored by gniibe).
tests: Put a work around to tests/random for macOS.
Dec 3 2020, 3:54 AM
gniibe claimed T5149: Incorrect error handling in export_key_minimal().

Thanks. Fixed in rM7a4fe82a017b: python: Fix key_export*..

Dec 3 2020, 3:40 AM · Python, gpgme, Bug Report
gniibe triaged T5159: make check fails for libgcrypt on Apple Silicon / ARM Mac as Normal priority.
Dec 3 2020, 3:11 AM · Restricted Project, MacOS, libgcrypt, Bug Report
gniibe changed the status of T5159: make check fails for libgcrypt on Apple Silicon / ARM Mac from Open to Testing.
Dec 3 2020, 3:11 AM · Restricted Project, MacOS, libgcrypt, Bug Report
gniibe added a project to T5159: make check fails for libgcrypt on Apple Silicon / ARM Mac: Restricted Project.

So, I'm going to push D513 to both of 1.8 and master (to be 1.9).

Dec 3 2020, 1:07 AM · Restricted Project, MacOS, libgcrypt, Bug Report

Dec 2 2020

Christoph Feck <cfeck@kde.org> committed rKLEOPATRA63f35e68e2ff: GIT_SILENT Update Appstream for new release (authored by Christoph Feck <cfeck@kde.org>).
GIT_SILENT Update Appstream for new release
Dec 2 2020, 11:33 PM
Christoph Feck <cfeck@kde.org> committed rKLEOPATRA0a7a2f08b95a: GIT_SILENT Update Appstream for new release (authored by Christoph Feck <cfeck@kde.org>).
GIT_SILENT Update Appstream for new release
Dec 2 2020, 11:33 PM
natarajmb added a comment to T5165: GpgOL plugin attachments showup intermittently .

It worked again, attaching the screenshot. Unfortunately had disabled the logging and hence no log info.

Dec 2 2020, 6:30 PM · gpgol, Bug Report, gpg4win
natarajmb created T5165: GpgOL plugin attachments showup intermittently .
Dec 2 2020, 6:17 PM · gpgol, Bug Report, gpg4win
aheinecke closed T4638: GpgOL: Permanently decrypt not available on Outlook 2010 as Resolved.

No plans to work on this.

Dec 2 2020, 2:13 PM · gpgol
aheinecke closed T4657: GpgOL: Add tooltips to resolver as Resolved.

Long since resolved.

Dec 2 2020, 2:11 PM · gpg4win, gpgol
aheinecke added a comment to T2227: Sign GpgOL to support group deployments.

For linking the MSI installer we already need a windows host and a windows sign host. The binaries inside that package we also sign usign the signhost / signkey which can be included in an optional / custom sign.mk during the build process. By default the path to the included sign.mk is gnupg-vsd/sign.mk in the src repo. But that can be changed of course.

Dec 2 2020, 2:10 PM · gpgol, Feature Request
aheinecke reopened T4118: GpgOL: Mitigate S/MIME Denial of Service due to CRL stalling as "Open".

Ah no, this is about the sending part, where we only encrypt to online validated keys, that is not mitigated at all. Disregard my last comment.

Dec 2 2020, 2:04 PM · gpg4win, gpgol
aheinecke closed T4118: GpgOL: Mitigate S/MIME Denial of Service due to CRL stalling as Resolved.

This is resolved with the preview feature in GpgOL-2.4.6 Gpg4win-3.1.12

Dec 2 2020, 2:03 PM · gpg4win, gpgol
aheinecke committed rOa21ec18d498c: Fix preview for multipart/signed pgp mails (authored by aheinecke).
Fix preview for multipart/signed pgp mails
Dec 2 2020, 1:18 PM
aheinecke accepted D512: Adds Microsoft Edge (Chromium) browser support.

Oh! Very Nice! Thanks for this. I've commited it with adding the uninstall parts.

Dec 2 2020, 11:45 AM
aheinecke committed rWcd260e73e667: Add edge support for gpgme-browser (authored by aheinecke).
Add edge support for gpgme-browser
Dec 2 2020, 11:41 AM
aheinecke added a project to T5164: GpgOL: Check that verify errors still show a decrypted message on decrypt & verify: Info Needed.

I could find no issue with the error handling for verify errors.

Dec 2 2020, 11:36 AM · Info Needed, gpgol
aheinecke committed rO42f9575b0711: po: Auto update po files (authored by aheinecke).
po: Auto update po files
Dec 2 2020, 11:22 AM
aheinecke committed rO3eb84bf2e48c: Actually add it.po file to git (authored by aheinecke).
Actually add it.po file to git
Dec 2 2020, 11:22 AM
aheinecke committed rO308d56db09f0: Add human readable debug output for "NO DATA" (authored by aheinecke).
Add human readable debug output for "NO DATA"
Dec 2 2020, 11:16 AM
aheinecke committed rO2064f270fb03: Rename string_printf to asprintf_s (authored by aheinecke).
Rename string_printf to asprintf_s
Dec 2 2020, 11:16 AM
aheinecke committed rO52bb0a550317: Add new S_ i18n macro for std::string (authored by aheinecke).
Add new S_ i18n macro for std::string
Dec 2 2020, 11:16 AM
werner committed rG63ed2054a1f3: kbx: Better error message in case of a crippled Libgcrypt. (authored by werner).
kbx: Better error message in case of a crippled Libgcrypt.
Dec 2 2020, 11:15 AM
werner committed rGacafa695e1e7: kbx: Better error message in case of a crippled Libgcrypt. (authored by werner).
kbx: Better error message in case of a crippled Libgcrypt.
Dec 2 2020, 11:14 AM