g10,scd: Support single salt for KDF data object.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 30 Mar 2018 03:48:04 +0000 (12:48 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 30 Mar 2018 03:48:04 +0000 (12:48 +0900)
commit0c097575a9cd923f648fb5bb695893d46400c3ad
treebe4d7beaf86b965ea4102285510104e85fc52d8a
parent820380335a20391e0998fb1ba32ebfb9accedc5b
g10,scd: Support single salt for KDF data object.

* g10/card-util.c (gen_kdf_data): Support single salt.
(kdf_setup): Can have argument for single salt.
* scd/app-openpgp.c (pin2hash_if_kdf): Support single salt.

--

Gnuk has "admin-less" mode.  To support "admin-less" mode with KDF
feature, salt should be same for user and admin.  Thus, I introduce a
valid use of single salt.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
g10/card-util.c
scd/app-openpgp.c