1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-12 18:49:07 +00:00

Add prototypes for private functions

This commit is contained in:
Dustin Laurence 2015-01-23 11:27:33 -08:00
parent d57d030362
commit 8ce1f34233
3 changed files with 12 additions and 0 deletions

View File

@ -29,4 +29,9 @@
int base58_encode_check(const uint8_t *data, int len, char *str, int strsize);
int base58_decode_check(const char *str, uint8_t *data, int datalen);
// Private
bool b58tobin(void *bin, size_t *binszp, const char *b58);
int b58check(const void *bin, size_t binsz, const char *base58str);
bool b58enc(char *b58, size_t *b58sz, const void *data, size_t binsz);
#endif

View File

@ -55,4 +55,7 @@ void hdnode_serialize_private(const HDNode *node, char *str, int strsize);
int hdnode_deserialize(const char *str, HDNode *node);
// Private
void hdnode_serialize(const HDNode *node, uint32_t version, char use_public, char *str, int strsize);
#endif

View File

@ -56,4 +56,8 @@ int ecdsa_verify_double(const uint8_t *pub_key, const uint8_t *sig, const uint8_
int ecdsa_verify_digest(const uint8_t *pub_key, const uint8_t *sig, const uint8_t *digest);
int ecdsa_sig_to_der(const uint8_t *sig, uint8_t *der);
// Private
int generate_k_rfc6979(bignum256 *secret, const uint8_t *priv_key, const uint8_t *hash);
int generate_k_random(bignum256 *k);
#endif