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

PK_CryptoSystem Class Reference

#include <cryptlib.h>

Inheritance diagram for PK_CryptoSystem:

PK_Decryptor PK_Encryptor PK_FixedLengthCryptoSystem DL_CryptoSystemBase< PK_Decryptor, DL_PrivateKey< SCHEME_OPTIONS::Element > > PK_FixedLengthDecryptor DL_CryptoSystemBase< PK_Encryptor, DL_PublicKey< SCHEME_OPTIONS::Element > > PK_FixedLengthEncryptor PK_FixedLengthDecryptor PK_FixedLengthEncryptor DL_DecryptorBase< SCHEME_OPTIONS::Element > DL_CryptoSystemBase< PK_FixedLengthDecryptor, DL_PrivateKey< Integer > > TF_CryptoSystemBase< PK_FixedLengthDecryptor, TF_Base< TrapdoorFunctionInverse > > DL_EncryptorBase< SCHEME_OPTIONS::Element > DL_CryptoSystemBase< PK_FixedLengthEncryptor, DL_PublicKey< Integer > > TF_CryptoSystemBase< PK_FixedLengthEncryptor, TF_Base< RandomizedTrapdoorFunction > > DL_CryptoSystemBase< PK_FixedLengthDecryptor, DL_PrivateKey< Integer > > TF_CryptoSystemBase< PK_FixedLengthDecryptor, TF_Base< TrapdoorFunctionInverse > > DL_CryptoSystemBase< PK_FixedLengthEncryptor, DL_PublicKey< Integer > > TF_CryptoSystemBase< PK_FixedLengthEncryptor, TF_Base< RandomizedTrapdoorFunction > > List of all members.

Detailed Description

interface for public-key encryptors and decryptors

This class provides an interface common to encryptors and decryptors for querying their plaintext and ciphertext lengths.

Definition at line 1101 of file cryptlib.h.

Public Member Functions

virtual unsigned int MaxPlaintextLength (unsigned int cipherTextLength) const=0
 maximum length of plaintext for a given ciphertext length

virtual unsigned int CiphertextLength (unsigned int plainTextLength) const=0
 calculate length of ciphertext given length of plaintext


Member Function Documentation

virtual unsigned int PK_CryptoSystem::MaxPlaintextLength unsigned int  cipherTextLength  )  const [pure virtual]
 

maximum length of plaintext for a given ciphertext length

Note:
This function returns 0 if cipherTextLength is not valid (too long or too short).

Implemented in PK_FixedLengthCryptoSystem.

virtual unsigned int PK_CryptoSystem::CiphertextLength unsigned int  plainTextLength  )  const [pure virtual]
 

calculate length of ciphertext given length of plaintext

Note:
This function returns 0 if plainTextLength is not valid (too long).

Implemented in PK_FixedLengthCryptoSystem.


The documentation for this class was generated from the following file:
Generated on Tue Jul 8 23:35:18 2003 for Crypto++ by doxygen 1.3.2