Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

BlumGoldwasserPrivateKey Class Reference

BlumGoldwasser Private Key Class - PKI. More...

#include <blumgold.h>

Inheritance diagram for BlumGoldwasserPrivateKey:

BlumGoldwasserPublicKey PK_Decryptor PK_Encryptor PK_CryptoSystem PK_CryptoSystem List of all members.

Public Methods

 BlumGoldwasserPrivateKey (const Integer &n,const Integer &p,const Integer &q,const Integer &u)
 BlumGoldwasserPrivateKey (RandomNumberGenerator &rng,unsigned int keybits)
 BlumGoldwasserPrivateKey (BufferedTransformation &bt)
void DEREncode (BufferedTransformation &bt)const
unsigned int Decrypt (const byte *cipherText,unsigned int cipherTextLength,byte *plainText)
 decrypt a byte string, and return the length of plaintext. More...


Protected Attributes

Integer p
Integer q
Integer u

Detailed Description

BlumGoldwasser Private Key Class - PKI.

Definition at line 36 of file blumgold.h.


Constructor & Destructor Documentation

BlumGoldwasserPrivateKey::BlumGoldwasserPrivateKey ( const Integer & n,
const Integer & p,
const Integer & q,
const Integer & u )
 

Definition at line 52 of file blumgold.cpp.

BlumGoldwasserPrivateKey::BlumGoldwasserPrivateKey ( RandomNumberGenerator & rng,
unsigned int keybits )
 

Definition at line 61 of file blumgold.cpp.

BlumGoldwasserPrivateKey::BlumGoldwasserPrivateKey ( BufferedTransformation & bt )
 

Definition at line 85 of file blumgold.cpp.


Member Function Documentation

void BlumGoldwasserPrivateKey::DEREncode ( BufferedTransformation & bt ) const
 

Reimplemented from BlumGoldwasserPublicKey.

Definition at line 100 of file blumgold.cpp.

unsigned int BlumGoldwasserPrivateKey::Decrypt ( const byte * input,
unsigned int cipherTextLength,
byte * output ) [virtual]
 

decrypt a byte string, and return the length of plaintext.

Precondition: size of plainText == MaxPlainTextLength(cipherTextLength) bytes.

The function returns the actual length of the plaintext, or 0 if decryption fails.

Reimplemented from PK_Decryptor.

Definition at line 110 of file blumgold.cpp.


Member Data Documentation

Integer BlumGoldwasserPrivateKey::p [protected]
 

Definition at line 49 of file blumgold.h.

Integer BlumGoldwasserPrivateKey::q [protected]
 

Definition at line 49 of file blumgold.h.

Integer BlumGoldwasserPrivateKey::u [protected]
 

Definition at line 49 of file blumgold.h.


The documentation for this class was generated from the following files:
Generated at Mon Jan 15 01:16:42 2001 for Crypto++ by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000