Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

CODEX_Ciphers::RSAKeyPairGenerator Class Reference

Helper object to create an RSA public/private key pair. More...

#include <RSA.h>

List of all members.

Public Methods

 RSAKeyPairGenerator (long numBits)
 
Parameters:
numBits  Number of bits for the prime factors.


void operator() (RSAPublicKey *&pubKey, RSAPrivateKey *&privKey)


Detailed Description

Helper object to create an RSA public/private key pair.

Definition at line 307 of file RSA.h.


Member Function Documentation

void RSAKeyPairGenerator::operator() RSAPublicKey *&    pubKey,
RSAPrivateKey *&    privKey
 

Parameters:
pubKey  Public key, filled by routine
privKey  Private key, filled by routine
Exceptions:
BignumNullException  Some memory allocation failed.
BignumGeneratePrimeException  There was an error generating a new prime modulus.
BignumSubException  There was an error during subtraction.
BignumContextException  Memory allocation failed for a BN_CTX.
BignumRshiftException  There was an error while bit-shifting a BIGNUM.
BignumRandRangeException  There was an error generating the random exponent.
BignumModMulException  There was an error during modular multiplication.
BignumModExpException  There was an error during modular exponentiation.

Definition at line 27 of file RSAKeyPairGenerator.cc.


The documentation for this class was generated from the following files:
Generated on Wed Jun 2 16:33:04 2004 for COrnell Data EXchange (CODEX) by doxygen1.2.18