- refactored random mp_int generation and byte->mp_int code

- added RSA blinding

--HG--
extra : convert_revision : 5d5b4657a24a1c8f53c6fc45d5ec29ddb85fb45a
This commit is contained in:
Matt Johnston
2005-05-05 03:58:21 +00:00
parent 298a5717bc
commit cf585ba1de
9 changed files with 115 additions and 103 deletions

View File

@@ -25,8 +25,11 @@
#ifndef _RANDOM_H_
#define _RANDOM_H_
struct mp_int;
void seedrandom();
void genrandom(unsigned char* buf, int len);
void addrandom(unsigned char* buf, int len);
void gen_random_mpint(mp_int *max, mp_int *rand);
#endif /* _RANDOM_H_ */