1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

gpg,scd: Fix handling of KDF feature.

* g10/card-util.c (kdf_setup): Fix the default value.
* scd/app-openpgp.c (do_setattr): Support kdf-setup "off" by
Zeitcontrol.  Make sure Gnuk and Yubikey work well.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2020-09-16 12:49:20 +09:00
parent 6e51f2044a
commit 8dfd0ebfd8
2 changed files with 25 additions and 13 deletions

View file

@ -2107,8 +2107,8 @@ kdf_setup (const char *args)
if (!strcmp (args, "off"))
{
len = 5;
memcpy (kdf_data, "\xF9\x03\x81\x01\x00", len);
len = 3;
memcpy (kdf_data, "\x81\x01\x00", len);
}
else
{