7#include <botan/sodium.h>
16 sha512->update(in, in_len);
23 sha256->update(in, in_len);
31 mac->update(in, in_len);
39 mac->update(in, in_len);
47 const uint8_t key[]) {
56 mac->update(in, in_len);
70 mac->update(in, in_len);
82 const uint8_t key[]) {
91 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)