[PATCH gnupg] sm: Fix a wrong key parameter in an exported private key file

Werner Koch wk at gnupg.org
Wed Feb 14 14:56:47 CET 2018

On Wed,  7 Feb 2018 10:46, uenobk at gmail.com said:
> * sm/export.c (sexp_to_kparms): Fix the computation of array[6],
> which must be 'd mod (q-1)' but was 'p mod (q-1)'.

Very good catch.  Thanks.  I added this comment:

    This bug was introduced with
    Fixes-commit: 91056b1976bfb7b755e53b1302f4ede2b5cbc05d
    right at the start of GnuPG 2.1 in July 2010.  Before that (in 2.0) we
    used gpg-protect-tool which got it right.  We probably never noticed
    this because gpgsm, and maybe other tools too, fix things up during



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20180214/ffdc1e83/attachment.sig>

More information about the Gnupg-devel mailing list