comparison bignum.h @ 1381:c98e242dc505 fuzz

add m_mp_free_multi, be more careful freeing when failing to load keys
author Matt Johnston <matt@ucc.asn.au>
date Fri, 26 May 2017 21:08:43 +0800
parents 3017bc7d6238
children
comparison
equal deleted inserted replaced
1380:d201105df2ed 1381:c98e242dc505
28 #include "dbhelpers.h" 28 #include "dbhelpers.h"
29 29
30 void m_mp_init(mp_int *mp); 30 void m_mp_init(mp_int *mp);
31 void m_mp_init_multi(mp_int *mp, ...) ATTRIB_SENTINEL; 31 void m_mp_init_multi(mp_int *mp, ...) ATTRIB_SENTINEL;
32 void m_mp_alloc_init_multi(mp_int **mp, ...) ATTRIB_SENTINEL; 32 void m_mp_alloc_init_multi(mp_int **mp, ...) ATTRIB_SENTINEL;
33 void m_mp_free_multi(mp_int **mp, ...) ATTRIB_SENTINEL;
33 void bytes_to_mp(mp_int *mp, const unsigned char* bytes, unsigned int len); 34 void bytes_to_mp(mp_int *mp, const unsigned char* bytes, unsigned int len);
34 void hash_process_mp(const struct ltc_hash_descriptor *hash_desc, 35 void hash_process_mp(const struct ltc_hash_descriptor *hash_desc,
35 hash_state *hs, mp_int *mp); 36 hash_state *hs, mp_int *mp);
36 37
37 #endif /* DROPBEAR_BIGNUM_H_ */ 38 #endif /* DROPBEAR_BIGNUM_H_ */