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

BlumGoldwasserPublicKey Class Reference

BlumGoldwasser Public Key Class - PKI. More...

#include <blumgold.h>

Inheritance diagram for BlumGoldwasserPublicKey:

PK_Encryptor PK_CryptoSystem BlumGoldwasserPrivateKey List of all members.

Public Methods

 BlumGoldwasserPublicKey (const Integer &n)
 BlumGoldwasserPublicKey (BufferedTransformation &bt)
void DEREncode (BufferedTransformation &bt)const
void Encrypt (RandomNumberGenerator &rng,const byte *plainText,unsigned int plainTextLength,byte *cipherText)
 encrypt a byte string. More...

unsigned int MaxPlainTextLength (unsigned int cipherTextLength)const
 maximum length of plaintext for a given ciphertext length. More...

unsigned int CipherTextLength (unsigned int plainTextLength)const
 calculate length of ciphertext given length of plaintext. More...


Protected Methods

 BlumGoldwasserPublicKey ()

Protected Attributes

Integer n
unsigned int modulusLen

Detailed Description

BlumGoldwasser Public Key Class - PKI.

Definition at line 13 of file blumgold.h.


Constructor & Destructor Documentation

BlumGoldwasserPublicKey::BlumGoldwasserPublicKey ( const Integer & n )
 

Definition at line 11 of file blumgold.cpp.

BlumGoldwasserPublicKey::BlumGoldwasserPublicKey ( BufferedTransformation & bt )
 

Definition at line 16 of file blumgold.cpp.

BlumGoldwasserPublicKey::BlumGoldwasserPublicKey ( ) [inline, protected]
 

Definition at line 29 of file blumgold.h.


Member Function Documentation

unsigned int BlumGoldwasserPublicKey::CipherTextLength ( unsigned int plainTextLength ) const [virtual]
 

calculate length of ciphertext given length of plaintext.

Reimplemented from PK_CryptoSystem.

Definition at line 36 of file blumgold.cpp.

void BlumGoldwasserPublicKey::DEREncode ( BufferedTransformation & bt ) const
 

Definition at line 24 of file blumgold.cpp.

void BlumGoldwasserPublicKey::Encrypt ( RandomNumberGenerator & rng,
const byte * input,
unsigned int inputLen,
byte * output ) [virtual]
 

encrypt a byte string.

Preconditions: \begin{itemize} \item CipherTextLength(plainTextLength) != 0 (i.e., plainText isn't too long) \item size of cipherText == CipherTextLength(plainTextLength) \end{itemize}

Reimplemented from PK_Encryptor.

Definition at line 41 of file blumgold.cpp.

unsigned int BlumGoldwasserPublicKey::MaxPlainTextLength ( unsigned int cipherTextLength ) const [virtual]
 

maximum length of plaintext for a given ciphertext length.

Reimplemented from PK_CryptoSystem.

Definition at line 31 of file blumgold.cpp.


Member Data Documentation

unsigned int BlumGoldwasserPublicKey::modulusLen [protected]
 

Definition at line 32 of file blumgold.h.

Integer BlumGoldwasserPublicKey::n [protected]
 

Definition at line 31 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