ecc: Default cofactor 1 for PUBKEY_FLAG_PARAM.
authorNiibe Yutaka <gniibe@fsij.org>
Thu, 16 Jun 2016 01:56:28 +0000 (10:56 +0900)
committerNiibe Yutaka <gniibe@fsij.org>
Thu, 16 Jun 2016 02:06:25 +0000 (11:06 +0900)
commitb0b70e7fe37b1bf13ec0bfc8effcb5c7f5db6b7d
tree4c99b2bae58adb0f83fb32417d4e94493ace324e
parentfa917d2e24b0c98143a079ab4889ad8f69bee446
ecc: Default cofactor 1 for PUBKEY_FLAG_PARAM.

* cipher/ecc.c (ecc_check_secret_key, ecc_sign, ecc_verify)
(ecc_encrypt_raw, ecc_decrypt_raw, compute_keygrip): Set default
cofactor as 1, when not specified.

--

GnuPG-bug-id: 2347
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
(backport from master
commit 0f3a069211d8d24a61aa0dc2cc6c4ef04cc4fab7)
cipher/ecc.c