#include <cryptlib.h>
Inheritance diagram for PK_FixedLengthCryptoSystem:

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... | |
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.
|
|
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(). |
|
|
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(). |
1.2.4 written by Dimitri van Heesch,
© 1997-2000