Botan 3.6.1
Crypto and TLS for C&
commoncrypto_hash.cpp File Reference
#include <botan/internal/commoncrypto.h>
#include <botan/hash.h>
#include <botan/internal/stl_util.h>
#include <unordered_map>
#include <CommonCrypto/CommonCrypto.h>

Go to the source code of this file.

Namespaces

namespace  Botan
 

Macros

#define MAKE_COMMONCRYPTO_HASH_1(id)
 
#define MAKE_COMMONCRYPTO_HASH_2(name, id)
 
#define MAKE_COMMONCRYPTO_HASH_3(name, hash, ctx)
 

Functions

std::unique_ptr< HashFunctionBotan::make_commoncrypto_hash (std::string_view name)
 

Macro Definition Documentation

◆ MAKE_COMMONCRYPTO_HASH_1

#define MAKE_COMMONCRYPTO_HASH_1 ( id)
Value:
#define MAKE_COMMONCRYPTO_HASH_2(name, id)

◆ MAKE_COMMONCRYPTO_HASH_2

#define MAKE_COMMONCRYPTO_HASH_2 ( name,
id )
Value:
std::string name
#define MAKE_COMMONCRYPTO_HASH_3(name, hash, ctx)

Referenced by Botan::make_commoncrypto_hash().

◆ MAKE_COMMONCRYPTO_HASH_3

#define MAKE_COMMONCRYPTO_HASH_3 ( name,
hash,
ctx )
Value:
std::unique_ptr<HashFunction>(new CommonCrypto_HashFunction<CC_##ctx##_CTX>({std::string(name), \
CC_##hash##_DIGEST_LENGTH, \
CC_##hash##_BLOCK_BYTES, \
CC_##hash##_Init, \
CC_##hash##_Update, \
CC_##hash##_Final}));

Referenced by Botan::make_commoncrypto_hash().

Variable Documentation

◆ blockSize

size_t blockSize

Definition at line 26 of file commoncrypto_hash.cpp.

Referenced by botan_zfec_decode(), and botan_zfec_encode().

◆ digestLength

size_t digestLength

Definition at line 25 of file commoncrypto_hash.cpp.

◆ final

◆ init

◆ name

std::string name

Definition at line 24 of file commoncrypto_hash.cpp.

Referenced by Botan::Extensions::add(), Botan::OIDS::add_oid(), Botan::OIDS::add_oid2str(), Botan::OIDS::add_oidstr(), Botan::OIDS::add_str2oid(), botan_block_cipher_name(), botan_cipher_name(), botan_hash_name(), botan_mac_name(), botan_rng_init_custom(), Botan::TLS::Certificate_Request_12::Certificate_Request_12(), Botan::Sphincs_Parameters::create(), Botan::DL_Group::DL_group_info(), Botan::AlternativeName::encode_into(), Botan::EC_Group::from_name(), Botan::OID::from_name(), Botan::PCurve::PrimeOrderCurve::from_name(), Botan::TLS::Ciphersuite::from_name(), Botan::PCurve::PrimeOrderCurveId::from_string(), Botan::Encrypted_PSK_Database::get(), Botan::get_aead(), Botan::ieee1363_hash_id(), Botan::NameConstraints::is_excluded(), Botan::NameConstraints::is_permitted(), Botan::OIDS::lookup(), Botan::make_commoncrypto_block_cipher(), Botan::make_commoncrypto_cipher_mode(), Botan::make_commoncrypto_hash(), Botan::X509_Certificate::matches_dns_name(), Botan::OS::page_named(), Botan::parse_algorithm_name(), Botan::pkcs_hash_id(), Botan::OS::read_env_variable(), Botan::OS::read_env_variable_sz(), Botan::OID::register_oid(), Botan::Encrypted_PSK_Database::remove(), Botan::TPM2::rsa_encryption_padding_botan_to_tss2(), Botan::TPM2::rsa_signature_scheme_botan_to_tss2(), Botan::SCAN_Name::SCAN_Name(), Botan::TLS::Certificate_Request_12::serialize(), Botan::Roughtime::servers_from_str(), Botan::Encrypted_PSK_Database::set(), Botan::Keyed_Filter::set_iv(), Botan::PSK_Database::set_vec(), and Botan::OIDS::str2oid_or_empty().

◆ update