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

Interface for asymmetric algorithms. More...

#include <cryptlib.h>

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

Public Member Functions

virtual ~AsymmetricAlgorithm ()
 
virtual CryptoMaterialAccessMaterial ()=0
 Retrieves a reference to CryptoMaterial. More...
 
virtual const CryptoMaterialGetMaterial () const =0
 Retrieves a reference to CryptoMaterial. More...
 
void BERDecode (BufferedTransformation &bt)
 Loads this object from a BufferedTransformation. More...
 
void DEREncode (BufferedTransformation &bt) const
 Saves this object to a BufferedTransformation. More...
 
- Public Member Functions inherited from Algorithm
virtual ~Algorithm ()
 
 Algorithm (bool checkSelfTestStatus=true)
 Interface for all crypto algorithms. More...
 
virtual std::string AlgorithmName () const
 Provides the name of this algorithm. More...
 
- Public Member Functions inherited from Clonable
virtual ~Clonable ()
 
virtual ClonableClone () const
 Copies this object. More...
 

Detailed Description

Interface for asymmetric algorithms.

Definition at line 2196 of file cryptlib.h.

Constructor & Destructor Documentation

virtual AsymmetricAlgorithm::~AsymmetricAlgorithm ( )
inlinevirtual

Definition at line 2199 of file cryptlib.h.

Member Function Documentation

virtual CryptoMaterial& AsymmetricAlgorithm::AccessMaterial ( )
pure virtual

Retrieves a reference to CryptoMaterial.

Returns
a reference to the crypto material

Implemented in KeyAgreementAlgorithm, PrivateKeyAlgorithm, and PublicKeyAlgorithm.

void AsymmetricAlgorithm::BERDecode ( BufferedTransformation bt)
inline

Loads this object from a BufferedTransformation.

Parameters
bta BufferedTransformation object
Deprecated:
for backwards compatibility, calls AccessMaterial().Load(bt)

Definition at line 2212 of file cryptlib.h.

void AsymmetricAlgorithm::DEREncode ( BufferedTransformation bt) const
inline

Saves this object to a BufferedTransformation.

Parameters
bta BufferedTransformation object
Deprecated:
for backwards compatibility, calls GetMaterial().Save(bt)

Definition at line 2218 of file cryptlib.h.

virtual const CryptoMaterial& AsymmetricAlgorithm::GetMaterial ( ) const
pure virtual

Retrieves a reference to CryptoMaterial.

Returns
a const reference to the crypto material

Implemented in KeyAgreementAlgorithm, PrivateKeyAlgorithm, and PublicKeyAlgorithm.

Here is the caller graph for this function:


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