summaryrefslogtreecommitdiff
path: root/src/ext/ed25519/ref10
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-04-15 12:19:51 -0400
committerNick Mathewson <nickm@torproject.org>2016-04-15 12:19:51 -0400
commit8c6b528b00a82f6fd027d543ba8257dfa2fc97ef (patch)
treeb66ee1dd32bd4943c4b02fb984eca44876a4b78f /src/ext/ed25519/ref10
parent381dae43b6ecd5134820cd8212c71a6d7a56c36d (diff)
downloadtor-8c6b528b00a82f6fd027d543ba8257dfa2fc97ef.tar.gz
tor-8c6b528b00a82f6fd027d543ba8257dfa2fc97ef.zip
Disambiguate: Avoid defining two static functions both called gettweak()
Diffstat (limited to 'src/ext/ed25519/ref10')
-rw-r--r--src/ext/ed25519/ref10/blinding.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ext/ed25519/ref10/blinding.c b/src/ext/ed25519/ref10/blinding.c
index 4d9a9cbbe7..ee3e8666fa 100644
--- a/src/ext/ed25519/ref10/blinding.c
+++ b/src/ext/ed25519/ref10/blinding.c
@@ -10,7 +10,7 @@
#include "crypto.h"
static void
-gettweak(unsigned char *out, const unsigned char *param)
+ed25519_ref10_gettweak(unsigned char *out, const unsigned char *param)
{
const char str[] = "Derive temporary signing key";
crypto_hash_sha512_2(out, (const unsigned char*)str, strlen(str), param, 32);
@@ -26,7 +26,7 @@ int ed25519_ref10_blind_secret_key(unsigned char *out,
const char str[] = "Derive temporary signing key hash input";
unsigned char tweak[64];
unsigned char zero[32];
- gettweak(tweak, param);
+ ed25519_ref10_gettweak(tweak, param);
memset(zero, 0, 32);
sc_muladd(out, inp, tweak, zero);
@@ -50,7 +50,7 @@ int ed25519_ref10_blind_public_key(unsigned char *out,
ge_p3 A;
ge_p2 Aprime;
- gettweak(tweak, param);
+ ed25519_ref10_gettweak(tweak, param);
memset(zero, 0, sizeof(zero));
/* Not the greatest implementation of all of this. I wish I had