Browse Source

static functions name fix

Karel Miko 8 years ago
parent
commit
a937f23821
2 changed files with 10 additions and 10 deletions
  1. 5 5
      src/pk/ecc/ecc_sign_hash.c
  2. 5 5
      src/pk/ecc/ecc_verify_hash.c

+ 5 - 5
src/pk/ecc/ecc_sign_hash.c

@@ -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

+ 5 - 5
src/pk/ecc/ecc_verify_hash.c

@@ -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