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

PK_Encryptor Class Reference

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

#include <cryptlib.h>

Inheritance diagram for PK_Encryptor:

PK_CryptoSystem BlumGoldwasserPublicKey PK_FixedLengthEncryptor BlumGoldwasserPrivateKey EncryptorTemplate LUCELG_Encryptor LUCELG_Decryptor List of all members.

Public Methods

virtual void Encrypt (RandomNumberGenerator &rng,const byte *plainText,unsigned int plainTextLength,byte *cipherText)=0
 encrypt a byte string. More...


Detailed Description

abstract base class for public-key encryptors.

An encryptor is also a public encryption key. It contains both the key and the algorithm to perform the encryption.

Definition at line 480 of file cryptlib.h.


Member Function Documentation

void PK_Encryptor::Encrypt ( RandomNumberGenerator & rng,
const byte * plainText,
unsigned int plainTextLength,
byte * cipherText ) [pure 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 in BlumGoldwasserPublicKey, LUCELG_Encryptor, and EncryptorTemplate.


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