Re: [PATCH gnupg] sm: Fix a wrong key parameter in an exported private key file
On Wed, 7 Feb 2018 10:46, [hidden email] said:
> * sm/export.c (sexp_to_kparms): Fix the computation of array,
> 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
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.