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

PK_FixedLengthCryptoSystem Class Reference

#include <cryptlib.h>

Inheritance diagram for PK_FixedLengthCryptoSystem:

PK_CryptoSystem PK_FixedLengthDecryptor PK_FixedLengthEncryptor 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 > > DL_DecryptorBase< Integer, PK_FixedLengthDecryptor > TF_DecryptorBase DL_EncryptorBase< Integer, PK_FixedLengthEncryptor > TF_EncryptorBase DL_ObjectImplBase< DL_DecryptorBase< Integer, PK_FixedLengthDecryptor >, SchemeOptions, SchemeOptions::PrivateKey > TF_ObjectImplBase< TF_DecryptorBase, SCHEME_OPTIONS, SCHEME_OPTIONS::PrivateKey > DL_ObjectImplBase< DL_EncryptorBase< Integer, PK_FixedLengthEncryptor >, SchemeOptions, SchemeOptions::PublicKey > TF_ObjectImplBase< TF_EncryptorBase, SCHEME_OPTIONS, SCHEME_OPTIONS::PublicKey > TF_ObjectImpl< TF_DecryptorBase, SCHEME_OPTIONS, SCHEME_OPTIONS::PrivateKey > TF_ObjectImpl< TF_EncryptorBase, SCHEME_OPTIONS, SCHEME_OPTIONS::PublicKey > TF_PrivateObjectImpl< TF_DecryptorBase, SCHEME_OPTIONS > TF_PublicObjectImpl< TF_EncryptorBase, SCHEME_OPTIONS > TF_DecryptorImpl< SCHEME_OPTIONS > TF_EncryptorImpl< SCHEME_OPTIONS > List of all members.

Detailed Description

interface for encryptors and decryptors with fixed length ciphertext

A simplified interface is provided for crypto systems (such as RSA) whose ciphertext length and maximum plaintext length depend only on the key.

Definition at line 1167 of file cryptlib.h.

Public Member Functions

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

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


Member Function Documentation

unsigned int PK_FixedLengthCryptoSystem::MaxPlaintextLength unsigned int  cipherTextLength  )  const [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).

Implements PK_CryptoSystem.

Definition at line 595 of file cryptlib.cpp.

unsigned int PK_FixedLengthCryptoSystem::CiphertextLength unsigned int  plainTextLength  )  const [virtual]
 

calculate length of ciphertext given length of plaintext

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

Implements PK_CryptoSystem.

Definition at line 603 of file cryptlib.cpp.


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