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

LUCELG_Decryptor Class Reference

. More...

#include <luc.h>

Inheritance diagram for LUCELG_Decryptor:

LUCELG_Encryptor PK_FixedLengthDecryptor PK_FixedLengthEncryptor PK_Decryptor PK_FixedLengthCryptoSystem PK_Encryptor PK_FixedLengthCryptoSystem PK_CryptoSystem PK_CryptoSystem PK_CryptoSystem PK_CryptoSystem List of all members.

Public Methods

 LUCELG_Decryptor (const Integer &p,const Integer &g,const Integer &y,const Integer &x)
 LUCELG_Decryptor (RandomNumberGenerator &rng,unsigned int pbits)
 LUCELG_Decryptor (RandomNumberGenerator &rng,const Integer &p,const Integer &g)
 LUCELG_Decryptor (BufferedTransformation &bt)
void DEREncode (BufferedTransformation &bt)const
unsigned int Decrypt (const byte *cipherText,byte *plainText)
 decrypt a byte string, and return the length of plaintext. More...


Protected Methods

void RawDecrypt (const Integer &a,const Integer &b,Integer &m)const

Protected Attributes

Integer x

Detailed Description

.

Definition at line 125 of file luc.h.


Constructor & Destructor Documentation

LUCELG_Decryptor::LUCELG_Decryptor ( const Integer & p,
const Integer & g,
const Integer & y,
const Integer & x )
 

Definition at line 169 of file luc.cpp.

LUCELG_Decryptor::LUCELG_Decryptor ( RandomNumberGenerator & rng,
unsigned int pbits )
 

Definition at line 174 of file luc.cpp.

LUCELG_Decryptor::LUCELG_Decryptor ( RandomNumberGenerator & rng,
const Integer & pIn,
const Integer & gIn )
 

Definition at line 184 of file luc.cpp.

LUCELG_Decryptor::LUCELG_Decryptor ( BufferedTransformation & bt )
 

Definition at line 193 of file luc.cpp.


Member Function Documentation

void LUCELG_Decryptor::DEREncode ( BufferedTransformation & bt ) const
 

Reimplemented from LUCELG_Encryptor.

Definition at line 204 of file luc.cpp.

unsigned int LUCELG_Decryptor::Decrypt ( const byte * cipherText,
byte * plainText ) [virtual]
 

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

Preconditions: \begin{itemize} \item length of cipherText == CipherTextLength() \item size of plainText == MaxPlainTextLength() \end{itemize}

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

Reimplemented from PK_FixedLengthDecryptor.

Definition at line 214 of file luc.cpp.

void LUCELG_Decryptor::RawDecrypt ( const Integer & a,
const Integer & b,
Integer & m ) const [protected]
 

Definition at line 230 of file luc.cpp.


Member Data Documentation

Integer LUCELG_Decryptor::x [protected]
 

Definition at line 141 of file luc.h.


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