Security Scol plugin
|
Interface for algorithms that take byte strings as keys. More...
#include <cryptlib.h>
Public Types | |
enum | IV_Requirement { UNIQUE_IV = 0 , RANDOM_IV , UNPREDICTABLE_RANDOM_IV , INTERNALLY_GENERATED_IV , NOT_RESYNCHRONIZABLE } |
Secure IVs requirements as enumerated values. More... | |
Public Member Functions | |
virtual size_t | MinKeyLength () const =0 |
Returns smallest valid key length. | |
virtual size_t | MaxKeyLength () const =0 |
Returns largest valid key length. | |
virtual size_t | DefaultKeyLength () const =0 |
Returns default key length. | |
virtual size_t | GetValidKeyLength (size_t keylength) const =0 |
Returns a valid key length for the algorithm. | |
virtual bool | IsValidKeyLength (size_t keylength) const |
Returns whether keylength is a valid key length. | |
virtual void | SetKey (const byte *key, size_t length, const NameValuePairs ¶ms=g_nullNameValuePairs) |
Sets or reset the key of this object. | |
void | SetKeyWithRounds (const byte *key, size_t length, int rounds) |
Sets or reset the key of this object. | |
void | SetKeyWithIV (const byte *key, size_t length, const byte *iv, size_t ivLength) |
Sets or reset the key of this object. | |
void | SetKeyWithIV (const byte *key, size_t length, const byte *iv) |
Sets or reset the key of this object. | |
virtual IV_Requirement | IVRequirement () const =0 |
Minimal requirement for secure IVs. | |
bool | IsResynchronizable () const |
Determines if the object can be resynchronized. | |
bool | CanUseRandomIVs () const |
Determines if the object can use random IVs. | |
bool | CanUsePredictableIVs () const |
Determines if the object can use random but possibly predictable IVs. | |
bool | CanUseStructuredIVs () const |
Determines if the object can use structured IVs. | |
virtual unsigned int | IVSize () const |
Returns length of the IV accepted by this object. | |
unsigned int | DefaultIVLength () const |
Provides the default size of an IV. | |
virtual unsigned int | MinIVLength () const |
Provides the minimum size of an IV. | |
virtual unsigned int | MaxIVLength () const |
Provides the maximum size of an IV. | |
virtual void | Resynchronize (const byte *iv, int ivLength=-1) |
Resynchronize with an IV. | |
virtual void | GetNextIV (RandomNumberGenerator &rng, byte *iv) |
Retrieves a secure IV for the next message. | |
Protected Member Functions | |
virtual const Algorithm & | GetAlgorithm () const =0 |
Returns the base class Algorithm. | |
virtual void | UncheckedSetKey (const byte *key, unsigned int length, const NameValuePairs ¶ms)=0 |
Sets the key for this object without performing parameter validation. | |
void | ThrowIfInvalidKeyLength (size_t length) |
Validates the key length. | |
void | ThrowIfResynchronizable () |
Validates the object. | |
void | ThrowIfInvalidIV (const byte *iv) |
Validates the IV. | |
size_t | ThrowIfInvalidIVLength (int length) |
Validates the IV length. | |
const byte * | GetIVAndThrowIfInvalid (const NameValuePairs ¶ms, size_t &size) |
Retrieves and validates the IV. | |
void | AssertValidKeyLength (size_t length) const |
Validates the key length. | |
Interface for algorithms that take byte strings as keys.
Definition at line 641 of file cryptlib.h.
Secure IVs requirements as enumerated values.
Provides secure IV requirements as a monotonically increasing enumerated values. Requirements can be compared using less than (<) and greater than (>). For example, UNIQUE_IV < RANDOM_IV
and UNPREDICTABLE_RANDOM_IV > RANDOM_IV
.
Objects that use SimpleKeyingInterface do not support an optional IV. That is, an IV must be present or it must be absent. If you wish to support an optional IV then provide two classes - one with an IV and one without an IV.
Definition at line 719 of file cryptlib.h.
|
inlinevirtual |
Definition at line 644 of file cryptlib.h.
|
inlineprotected |
Validates the key length.
length | the size of the keying material, in bytes |
Definition at line 846 of file cryptlib.h.
|
inline |
Determines if the object can use random but possibly predictable IVs.
Definition at line 749 of file cryptlib.h.
|
inline |
Determines if the object can use random IVs.
Definition at line 744 of file cryptlib.h.
|
inline |
Determines if the object can use structured IVs.
CanUseStructuredIVs() indicates whether the object can use structured IVs; for example a counter (in addition to ones returned by GetNextIV).
Definition at line 755 of file cryptlib.h.
|
inline |
Provides the default size of an IV.
Definition at line 766 of file cryptlib.h.
|
pure virtual |
Returns default key length.
Implemented in CCM_Base, ChaCha20Poly1305_Base, XChaCha20Poly1305_Base, EAX_Base, GCM_Base, CipherModeBase, SimpleKeyingInterfaceImpl< BlockCipher, BTEA_Info >, SimpleKeyingInterfaceImpl< CBC_MAC_Base, CBC_MAC< T > >, SimpleKeyingInterfaceImpl< CMAC_Base, CMAC< T > >, SimpleKeyingInterfaceImpl< CMAC_Base, CMAC< T_BlockCipher > >, SimpleKeyingInterfaceImpl< DMAC_Base< T >, DMAC_Base< T > >, SimpleKeyingInterfaceImpl< HMAC_Base, HMAC< H > >, SimpleKeyingInterfaceImpl< HMAC_Base, HMAC< SHA256 > >, SimpleKeyingInterfaceImpl< HMAC_Base, HMAC< T > >, SimpleKeyingInterfaceImpl< MessageAuthenticationCode, BLAKE2b_Info >, SimpleKeyingInterfaceImpl< MessageAuthenticationCode, BLAKE2s_Info >, SimpleKeyingInterfaceImpl< Poly1305_Base< T >, Poly1305_Base< T > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, ARIA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Blowfish_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Camellia_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CAST128_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CAST256_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CHAM128_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CHAM64_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_EDE2_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_EDE3_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_XEX3_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, GOST_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, HIGHT_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, IDEA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, INFO > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Kalyna128_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Kalyna256_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Kalyna512_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, LEA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, LR_Info< T > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, MARS_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, MDC_Info< H > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, RC2_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, RC5_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, RC6_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Rijndael_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SEED_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Serpent_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SHACAL2_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SHARK_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SIMECK32_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SIMECK64_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SIMON_Info< 16, 16, 16, 32 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SIMON_Info< 8, 12, 12, 16 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SKIPJACK_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SM4_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SPECK_Info< 16, 16, 16, 32 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SPECK_Info< 8, 12, 12, 16 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Square_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, TEA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Threefish_Info< 128 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Threefish_Info< 32 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Threefish_Info< 64 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, ThreeWay_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Twofish_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, XTEA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< MessageAuthenticationCode, VariableKeyLength< 32, 0, INT_MAX > > >, SimpleKeyingInterfaceImpl< VMAC_Base, SameKeyLengthAs< T_BlockCipher, SimpleKeyingInterface::UNIQUE_IV, T_BlockCipher::BLOCKSIZE > >, SipHash_Base< C, D, T_128bit >, SipHash_Base< 2, 4, false >, and XTS_ModeBase.
|
protectedpure virtual |
Returns the base class Algorithm.
Implemented in BlockCipher, SymmetricCipher, MessageAuthenticationCode, and AuthenticatedSymmetricCipher.
|
protected |
Retrieves and validates the IV.
params | NameValuePairs with the IV supplied as a ConstByteArrayParameter |
size | the length of the IV, in bytes |
InvalidArgument | if the number of rounds are invalid |
Definition at line 107 of file cryptlib.cpp.
|
virtual |
Retrieves a secure IV for the next message.
rng | a RandomNumberGenerator to produce keying material |
iv | a block of bytes to receive the IV |
The IV must be at least IVSize() in length.
This method should be called after you finish encrypting one message and are ready to start the next one. After calling it, you must call SetKey() or Resynchronize(). before using this object again.
Internally, the base class implementation calls RandomNumberGenerator's GenerateBlock()
Reimplemented in Poly1305_Base< T >, and VMAC_Base.
Definition at line 136 of file cryptlib.cpp.
|
pure virtual |
Returns a valid key length for the algorithm.
keylength | the size of the key, in bytes |
keylength is provided in bytes, not bits. If keylength is less than MIN_KEYLENGTH, then the function returns MIN_KEYLENGTH. If keylength is greater than MAX_KEYLENGTH, then the function returns MAX_KEYLENGTH. if If keylength is a multiple of KEYLENGTH_MULTIPLE, then keylength is returned. Otherwise, the function returns a lower multiple of KEYLENGTH_MULTIPLE.
Implemented in CCM_Base, CipherModeBase, SimpleKeyingInterfaceImpl< BlockCipher, BTEA_Info >, SimpleKeyingInterfaceImpl< CBC_MAC_Base, CBC_MAC< T > >, SimpleKeyingInterfaceImpl< CMAC_Base, CMAC< T > >, SimpleKeyingInterfaceImpl< CMAC_Base, CMAC< T_BlockCipher > >, SimpleKeyingInterfaceImpl< DMAC_Base< T >, DMAC_Base< T > >, SimpleKeyingInterfaceImpl< HMAC_Base, HMAC< H > >, SimpleKeyingInterfaceImpl< HMAC_Base, HMAC< SHA256 > >, SimpleKeyingInterfaceImpl< HMAC_Base, HMAC< T > >, SimpleKeyingInterfaceImpl< MessageAuthenticationCode, BLAKE2b_Info >, SimpleKeyingInterfaceImpl< MessageAuthenticationCode, BLAKE2s_Info >, SimpleKeyingInterfaceImpl< Poly1305_Base< T >, Poly1305_Base< T > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, ARIA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Blowfish_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Camellia_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CAST128_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CAST256_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CHAM128_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CHAM64_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_EDE2_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_EDE3_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_XEX3_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, GOST_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, HIGHT_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, IDEA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, INFO > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Kalyna128_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Kalyna256_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Kalyna512_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, LEA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, LR_Info< T > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, MARS_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, MDC_Info< H > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, RC2_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, RC5_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, RC6_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Rijndael_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SEED_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Serpent_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SHACAL2_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SHARK_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SIMECK32_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SIMECK64_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SIMON_Info< 16, 16, 16, 32 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SIMON_Info< 8, 12, 12, 16 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SKIPJACK_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SM4_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SPECK_Info< 16, 16, 16, 32 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SPECK_Info< 8, 12, 12, 16 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Square_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, TEA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Threefish_Info< 128 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Threefish_Info< 32 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Threefish_Info< 64 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, ThreeWay_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Twofish_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, XTEA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< MessageAuthenticationCode, VariableKeyLength< 32, 0, INT_MAX > > >, SimpleKeyingInterfaceImpl< VMAC_Base, SameKeyLengthAs< T_BlockCipher, SimpleKeyingInterface::UNIQUE_IV, T_BlockCipher::BLOCKSIZE > >, SipHash_Base< C, D, T_128bit >, SipHash_Base< 2, 4, false >, ChaCha20Poly1305_Base, XChaCha20Poly1305_Base, EAX_Base, GCM_Base, and XTS_ModeBase.
|
inline |
Determines if the object can be resynchronized.
CanUseStructuredIVs()==true
, an IV of all 0's will be assumed. Definition at line 740 of file cryptlib.h.
|
inlinevirtual |
Returns whether keylength is a valid key length.
keylength | the requested keylength |
Internally the function calls GetValidKeyLength()
Reimplemented in CCM_Base, CipherModeBase, XTS_ModeBase, ChaCha20Poly1305_Base, XChaCha20Poly1305_Base, EAX_Base, and GCM_Base.
Definition at line 672 of file cryptlib.h.
|
pure virtual |
Minimal requirement for secure IVs.
Implemented in CCM_Base, ChaCha20Poly1305_Base, XChaCha20Poly1305_Base, EAX_Base, GCM_Base, CFB_ModePolicy, OFB_ModePolicy, CTR_ModePolicy, ECB_OneWay, CBC_ModeBase, SimpleKeyingInterfaceImpl< BlockCipher, BTEA_Info >, SimpleKeyingInterfaceImpl< CBC_MAC_Base, CBC_MAC< T > >, SimpleKeyingInterfaceImpl< CMAC_Base, CMAC< T > >, SimpleKeyingInterfaceImpl< CMAC_Base, CMAC< T_BlockCipher > >, SimpleKeyingInterfaceImpl< DMAC_Base< T >, DMAC_Base< T > >, SimpleKeyingInterfaceImpl< HMAC_Base, HMAC< H > >, SimpleKeyingInterfaceImpl< HMAC_Base, HMAC< SHA256 > >, SimpleKeyingInterfaceImpl< HMAC_Base, HMAC< T > >, SimpleKeyingInterfaceImpl< MessageAuthenticationCode, BLAKE2b_Info >, SimpleKeyingInterfaceImpl< MessageAuthenticationCode, BLAKE2s_Info >, SimpleKeyingInterfaceImpl< Poly1305_Base< T >, Poly1305_Base< T > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, ARIA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Blowfish_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Camellia_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CAST128_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CAST256_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CHAM128_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CHAM64_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_EDE2_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_EDE3_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_XEX3_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, GOST_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, HIGHT_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, IDEA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, INFO > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Kalyna128_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Kalyna256_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Kalyna512_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, LEA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, LR_Info< T > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, MARS_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, MDC_Info< H > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, RC2_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, RC5_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, RC6_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Rijndael_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SEED_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Serpent_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SHACAL2_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SHARK_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SIMECK32_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SIMECK64_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SIMON_Info< 16, 16, 16, 32 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SIMON_Info< 8, 12, 12, 16 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SKIPJACK_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SM4_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SPECK_Info< 16, 16, 16, 32 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SPECK_Info< 8, 12, 12, 16 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Square_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, TEA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Threefish_Info< 128 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Threefish_Info< 32 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Threefish_Info< 64 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, ThreeWay_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Twofish_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, XTEA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< MessageAuthenticationCode, VariableKeyLength< 32, 0, INT_MAX > > >, SimpleKeyingInterfaceImpl< VMAC_Base, SameKeyLengthAs< T_BlockCipher, SimpleKeyingInterface::UNIQUE_IV, T_BlockCipher::BLOCKSIZE > >, SipHash_Base< C, D, T_128bit >, SipHash_Base< 2, 4, false >, XTS_ModeBase, and CipherModeBase.
|
inlinevirtual |
Returns length of the IV accepted by this object.
NotImplemented() | if the object does not support resynchronization |
The default implementation throws NotImplemented
Reimplemented in CCM_Base, ChaCha20Poly1305_Base, XChaCha20Poly1305_Base, EAX_Base, GCM_Base, CipherModeBase, SimpleKeyingInterfaceImpl< BlockCipher, BTEA_Info >, SimpleKeyingInterfaceImpl< CBC_MAC_Base, CBC_MAC< T > >, SimpleKeyingInterfaceImpl< CMAC_Base, CMAC< T > >, SimpleKeyingInterfaceImpl< CMAC_Base, CMAC< T_BlockCipher > >, SimpleKeyingInterfaceImpl< DMAC_Base< T >, DMAC_Base< T > >, SimpleKeyingInterfaceImpl< HMAC_Base, HMAC< H > >, SimpleKeyingInterfaceImpl< HMAC_Base, HMAC< SHA256 > >, SimpleKeyingInterfaceImpl< HMAC_Base, HMAC< T > >, SimpleKeyingInterfaceImpl< MessageAuthenticationCode, BLAKE2b_Info >, SimpleKeyingInterfaceImpl< MessageAuthenticationCode, BLAKE2s_Info >, SimpleKeyingInterfaceImpl< Poly1305_Base< T >, Poly1305_Base< T > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, ARIA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Blowfish_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Camellia_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CAST128_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CAST256_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CHAM128_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CHAM64_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_EDE2_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_EDE3_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_XEX3_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, GOST_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, HIGHT_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, IDEA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, INFO > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Kalyna128_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Kalyna256_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Kalyna512_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, LEA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, LR_Info< T > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, MARS_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, MDC_Info< H > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, RC2_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, RC5_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, RC6_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Rijndael_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SEED_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Serpent_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SHACAL2_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SHARK_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SIMECK32_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SIMECK64_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SIMON_Info< 16, 16, 16, 32 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SIMON_Info< 8, 12, 12, 16 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SKIPJACK_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SM4_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SPECK_Info< 16, 16, 16, 32 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SPECK_Info< 8, 12, 12, 16 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Square_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, TEA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Threefish_Info< 128 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Threefish_Info< 32 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Threefish_Info< 64 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, ThreeWay_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Twofish_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, XTEA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< MessageAuthenticationCode, VariableKeyLength< 32, 0, INT_MAX > > >, SimpleKeyingInterfaceImpl< VMAC_Base, SameKeyLengthAs< T_BlockCipher, SimpleKeyingInterface::UNIQUE_IV, T_BlockCipher::BLOCKSIZE > >, SipHash_Base< C, D, T_128bit >, SipHash_Base< 2, 4, false >, and VMAC_Base.
Definition at line 761 of file cryptlib.h.
|
inlinevirtual |
Provides the maximum size of an IV.
NotImplemented() | if the object does not support resynchronization |
Reimplemented in CCM_Base, ChaCha20Poly1305_Base, XChaCha20Poly1305_Base, EAX_Base, and GCM_Base.
Definition at line 776 of file cryptlib.h.
|
pure virtual |
Returns largest valid key length.
Implemented in CCM_Base, ChaCha20Poly1305_Base, XChaCha20Poly1305_Base, EAX_Base, GCM_Base, CipherModeBase, SimpleKeyingInterfaceImpl< BlockCipher, BTEA_Info >, SimpleKeyingInterfaceImpl< CBC_MAC_Base, CBC_MAC< T > >, SimpleKeyingInterfaceImpl< CMAC_Base, CMAC< T > >, SimpleKeyingInterfaceImpl< CMAC_Base, CMAC< T_BlockCipher > >, SimpleKeyingInterfaceImpl< DMAC_Base< T >, DMAC_Base< T > >, SimpleKeyingInterfaceImpl< HMAC_Base, HMAC< H > >, SimpleKeyingInterfaceImpl< HMAC_Base, HMAC< SHA256 > >, SimpleKeyingInterfaceImpl< HMAC_Base, HMAC< T > >, SimpleKeyingInterfaceImpl< MessageAuthenticationCode, BLAKE2b_Info >, SimpleKeyingInterfaceImpl< MessageAuthenticationCode, BLAKE2s_Info >, SimpleKeyingInterfaceImpl< Poly1305_Base< T >, Poly1305_Base< T > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, ARIA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Blowfish_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Camellia_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CAST128_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CAST256_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CHAM128_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CHAM64_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_EDE2_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_EDE3_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_XEX3_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, GOST_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, HIGHT_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, IDEA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, INFO > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Kalyna128_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Kalyna256_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Kalyna512_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, LEA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, LR_Info< T > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, MARS_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, MDC_Info< H > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, RC2_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, RC5_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, RC6_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Rijndael_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SEED_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Serpent_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SHACAL2_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SHARK_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SIMECK32_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SIMECK64_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SIMON_Info< 16, 16, 16, 32 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SIMON_Info< 8, 12, 12, 16 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SKIPJACK_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SM4_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SPECK_Info< 16, 16, 16, 32 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SPECK_Info< 8, 12, 12, 16 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Square_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, TEA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Threefish_Info< 128 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Threefish_Info< 32 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Threefish_Info< 64 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, ThreeWay_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Twofish_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, XTEA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< MessageAuthenticationCode, VariableKeyLength< 32, 0, INT_MAX > > >, SimpleKeyingInterfaceImpl< VMAC_Base, SameKeyLengthAs< T_BlockCipher, SimpleKeyingInterface::UNIQUE_IV, T_BlockCipher::BLOCKSIZE > >, SipHash_Base< C, D, T_128bit >, SipHash_Base< 2, 4, false >, and XTS_ModeBase.
|
inlinevirtual |
Provides the minimum size of an IV.
NotImplemented() | if the object does not support resynchronization |
Reimplemented in CCM_Base, ChaCha20Poly1305_Base, XChaCha20Poly1305_Base, EAX_Base, GCM_Base, and VMAC_Base.
Definition at line 771 of file cryptlib.h.
|
pure virtual |
Returns smallest valid key length.
Implemented in CCM_Base, ChaCha20Poly1305_Base, XChaCha20Poly1305_Base, EAX_Base, GCM_Base, CipherModeBase, SimpleKeyingInterfaceImpl< BlockCipher, BTEA_Info >, SimpleKeyingInterfaceImpl< CBC_MAC_Base, CBC_MAC< T > >, SimpleKeyingInterfaceImpl< CMAC_Base, CMAC< T > >, SimpleKeyingInterfaceImpl< CMAC_Base, CMAC< T_BlockCipher > >, SimpleKeyingInterfaceImpl< DMAC_Base< T >, DMAC_Base< T > >, SimpleKeyingInterfaceImpl< HMAC_Base, HMAC< H > >, SimpleKeyingInterfaceImpl< HMAC_Base, HMAC< SHA256 > >, SimpleKeyingInterfaceImpl< HMAC_Base, HMAC< T > >, SimpleKeyingInterfaceImpl< MessageAuthenticationCode, BLAKE2b_Info >, SimpleKeyingInterfaceImpl< MessageAuthenticationCode, BLAKE2s_Info >, SimpleKeyingInterfaceImpl< Poly1305_Base< T >, Poly1305_Base< T > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, ARIA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Blowfish_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Camellia_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CAST128_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CAST256_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CHAM128_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, CHAM64_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_EDE2_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_EDE3_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, DES_XEX3_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, GOST_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, HIGHT_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, IDEA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, INFO > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Kalyna128_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Kalyna256_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Kalyna512_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, LEA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, LR_Info< T > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, MARS_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, MDC_Info< H > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, RC2_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, RC5_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, RC6_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Rijndael_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SEED_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Serpent_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SHACAL2_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SHARK_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SIMECK32_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SIMECK64_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SIMON_Info< 16, 16, 16, 32 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SIMON_Info< 8, 12, 12, 16 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SKIPJACK_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SM4_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SPECK_Info< 16, 16, 16, 32 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, SPECK_Info< 8, 12, 12, 16 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Square_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, TEA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Threefish_Info< 128 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Threefish_Info< 32 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Threefish_Info< 64 > > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, ThreeWay_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, Twofish_Info > >, SimpleKeyingInterfaceImpl< TwoBases< BlockCipher, XTEA_Info > >, SimpleKeyingInterfaceImpl< TwoBases< MessageAuthenticationCode, VariableKeyLength< 32, 0, INT_MAX > > >, SimpleKeyingInterfaceImpl< VMAC_Base, SameKeyLengthAs< T_BlockCipher, SimpleKeyingInterface::UNIQUE_IV, T_BlockCipher::BLOCKSIZE > >, SipHash_Base< C, D, T_128bit >, SipHash_Base< 2, 4, false >, and XTS_ModeBase.
|
inlinevirtual |
Resynchronize with an IV.
iv | the initialization vector |
ivLength | the size of the initialization vector, in bytes |
Resynchronize() resynchronizes with an IV provided by the caller. ivLength=-1
means use IVSize().
NotImplemented() | if the object does not support resynchronization |
Reimplemented in Poly1305_Base< T >, XTS_ModeBase, AuthenticatedSymmetricCipherBase, BlockOrientedCipherModeBase, AdditiveCipherTemplate< AbstractPolicyHolder< AdditiveCipherAbstractPolicy, CTR_ModePolicy > >, CFB_CipherTemplate< AbstractPolicyHolder< CFB_CipherAbstractPolicy, SymmetricCipher > >, and VMAC_Base.
Definition at line 783 of file cryptlib.h.
|
virtual |
Sets or reset the key of this object.
key | the key to use when keying the object |
length | the size of the key, in bytes |
params | additional initialization parameters to configure this object |
Reimplemented in ECB_OneWay, XTS_ModeBase, and AuthenticatedSymmetricCipherBase.
Definition at line 58 of file cryptlib.cpp.
|
inline |
Sets or reset the key of this object.
key | the key to use when keying the object |
length | the size of the key, in bytes |
iv | the initialization vector to use when keying the object |
SetKeyWithIV() calls SetKey() with a NameValuePairs() object that only specifies iv. iv is a byte buffer, and it must have a size IVSize().
Definition at line 708 of file cryptlib.h.
void SimpleKeyingInterface::SetKeyWithIV | ( | const byte * | key, |
size_t | length, | ||
const byte * | iv, | ||
size_t | ivLength | ||
) |
Sets or reset the key of this object.
key | the key to use when keying the object |
length | the size of the key, in bytes |
iv | the initialization vector to use when keying the object |
ivLength | the size of the iv, in bytes |
SetKeyWithIV() calls SetKey() with a NameValuePairs that only specifies IV. The IV is a byte buffer with size ivLength. ivLength is an integer parameter, and -1
means use IVSize().
Definition at line 69 of file cryptlib.cpp.
void SimpleKeyingInterface::SetKeyWithRounds | ( | const byte * | key, |
size_t | length, | ||
int | rounds | ||
) |
Sets or reset the key of this object.
key | the key to use when keying the object |
length | the size of the key, in bytes |
rounds | the number of rounds to apply the transformation function, if applicable |
SetKeyWithRounds() calls SetKey() with a NameValuePairs object that only specifies rounds. rounds is an integer parameter, and -1
means use the default number of rounds.
Definition at line 64 of file cryptlib.cpp.
|
protected |
Validates the IV.
iv | the IV with a length of IVSize, in bytes |
InvalidArgument | on failure |
Internally, the default implementation checks the iv. If iv is not NULL or nullptr, then the function succeeds. If iv is NULL, then IVRequirement is checked against UNPREDICTABLE_RANDOM_IV. If IVRequirement is UNPREDICTABLE_RANDOM_IV, then then the function succeeds. Otherwise, an exception is thrown.
Definition at line 86 of file cryptlib.cpp.
|
protected |
Validates the IV length.
length | the size of an IV, in bytes |
InvalidArgument | if the IV length is invalid |
Definition at line 92 of file cryptlib.cpp.
|
protected |
Validates the key length.
length | the size of the keying material, in bytes |
InvalidKeyLength | if the key length is invalid |
Definition at line 74 of file cryptlib.cpp.
|
protected |
Validates the object.
InvalidArgument | if the IV is present |
Internally, the default implementation calls IsResynchronizable() and throws InvalidArgument if the function returns true.
Definition at line 80 of file cryptlib.cpp.
|
protectedpure virtual |
Sets the key for this object without performing parameter validation.
key | a byte buffer used to key the cipher |
length | the length of the byte buffer |
params | additional parameters passed as NameValuePairs |
key must be at least DEFAULT_KEYLENGTH in length.
Implemented in Weak1::ARC4_Base, CBC_MAC_Base, CMAC_Base, DMAC_Base< T >, BlockOrientedCipherModeBase, CBC_CTS_Encryption, Poly1305_Base< T >, Poly1305TLS_Base, SipHash_Base< C, D, T_128bit >, SipHash_Base< 2, 4, false >, HMAC_Base, VMAC_Base, and SAFER::Base.