From 27280b86b35e5a8e0b892a8a99626f0ae18d6fc4 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Sun, 20 Dec 2015 16:31:56 +0100 Subject: [PATCH 1/2] static functions --- src/hashes/chc/chc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hashes/chc/chc.c b/src/hashes/chc/chc.c index 332d0258..31e63e61 100644 --- a/src/hashes/chc/chc.c +++ b/src/hashes/chc/chc.c @@ -156,8 +156,8 @@ static int chc_compress(hash_state *md, unsigned char *buf) } /* function for processing blocks */ -int _chc_process(hash_state * md, const unsigned char *buf, unsigned long len); -HASH_PROCESS(_chc_process, chc_compress, chc, (unsigned long)cipher_blocksize) +static int _chc_process(hash_state * md, const unsigned char *buf, unsigned long len); +static HASH_PROCESS(_chc_process, chc_compress, chc, (unsigned long)cipher_blocksize) /** Process a block of memory though the hash From eca2290b1e0ae48b27bd05655d77affc6689a350 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Tue, 28 Feb 2017 18:05:58 +0100 Subject: [PATCH 2/2] missing prototypes --- src/headers/tomcrypt_pk.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/headers/tomcrypt_pk.h b/src/headers/tomcrypt_pk.h index cd3d0212..cfd7657e 100644 --- a/src/headers/tomcrypt_pk.h +++ b/src/headers/tomcrypt_pk.h @@ -404,6 +404,11 @@ typedef struct { } dsa_key; int dsa_make_key(prng_state *prng, int wprng, int group_size, int modulus_size, dsa_key *key); + +int dsa_make_key_ex(prng_state *prng, int wprng, int group_size, int modulus_size, dsa_key *key, char* p_hex, char* q_hex, char* g_hex); + +int dsa_make_params(prng_state *prng, int wprng, int group_size, int modulus_size, void *p, void *q, void *g); + void dsa_free(dsa_key *key); int dsa_sign_hash_raw(const unsigned char *in, unsigned long inlen,