mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
tools: Don't prepare G in gpg-pair-tool.
* tools/gpg-pair-tool.c (create_dh_keypair): Use NULL for G. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
f22a004161
commit
b928de70e0
@ -1022,7 +1022,6 @@ create_dh_keypair (unsigned char *dh_secret, size_t dh_secret_len,
|
||||
{
|
||||
gpg_error_t err;
|
||||
unsigned char *p;
|
||||
const unsigned char G[32] = { 0x9 };
|
||||
|
||||
/* We need a temporary buffer for the public key. Check the length
|
||||
* for the later memcpy. */
|
||||
@ -1036,7 +1035,7 @@ create_dh_keypair (unsigned char *dh_secret, size_t dh_secret_len,
|
||||
memcpy (dh_secret, p, 32);
|
||||
xfree (p);
|
||||
|
||||
err = gcry_ecc_mul_point (GCRY_ECC_CURVE25519, &p, dh_secret, G);
|
||||
err = gcry_ecc_mul_point (GCRY_ECC_CURVE25519, &p, dh_secret, NULL);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user