8 #ifndef BOTAN_INTERNAL_COMMONCRYPTO_H_
9 #define BOTAN_INTERNAL_COMMONCRYPTO_H_
11 #include <botan/pk_ops_fwd.h>
12 #include <botan/secmem.h>
13 #include <botan/exceptn.h>
23 typedef int32_t CCCryptorStatus;
33 Exception(what +
std::string(
" failed. Status: ") + ccryptorstatus_to_string(status)),
38 int error_code() const noexcept
override {
return m_rc; }
41 std::string ccryptorstatus_to_string(CCCryptorStatus status);
53 std::unique_ptr<BlockCipher>
int error_code() const noexceptoverride
std::unique_ptr< BlockCipher > make_commoncrypto_block_cipher(const std::string &name)
int(* final)(unsigned char *, CTX *)
#define BOTAN_PUBLIC_API(maj, min)
CommonCrypto_Error(const std::string &what, int32_t status)
ErrorType error_type() const noexceptoverride
std::unique_ptr< HashFunction > make_commoncrypto_hash(const std::string &name)
CommonCrypto_Error(const std::string &what)
Cipher_Mode * make_commoncrypto_cipher_mode(const std::string &name, Cipher_Dir direction)