|
@@ -44,7 +44,8 @@ typedef unsigned char ed25519_signature[64];
|
|
typedef unsigned char ed25519_public_key[32];
|
|
typedef unsigned char ed25519_public_key[32];
|
|
typedef unsigned char ed25519_secret_key[32];
|
|
typedef unsigned char ed25519_secret_key[32];
|
|
|
|
|
|
-static void gettweak(unsigned char *out, const unsigned char *param);
|
|
|
|
|
|
+static void ed25519_donna_gettweak(unsigned char *out,
|
|
|
|
+ const unsigned char *param);
|
|
|
|
|
|
static int ED25519_FN(ed25519_sign_open) (const unsigned char *m, size_t mlen,
|
|
static int ED25519_FN(ed25519_sign_open) (const unsigned char *m, size_t mlen,
|
|
const ed25519_public_key pk, const ed25519_signature RS);
|
|
const ed25519_public_key pk, const ed25519_signature RS);
|
|
@@ -242,7 +243,7 @@ ed25519_donna_sign(unsigned char *sig, const unsigned char *m, size_t mlen,
|
|
}
|
|
}
|
|
|
|
|
|
static void
|
|
static void
|
|
-gettweak(unsigned char *out, const unsigned char *param)
|
|
|
|
|
|
+ed25519_donna_gettweak(unsigned char *out, const unsigned char *param)
|
|
{
|
|
{
|
|
static const char str[] = "Derive temporary signing key";
|
|
static const char str[] = "Derive temporary signing key";
|
|
ed25519_hash_context ctx;
|
|
ed25519_hash_context ctx;
|
|
@@ -266,7 +267,7 @@ ed25519_donna_blind_secret_key(unsigned char *out, const unsigned char *inp,
|
|
ed25519_hash_context ctx;
|
|
ed25519_hash_context ctx;
|
|
bignum256modm ALIGN(16) sk, t;
|
|
bignum256modm ALIGN(16) sk, t;
|
|
|
|
|
|
- gettweak(tweak, param);
|
|
|
|
|
|
+ ed25519_donna_gettweak(tweak, param);
|
|
expand256_modm(t, tweak, 32);
|
|
expand256_modm(t, tweak, 32);
|
|
|
|
|
|
expand256_modm(sk, inp, 32);
|
|
expand256_modm(sk, inp, 32);
|
|
@@ -297,7 +298,7 @@ ed25519_donna_blind_public_key(unsigned char *out, const unsigned char *inp,
|
|
ge25519 ALIGN(16) A, Aprime;
|
|
ge25519 ALIGN(16) A, Aprime;
|
|
bignum256modm ALIGN(16) t;
|
|
bignum256modm ALIGN(16) t;
|
|
|
|
|
|
- gettweak(tweak, param);
|
|
|
|
|
|
+ ed25519_donna_gettweak(tweak, param);
|
|
expand256_modm(t, tweak, 32);
|
|
expand256_modm(t, tweak, 32);
|
|
|
|
|
|
/* No "ge25519_unpack", negate the public key. */
|
|
/* No "ge25519_unpack", negate the public key. */
|