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

PK_Decryptor Class Reference

abstract base class for public-key decryptors. More...

#include <cryptlib.h>

Inheritance diagram for PK_Decryptor:

PK_CryptoSystem BlumGoldwasserPrivateKey ECDecryptor PK_FixedLengthDecryptor DecryptorTemplate ElGamalDecryptor LUCELG_Decryptor List of all members.

Public Methods

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


Detailed Description

abstract base class for public-key decryptors.

An decryptor is also a private decryption key. It contains both the key and the algorithm to perform the decryption.

Definition at line 498 of file cryptlib.h.


Member Function Documentation

unsigned int PK_Decryptor::Decrypt ( const byte * cipherText,
unsigned int cipherTextLength,
byte * plainText ) [pure 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 in BlumGoldwasserPrivateKey, PK_FixedLengthDecryptor, and ECDecryptor.


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