6 #ifndef CRYPTOPP_DEFAULT_H 7 #define CRYPTOPP_DEFAULT_H 44 void FirstPut(
const byte *);
45 void LastPut(
const byte *inString,
size_t length);
51 #if (CRYPTOPP_GCC_VERSION >= 40300) || (CRYPTOPP_CLANG_VERSION >= 20800) 52 } __attribute__((deprecated (
"DefaultEncryptor will be changing in the near future because the algorithms are no longer secure")));
53 #elif (CRYPTOPP_GCC_VERSION) 54 } __attribute__((deprecated));
82 Err(
const std::string &s)
87 enum State {WAITING_FOR_KEYCHECK, KEY_GOOD, KEY_BAD};
88 State CurrentState()
const {
return m_state;}
91 void FirstPut(
const byte *inString);
92 void LastPut(
const byte *inString,
size_t length);
97 void CheckKey(
const byte *salt,
const byte *keyCheck);
102 bool m_throwException;
104 #if (CRYPTOPP_GCC_VERSION >= 40300) || (CRYPTOPP_CLANG_VERSION >= 20800) 105 } __attribute__((deprecated (
"DefaultDecryptor will be changing in the near future because the algorithms are no longer secure")));
106 #elif (CRYPTOPP_GCC_VERSION) 107 } __attribute__((deprecated));
136 void FirstPut(
const byte *inString) {CRYPTOPP_UNUSED(inString);}
137 void LastPut(
const byte *inString,
size_t length);
142 #if (CRYPTOPP_GCC_VERSION >= 40300) || (CRYPTOPP_CLANG_VERSION >= 20800) 143 } __attribute__((deprecated (
"DefaultEncryptorWithMAC will be changing in the near future because the algorithms are no longer secure")));
144 #elif (CRYPTOPP_GCC_VERSION) 145 } __attribute__((deprecated));
179 DefaultDecryptor::State CurrentState()
const;
180 bool CheckLastMAC()
const;
183 void FirstPut(
const byte *inString) {CRYPTOPP_UNUSED(inString);}
184 void LastPut(
const byte *inString,
size_t length);
189 bool m_throwException;
191 #if (CRYPTOPP_GCC_VERSION >= 40300) || (CRYPTOPP_CLANG_VERSION >= 20800) 192 } __attribute__((deprecated (
"DefaultDecryptorWithMAC will be changing in the near future because the algorithms are no longer secure")));
193 #elif (CRYPTOPP_GCC_VERSION) 194 } __attribute__((deprecated));
Base class for all exceptions thrown by Crypto++.
Base class for Filter classes that are proxies for a chain of other filters.
Password-Based Encryptor using TripleDES.
Class file for modes of operation.
Exception(ErrorType errorType, const std::string &s)
Construct a new Exception.
Classes for automatic resource management.
SecByteBlock is a SecBlock<byte> typedef.
Excpetion thrown when an incorrect MAC is encountered.
Data integerity check, such as CRC or MAC, failed.
Password-Based Decryptor using TripleDES.
DefaultDecryptor(const char *passphrase, BufferedTransformation *attachment=NULL, bool throwException=true)
Constructs a DefaultDecryptor.
Classes for HMAC message authentication codes.
Filter Wrapper for HashTransformation.
Password-Based encryptor using TripleDES and HMAC/SHA-1.
Classes for DES, 2-key Triple-DES, 3-key Triple-DES and DESX.
Classes for SHA-1 and SHA-2 family of message digests.
Implementation of BufferedTransformation's attachment interface in cryptlib.h.
Password-Based decryptor using TripleDES and HMAC/SHA-1.
Crypto++ library namespace.