Botan 3.9.0
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:
#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().