Crypto++ 8.9
Free C++ class library of cryptographic schemes
|
Interface for public-key encryptors and decryptors. More...
#include <cryptlib.h>
Public Member Functions | |
virtual size_t | MaxPlaintextLength (size_t ciphertextLength) const =0 |
Provides the maximum length of plaintext for a given ciphertext length. | |
virtual size_t | CiphertextLength (size_t plaintextLength) const =0 |
Calculate the length of ciphertext given length of plaintext. | |
virtual bool | ParameterSupported (const char *name) const =0 |
Determines whether this object supports the use of a named parameter. | |
virtual size_t | FixedCiphertextLength () const |
Provides the fixed ciphertext length, if one exists. | |
virtual size_t | FixedMaxPlaintextLength () const |
Provides the maximum plaintext length given a fixed ciphertext length. | |
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 2665 of file cryptlib.h.
|
inlinevirtual |
Definition at line 2668 of file cryptlib.h.
|
pure virtual |
Provides the maximum length of plaintext for a given ciphertext length.
This function returns 0 if ciphertextLength is not valid (too long or too short).
|
pure virtual |
Calculate the length of ciphertext given length of plaintext.
This function returns 0 if plaintextLength is not valid (too long).
|
pure virtual |
Determines whether this object supports the use of a named parameter.
name | the name of the parameter |
Some possible parameter names: EncodingParameters(), KeyDerivationParameters() and others Parameters listed in argnames.h
|
inlinevirtual |
Provides the fixed ciphertext length, if one exists.
"Fixed" here means length of ciphertext does not depend on length of plaintext. In this case, it usually does depend on the key length.
Definition at line 2691 of file cryptlib.h.
|
inlinevirtual |
Provides the maximum plaintext length given a fixed ciphertext length.
FixedMaxPlaintextLength(0 returns the maximum plaintext length given the fixed ciphertext length, if one exists, otherwise return 0.
Definition at line 2698 of file cryptlib.h.