7#include <botan/sodium.h>
11#include <botan/mem_ops.h>
17 sha512->update(in, in_len);
24 sha256->update(in, in_len);
32 mac->update(in, in_len);
40 mac->update(in, in_len);
48 const uint8_t key[]) {
57 mac->update(in, in_len);
71 mac->update(in, in_len);
83 const uint8_t key[]) {
92 mac->update(in, in_len);
static std::unique_ptr< HashFunction > create_or_throw(std::string_view algo_spec, std::string_view provider="")
static std::unique_ptr< MessageAuthenticationCode > create_or_throw(std::string_view algo_spec, std::string_view provider="")
int crypto_hash_sha256(uint8_t out[], const uint8_t in[], size_t in_len)
int crypto_verify_32(const uint8_t x[32], const uint8_t y[32])
int crypto_auth_hmacsha512(uint8_t out[], const uint8_t in[], size_t in_len, const uint8_t key[])
int crypto_verify_16(const uint8_t x[16], const uint8_t y[16])
int crypto_shorthash_siphash24(uint8_t out[8], const uint8_t in[], size_t in_len, const uint8_t key[16])
@ crypto_auth_hmacsha256_KEYBYTES
@ crypto_auth_hmacsha256_BYTES
@ crypto_shorthash_siphash24_KEYBYTES
@ crypto_onetimeauth_poly1305_KEYBYTES
@ crypto_auth_hmacsha512_BYTES
@ crypto_onetimeauth_poly1305_BYTES
@ crypto_auth_hmacsha512256_KEYBYTES
@ crypto_auth_hmacsha512_KEYBYTES
@ crypto_auth_hmacsha512256_BYTES
int crypto_hash_sha512(uint8_t out[64], const uint8_t in[], size_t in_len)
int crypto_onetimeauth_poly1305_verify(const uint8_t h[], const uint8_t in[], size_t in_len, const uint8_t key[])
int crypto_verify_64(const uint8_t x[64], const uint8_t y[64])
int crypto_auth_hmacsha512256_verify(const uint8_t h[], const uint8_t in[], size_t in_len, const uint8_t key[])
int crypto_auth_hmacsha256_verify(const uint8_t h[], const uint8_t in[], size_t in_len, const uint8_t key[])
int crypto_onetimeauth_poly1305(uint8_t out[], const uint8_t in[], size_t in_len, const uint8_t key[])
int crypto_auth_hmacsha512256(uint8_t out[], const uint8_t in[], size_t in_len, const uint8_t key[])
int crypto_auth_hmacsha256(uint8_t out[], const uint8_t in[], size_t in_len, const uint8_t key[])
int crypto_auth_hmacsha512_verify(const uint8_t h[], const uint8_t in[], size_t in_len, const uint8_t key[])
std::vector< T, secure_allocator< T > > secure_vector
constexpr void copy_mem(T *out, const T *in, size_t n)