Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | List of all members
ElGamalBase Class Referenceabstract

ElGamal key agreement and encryption schemes base class. More...

#include <elgamal.h>

Inheritance diagram for ElGamalBase:
[legend]
Collaboration diagram for ElGamalBase:
[legend]

Public Member Functions

virtual ~ElGamalBase ()
 
void Derive (const DL_GroupParameters< Integer > &groupParams, byte *derivedKey, size_t derivedLength, const Integer &agreedElement, const Integer &ephemeralPublicKey, const NameValuePairs &derivationParams) const
 
size_t GetSymmetricKeyLength (size_t plainTextLength) const
 
size_t GetSymmetricCiphertextLength (size_t plainTextLength) const
 
size_t GetMaxSymmetricPlaintextLength (size_t cipherTextLength) const
 
void SymmetricEncrypt (RandomNumberGenerator &rng, const byte *key, const byte *plainText, size_t plainTextLength, byte *cipherText, const NameValuePairs &parameters) const
 
DecodingResult SymmetricDecrypt (const byte *key, const byte *cipherText, size_t cipherTextLength, byte *plainText, const NameValuePairs &parameters) const
 
virtual const DL_GroupParameters_GFPGetGroupParameters () const =0
 
- Public Member Functions inherited from DL_KeyAgreementAlgorithm_DH< Integer, NoCofactorMultiplication >
CRYPTOPP_STATIC_CONSTEXPR const char *CRYPTOPP_API StaticAlgorithmName ()
 
virtual ~DL_KeyAgreementAlgorithm_DH ()
 
Element AgreeWithEphemeralPrivateKey (const DL_GroupParameters< Element > &params, const DL_FixedBasePrecomputation< Element > &publicPrecomputation, const Integer &privateExponent) const
 
Element AgreeWithStaticPrivateKey (const DL_GroupParameters< Element > &params, const Element &publicElement, bool validateOtherPublicKey, const Integer &privateExponent) const
 
- Public Member Functions inherited from DL_KeyAgreementAlgorithm< Integer >
virtual ~DL_KeyAgreementAlgorithm ()
 
- Public Member Functions inherited from DL_KeyDerivationAlgorithm< Integer >
virtual ~DL_KeyDerivationAlgorithm ()
 
virtual bool ParameterSupported (const char *name) const
 
- Public Member Functions inherited from DL_SymmetricEncryptionAlgorithm
virtual ~DL_SymmetricEncryptionAlgorithm ()
 
virtual bool ParameterSupported (const char *name) const
 

Additional Inherited Members

- Public Types inherited from DL_KeyAgreementAlgorithm_DH< Integer, NoCofactorMultiplication >
typedef Integer Element
 
- Public Types inherited from DL_KeyAgreementAlgorithm< Integer >
typedef Integer Element
 

Detailed Description

ElGamal key agreement and encryption schemes base class.

Since
Crypto++ 1.0

Definition at line 22 of file elgamal.h.

Constructor & Destructor Documentation

virtual ElGamalBase::~ElGamalBase ( )
inlinevirtual

Definition at line 27 of file elgamal.h.

Member Function Documentation

void ElGamalBase::Derive ( const DL_GroupParameters< Integer > &  groupParams,
byte derivedKey,
size_t  derivedLength,
const Integer agreedElement,
const Integer ephemeralPublicKey,
const NameValuePairs derivationParams 
) const
inlinevirtual

Implements DL_KeyDerivationAlgorithm< Integer >.

Definition at line 29 of file elgamal.h.

Here is the call graph for this function:

virtual const DL_GroupParameters_GFP& ElGamalBase::GetGroupParameters ( ) const
pure virtual
size_t ElGamalBase::GetMaxSymmetricPlaintextLength ( size_t  cipherTextLength) const
inlinevirtual

Implements DL_SymmetricEncryptionAlgorithm.

Definition at line 50 of file elgamal.h.

Here is the call graph for this function:

size_t ElGamalBase::GetSymmetricCiphertextLength ( size_t  plainTextLength) const
inlinevirtual

Implements DL_SymmetricEncryptionAlgorithm.

Definition at line 41 of file elgamal.h.

size_t ElGamalBase::GetSymmetricKeyLength ( size_t  plainTextLength) const
inlinevirtual

Implements DL_SymmetricEncryptionAlgorithm.

Definition at line 35 of file elgamal.h.

DecodingResult ElGamalBase::SymmetricDecrypt ( const byte key,
const byte cipherText,
size_t  cipherTextLength,
byte plainText,
const NameValuePairs parameters 
) const
inlinevirtual

Implements DL_SymmetricEncryptionAlgorithm.

Definition at line 73 of file elgamal.h.

Here is the call graph for this function:

void ElGamalBase::SymmetricEncrypt ( RandomNumberGenerator rng,
const byte key,
const byte plainText,
size_t  plainTextLength,
byte cipherText,
const NameValuePairs parameters 
) const
inlinevirtual

Implements DL_SymmetricEncryptionAlgorithm.

Definition at line 59 of file elgamal.h.

Here is the call graph for this function:


The documentation for this class was generated from the following file: