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

PK_FixedLengthCryptoSystem Class Reference

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

#include <cryptlib.h>

Inheritance diagram for PK_FixedLengthCryptoSystem:

PK_CryptoSystem CryptoSystemBaseTemplate PK_FixedLengthDecryptor PK_FixedLengthEncryptor DecryptorTemplate EncryptorTemplate DecryptorTemplate ElGamalDecryptor LUCELG_Decryptor EncryptorTemplate LUCELG_Encryptor LUCELG_Decryptor List of all members.

Public Methods

virtual unsigned int MaxPlainTextLength ()const=0
virtual unsigned int CipherTextLength ()const=0
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...


Detailed Description

abstract base class for encryptors and decryptors with fixed length ciphertext.

A simplified interface (as embodied in this class and its subclasses) is provided for crypto systems (such as RSA) whose ciphertext length depend only on the key, not on the length of the plaintext. The maximum plaintext length also depend only on the key.

Definition at line 519 of file cryptlib.h.


Member Function Documentation

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

calculate length of ciphertext given length of plaintext.

Reimplemented from PK_CryptoSystem.

Definition at line 455 of file cryptlib.cpp.

Referenced by DecryptorTemplate::Decrypt(), PK_FixedLengthDecryptor::Decrypt(), EncryptorTemplate::Encrypt(), and MaxPlainTextLength().

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

maximum length of plaintext for a given ciphertext length.

Reimplemented from PK_CryptoSystem.

Definition at line 447 of file cryptlib.cpp.

Referenced by CipherTextLength(), LUCELG_Decryptor::Decrypt(), ElGamalDecryptor::Decrypt(), EncryptorTemplate::Encrypt(), and LUCELG_Encryptor::Encrypt().


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