scd: Support KDF Data Object of OpenPGPcard V3.3.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 22 Jan 2018 10:46:14 +0000 (19:46 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 22 Jan 2018 10:46:14 +0000 (19:46 +0900)
commit91303b7df9c3e810cfcd4920f78bac6f8b7df2b2
treedc0e040920531fb071ac8bbb85e0d9e30ef966e1
parente1e35db510c9222e7a7dc208c2e49df556954170
scd: Support KDF Data Object of OpenPGPcard V3.3.

* scd/app-openpgp.c (do_getattr, do_setattr): Add KDF support.
(pin2hash_if_kdf): New.
(verify_a_chv): Add PINLEN arg.  Use pin2hash_if_kdf.
(verify_chv2, do_sign): Follow the change of verify_a_chv.
(verify_chv3, do_change_pin): Use pin2hash_if_kdf.

--

GnuPG-bug-id: 3152
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
scd/app-openpgp.c