Fabcoin Core
0.16.2
P2P Digital Currency
|
Interface for all crypto algorithms. More...
#include <cryptlib.h>
Public Member Functions | |
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 Clonable * | Clone () const |
Copies this object. More... | |
Interface for all crypto algorithms.
Definition at line 497 of file cryptlib.h.
|
inlinevirtual |
Definition at line 500 of file cryptlib.h.
Algorithm::Algorithm | ( | bool | checkSelfTestStatus = true | ) |
Interface for all crypto algorithms.
checkSelfTestStatus | determines whether the object can proceed if the self tests have not been run or failed. |
When FIPS 140-2 compliance is enabled and checkSelfTestStatus == true, this constructor throws SelfTestFailure if the self test hasn't been run or fails.
FIPS 140-2 compliance is disabled by default. It is only used by certain versions of the library when the library is built as a DLL on Windows. Also see CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2 in config.h.
Definition at line 85 of file cryptlib.cpp.
|
inlinevirtual |
Provides the name of this algorithm.
The standard algorithm name can be a name like AES or AES/GCM. Some algorithms do not have standard names yet. For example, there is no standard algorithm name for Shoup's ECIES.
Reimplemented in AuthenticatedSymmetricCipher, SignatureVerificationFilter, SignerFilter, AuthenticatedDecryptionFilter, HashVerificationFilter, HashFilter, StreamTransformationFilter, ClassNullRNG, BitBucket, CipherModeFinalTemplate_ExternalCipher< ConcretePolicyHolder< Empty, AdditiveCipherTemplate< AbstractPolicyHolder< AdditiveCipherAbstractPolicy, CTR_ModePolicy > > > >, BLAKE2_Base< W, T_64bit >, BLAKE2_Base< word32, false >, BLAKE2_Base< word64, true >, DH_Domain< GROUP_PARAMETERS, COFACTOR_OPTION >, RDSEED, HMAC< T >, HMAC< H >, CRC32C, Keccak, RDRAND, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SEED_Info > > >, AlgorithmImpl< IteratedHash< word32, LittleEndian, T_BlockSize >, RIPEMD160 >, AlgorithmImpl< IteratedHash< word64, BigEndian, T_BlockSize >, SHA384 >, AlgorithmImpl< IteratedHash< word32, BigEndian, T_BlockSize >, SHA224 >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, TEA_Info > > >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_EDE2_Info > > >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Blowfish_Info > > >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SHARK_Info > > >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, ThreeWay_Info > > >, AlgorithmImpl< DL_DecryptorBase< SCHEME_OPTIONS::Element >, SCHEME_OPTIONS::AlgorithmInfo >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, RC5_Info > > >, AlgorithmImpl< IteratedHash< word32, LittleEndian, T_BlockSize >, RIPEMD128 >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, IDEA_Info > > >, AlgorithmImpl< TF_EncryptorBase, SCHEME_OPTIONS::AlgorithmInfo >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Serpent_Info > > >, AlgorithmImpl< SimpleKeyingInterfaceImpl< CMAC_Base, CMAC< T > >, CMAC< T > >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Camellia_Info > > >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, XTEA_Info > > >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, GOST_Info > > >, AlgorithmImpl< DL_EncryptorBase< SCHEME_OPTIONS::Element >, SCHEME_OPTIONS::AlgorithmInfo >, AlgorithmImpl< IteratedHash< word32, LittleEndian, T_BlockSize >, RIPEMD256 >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CAST256_Info > > >, AlgorithmImpl< IteratedHash< word64, BigEndian, T_BlockSize >, SHA512 >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, MDC_Info< T > > > >, AlgorithmImpl< SimpleKeyingInterfaceImpl< CMAC_Base, CMAC< T_BlockCipher > >, CMAC< T_BlockCipher > >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< MessageAuthenticationCode, VariableKeyLength< 32, 0, INT_MAX > > >, T_Info >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Square_Info > > >, AlgorithmImpl< IteratedHash< word32, NativeByteOrder, 32 >, PanamaHash< B > >, AlgorithmImpl< DL_VerifierBase< SCHEME_OPTIONS::Element >, SCHEME_OPTIONS::AlgorithmInfo >, AlgorithmImpl< IteratedHash< word32, BigEndian, T_BlockSize >, SHA1 >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< MessageAuthenticationCode, VariableKeyLength< 32, 0, INT_MAX > > >, PanamaHash< B > >, AlgorithmImpl< SimpleKeyingInterfaceImpl< HMAC_Base, HMAC< H > >, HMAC< H > >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, LR_Info< T > > > >, AlgorithmImpl< SimpleKeyingInterfaceImpl< Poly1305_Base< T >, Poly1305_Base< T > >, Poly1305_Base< T > >, AlgorithmImpl< SimpleKeyingInterfaceImpl< HMAC_Base, HMAC< T > >, HMAC< T > >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, RC6_Info > > >, AlgorithmImpl< DL_SignerBase< SCHEME_OPTIONS::Element >, SCHEME_OPTIONS::AlgorithmInfo >, AlgorithmImpl< TF_VerifierBase, SCHEME_OPTIONS::AlgorithmInfo >, AlgorithmImpl< SimpleKeyingInterfaceImpl< DMAC_Base< T >, DMAC_Base< T > >, DMAC_Base< T > >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_EDE3_Info > > >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_XEX3_Info > > >, AlgorithmImpl< IteratedHash< word64, LittleEndian, T_BlockSize >, Tiger >, AlgorithmImpl< IteratedHash< T_HashWordType, T_Endianness, T_BlockSize >, T_Transform >, AlgorithmImpl< IteratedHash< word32, BigEndian, T_BlockSize >, SHA256 >, AlgorithmImpl< IteratedHash< word32, LittleEndian, T_BlockSize >, MD4 >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CAST128_Info > > >, AlgorithmImpl< IteratedHash< word32, LittleEndian, T_BlockSize >, MD5 >, AlgorithmImpl< SimpleKeyingInterfaceImpl< BlockCipher, BTEA_Info >, BTEA_Info >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, MARS_Info > > >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SHACAL2_Info > > >, AlgorithmImpl< IteratedHash< word32, LittleEndian, T_BlockSize >, RIPEMD320 >, AlgorithmImpl< IteratedHash< word64, BigEndian, T_BlockSize >, Whirlpool >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Rijndael_Info > > >, AlgorithmImpl< SimpleKeyingInterfaceImpl< CBC_MAC_Base, CBC_MAC< T > >, CBC_MAC< T > >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SKIPJACK_Info > > >, AlgorithmImpl< TF_SignerBase, SCHEME_OPTIONS::AlgorithmInfo >, AlgorithmImpl< TF_DecryptorBase, SCHEME_OPTIONS::AlgorithmInfo >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, RC2_Info > > >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Twofish_Info > > >, AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_Info > > >, SHA3, CRC32, GCM_Base, VMAC_Base, CCM_Base, Adler32, and EAX_Base.
Definition at line 518 of file cryptlib.h.