Mercurial > dropbear
comparison bignum.h @ 188:c9483550701b
- refactored random mp_int generation and byte->mp_int code
- added RSA blinding
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 05 May 2005 03:58:21 +0000 |
parents | 82fcf3185616 |
children | 76097ec1a29a 504f33c684b5 a78a38e402d1 |
comparison
equal
deleted
inserted
replaced
187:c44df7123b0a | 188:c9483550701b |
---|---|
27 | 27 |
28 #include "includes.h" | 28 #include "includes.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, ...); | 31 void m_mp_init_multi(mp_int *mp, ...); |
32 void bytestomp(mp_int *mp, unsigned char* bytes, unsigned int len); | 32 void bytes_to_mp(mp_int *mp, const unsigned char* bytes, unsigned int len); |
33 void sha1_process_mp(hash_state *hs, mp_int *mp); | 33 void sha1_process_mp(hash_state *hs, mp_int *mp); |
34 | 34 |
35 #endif /* _BIGNUM_H_ */ | 35 #endif /* _BIGNUM_H_ */ |