static functions name fix

This commit is contained in:
Karel Miko 2017-06-21 12:43:12 +02:00
parent 67200b641d
commit a937f23821
2 changed files with 10 additions and 10 deletions

View File

@ -16,9 +16,9 @@
ECC Crypto, Tom St Denis
*/
static int ecc_sign_hash_ex(const unsigned char *in, unsigned long inlen,
unsigned char *out, unsigned long *outlen,
prng_state *prng, int wprng, ecc_key *key, int sigformat)
static int _ecc_sign_hash(const unsigned char *in, unsigned long inlen,
unsigned char *out, unsigned long *outlen,
prng_state *prng, int wprng, ecc_key *key, int sigformat)
{
ecc_key pubkey;
void *r, *s, *e, *p;
@ -136,7 +136,7 @@ int ecc_sign_hash(const unsigned char *in, unsigned long inlen,
unsigned char *out, unsigned long *outlen,
prng_state *prng, int wprng, ecc_key *key)
{
return ecc_sign_hash_ex(in, inlen, out, outlen, prng, wprng, key, 0);
return _ecc_sign_hash(in, inlen, out, outlen, prng, wprng, key, 0);
}
/**
@ -154,7 +154,7 @@ int ecc_sign_hash_rfc7518(const unsigned char *in, unsigned long inlen,
unsigned char *out, unsigned long *outlen,
prng_state *prng, int wprng, ecc_key *key)
{
return ecc_sign_hash_ex(in, inlen, out, outlen, prng, wprng, key, 1);
return _ecc_sign_hash(in, inlen, out, outlen, prng, wprng, key, 1);
}
#endif

View File

@ -16,9 +16,9 @@
ECC Crypto, Tom St Denis
*/
static int ecc_verify_hash_ex(const unsigned char *sig, unsigned long siglen,
const unsigned char *hash, unsigned long hashlen,
int *stat, ecc_key *key, int sigformat)
static int _ecc_verify_hash(const unsigned char *sig, unsigned long siglen,
const unsigned char *hash, unsigned long hashlen,
int *stat, ecc_key *key, int sigformat)
{
ecc_point *mG, *mQ;
void *r, *s, *v, *w, *u1, *u2, *e, *p, *m;
@ -170,7 +170,7 @@ int ecc_verify_hash(const unsigned char *sig, unsigned long siglen,
const unsigned char *hash, unsigned long hashlen,
int *stat, ecc_key *key)
{
return ecc_verify_hash_ex(sig, siglen, hash, hashlen, stat, key, 0);
return _ecc_verify_hash(sig, siglen, hash, hashlen, stat, key, 0);
}
/**
@ -187,7 +187,7 @@ int ecc_verify_hash_rfc7518(const unsigned char *sig, unsigned long siglen,
const unsigned char *hash, unsigned long hashlen,
int *stat, ecc_key *key)
{
return ecc_verify_hash_ex(sig, siglen, hash, hashlen, stat, key, 1);
return _ecc_verify_hash(sig, siglen, hash, hashlen, stat, key, 1);
}
#endif