51#if defined(__BORLANDC__)
78 Modulus.DERDecode((
unsigned char *)modulus);
79 Exponent.DERDecode((
unsigned char *)exponent);
102 if (buffer ==
NULL) {
105 return(
Modulus.DEREncode((
unsigned char *)buffer));
127 if (buffer ==
NULL) {
130 return(
Exponent.DEREncode((
unsigned char *)buffer));
151 Modulus.DERDecode((
unsigned char *)buffer);
173 Exponent.DERDecode((
unsigned char *)buffer);
227 BigInt pqmin = (p-(
unsigned short)1)*(
q-(
unsigned short)1);
254 before[index] = (char)rand();
T Generate_Prime(Straw &rng, int pbits, T const *)
Int< MAX_UNIT_PRECISION > BigInt
static long Fast_Exponent(void)
int Encrypt(void const *source, int slen, void *dest) const
int Decrypt(void const *source, int slen, void *dest) const
int Encode_Exponent(void *buffer) const
int Crypt_Block_Size(void) const
int Encode_Modulus(void *buffer) const
int Plain_Block_Size(void) const
void Decode_Exponent(void *buffer)
void Decode_Modulus(void *buffer)
static void Generate(Straw &random, int bits, PKey &fastkey, PKey &slowkey)
Int exp_b_mod_c(const Int &e, const Int &m) const
Int Inverse(const Int &modulus) const