Mercurial > dropbear
comparison random.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 | fe6bca95afa7 |
children | 3be7ae2e8dfa |
comparison
equal
deleted
inserted
replaced
187:c44df7123b0a | 188:c9483550701b |
---|---|
23 * SOFTWARE. */ | 23 * SOFTWARE. */ |
24 | 24 |
25 #ifndef _RANDOM_H_ | 25 #ifndef _RANDOM_H_ |
26 #define _RANDOM_H_ | 26 #define _RANDOM_H_ |
27 | 27 |
28 struct mp_int; | |
29 | |
28 void seedrandom(); | 30 void seedrandom(); |
29 void genrandom(unsigned char* buf, int len); | 31 void genrandom(unsigned char* buf, int len); |
30 void addrandom(unsigned char* buf, int len); | 32 void addrandom(unsigned char* buf, int len); |
33 void gen_random_mpint(mp_int *max, mp_int *rand); | |
31 | 34 |
32 #endif /* _RANDOM_H_ */ | 35 #endif /* _RANDOM_H_ */ |