6 #ifndef CRYPTOPP_DEFAULT_H 7 #define CRYPTOPP_DEFAULT_H 39 : Exception(DATA_INTEGRITY_CHECK_FAILED, s) {}
47 :
DataDecryptorErr(
"DataDecryptor: cannot decrypt message with this passphrase") {}
60 template <
unsigned int BlockSize,
unsigned int KeyLength,
unsigned int DigestSize,
unsigned int SaltSize,
unsigned int Iterations>
82 template <
class BC,
class H,
class Info>
104 void FirstPut(
const byte *);
105 void LastPut(
const byte *inString,
size_t length);
121 template <
class BC,
class H,
class Info>
148 void FirstPut(
const byte *inString);
149 void LastPut(
const byte *inString,
size_t length);
154 void CheckKey(
const byte *salt,
const byte *keyCheck);
179 template <
class BC,
class H,
class MAC,
class Info>
196 void LastPut(
const byte *inString,
size_t length);
219 template <
class BC,
class H,
class MAC,
class Info>
237 bool CheckLastMAC()
const;
241 void LastPut(
const byte *inString,
size_t length);
249 #if defined(CRYPTOPP_DOXYGEN_PROCESSING) Base class for all exceptions thrown by the library.
DataParametersInfo< LegacyBlockCipher::BLOCKSIZE, LegacyBlockCipher::DEFAULT_KEYLENGTH, LegacyHashModule::DIGESTSIZE, 8, 200 > LegacyParametersInfo
Exception thrown when a bad key is encountered in DefaultDecryptorWithMAC and LegacyDecryptorWithMAC...
DataEncryptor< LegacyBlockCipher, LegacyHashModule, LegacyParametersInfo > LegacyEncryptor
Base class for Filter classes that are proxies for a chain of other filters.
DataEncryptorWithMAC< LegacyBlockCipher, LegacyHashModule, DefaultMAC, LegacyParametersInfo > LegacyEncryptorWithMAC
void FirstPut(const byte *inString)
HashVerificationFilter * m_hashVerifier
Class file for modes of operation.
CBC_Mode< BC >::Decryption m_cipher
#define NAMESPACE_BEGIN(x)
Password-based Encryptor.
Password-based Decryptor.
Classes for automatic resource management.
void FirstPut(const byte *inString)
DataEncryptorWithMAC< DefaultBlockCipher, DefaultHashModule, DefaultMAC, DefaultParametersInfo > DefaultEncryptorWithMAC
DataEncryptor< DefaultBlockCipher, DefaultHashModule, DefaultParametersInfo > DefaultEncryptor
DataDecryptorWithMAC< LegacyBlockCipher, LegacyHashModule, DefaultMAC, LegacyParametersInfo > LegacyDecryptorWithMAC
State CurrentState() const
Classes for HMAC message authentication codes.
Filter wrapper for HashTransformation.
Password-based encryptor with MAC.
Class file for the AES cipher (Rijndael)
SecByteBlock m_passphrase
2-key TripleDES block cipher
DataDecryptor< LegacyBlockCipher, LegacyHashModule, LegacyParametersInfo > LegacyDecryptor
member_ptr< FilterWithBufferedInput > m_decryptor
Exception thrown when LegacyDecryptorWithMAC or DefaultDecryptorWithMAC decryption error is encounter...
#define CRYPTOPP_CONSTANT(x)
DataDecryptorWithMAC< DefaultBlockCipher, DefaultHashModule, DefaultMAC, DefaultParametersInfo > DefaultDecryptorWithMAC
AES block cipher (Rijndael)
Algorithm information for password-based encryptors and decryptors.
CBC_Mode< BC >::Encryption m_cipher
Classes for DES, 2-key Triple-DES, 3-key Triple-DES and DESX.
Classes for SHA-1 and SHA-2 family of message digests.
DataParametersInfo< DefaultBlockCipher::BLOCKSIZE, DefaultBlockCipher::DEFAULT_KEYLENGTH, DefaultHashModule::DIGESTSIZE, 8, 2500 > DefaultParametersInfo
Implementation of BufferedTransformation's attachment interface.
DataDecryptorErr(const std::string &s)
#define CRYPTOPP_UNUSED(x)
SecByteBlock m_passphrase
Password-based decryptor with MAC.
DataDecryptor< DefaultBlockCipher, DefaultHashModule, DefaultParametersInfo > DefaultDecryptor
Exception thrown when an incorrect MAC is encountered in DefaultDecryptorWithMAC and LegacyDecryptorW...