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

PK_FixedLengthDecryptor Class Reference

abstract base class for decryptors with fixed length ciphertext. More...

#include <cryptlib.h>

Inheritance diagram for PK_FixedLengthDecryptor:

PK_Decryptor PK_FixedLengthCryptoSystem PK_CryptoSystem PK_CryptoSystem DecryptorTemplate ElGamalDecryptor LUCELG_Decryptor List of all members.

Public Methods

virtual unsigned int Decrypt (const byte *cipherText,byte *plainText)=0
 decrypt a byte string, and return the length of plaintext. More...

unsigned int Decrypt (const byte *cipherText,unsigned int cipherTextLength,byte *plainText)
 decrypt a byte string, and return the length of plaintext. More...


Detailed Description

abstract base class for decryptors with fixed length ciphertext.

Definition at line 539 of file cryptlib.h.


Member Function Documentation

unsigned int PK_FixedLengthDecryptor::Decrypt ( const byte * cipherText,
unsigned int cipherTextLength,
byte * plainText ) [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 463 of file cryptlib.cpp.

unsigned int PK_FixedLengthDecryptor::Decrypt ( const byte * cipherText,
byte * plainText ) [pure 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 in ElGamalDecryptor, LUCELG_Decryptor, and DecryptorTemplate.

Referenced by Decrypt().


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