Botan 3.5.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)   MAKE_COMMONCRYPTO_HASH_2(#id, id)
 
#define MAKE_COMMONCRYPTO_HASH_2(name, id)   MAKE_COMMONCRYPTO_HASH_3(name, id, 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)    MAKE_COMMONCRYPTO_HASH_2(#id, id)

◆ MAKE_COMMONCRYPTO_HASH_2

#define MAKE_COMMONCRYPTO_HASH_2 ( name,
id )   MAKE_COMMONCRYPTO_HASH_3(name, id, id)

◆ 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}));
std::string name

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

int(* init) (CTX *) ( CTX * )

◆ name

std::string name

◆ update