mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-07 17:33:02 +01:00
g10: Fix card-edit/kdf-setup for single salt.
* g10/card-util.c (gen_kdf_data): Use SALT_USER. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
0c097575a9
commit
130ad98240
@ -2017,7 +2017,9 @@ gen_kdf_data (unsigned char *data, int single_salt)
|
|||||||
gcry_randomize (p, 8, GCRY_STRONG_RANDOM);
|
gcry_randomize (p, 8, GCRY_STRONG_RANDOM);
|
||||||
p += 8;
|
p += 8;
|
||||||
|
|
||||||
if (!single_salt)
|
if (single_salt)
|
||||||
|
salt_admin = salt_user;
|
||||||
|
else
|
||||||
{
|
{
|
||||||
memcpy (p, h2, sizeof h2);
|
memcpy (p, h2, sizeof h2);
|
||||||
p += sizeof h2;
|
p += sizeof h2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user