Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File 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 Member Functions

 RSAKeyPairGenerator (long numBits)
 Constructor taking the 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 310 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 Fri May 6 17:41:53 2005 for COrnell Data EXchange (CODEX) by  doxygen 1.4.1