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

PK_FixedLengthCryptoSystem Class Reference

#include <cryptlib.h>

Inheritance diagram for PK_FixedLengthCryptoSystem:

PK_CryptoSystem PK_FixedLengthDecryptor PK_FixedLengthEncryptor TF_CryptoSystemBase< PK_FixedLengthDecryptor, TF_Base< TrapdoorFunctionInverse, PK_EncryptionMessageEncodingMethod > > TF_CryptoSystemBase< PK_FixedLengthEncryptor, TF_Base< RandomizedTrapdoorFunction, PK_EncryptionMessageEncodingMethod > > TF_DecryptorBase TF_EncryptorBase 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 1147 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 593 of file cryptlib.cpp.

References MaxPlaintextLength().

Referenced by MaxPlaintextLength().

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 601 of file cryptlib.cpp.

References CiphertextLength().

Referenced by CiphertextLength().


The documentation for this class was generated from the following files:
Generated on Fri Aug 13 09:56:59 2004 for Crypto++ by doxygen 1.3.7