10#ifndef TOR_COMPAT_BLAKE2_H
11#define TOR_COMPAT_BLAKE2_H
16#include "ext/equix/hashx/src/blake2.h"
21 return hashx_blake2b_init_param(S, P);
28 memset(&P, 0,
sizeof P);
29 P.digest_length = digest_length;
32 return blake2b_init_param(S, &P);
36blake2b_update(
blake2b_state *S,
const uint8_t *in, uint64_t inlen)
38 return hashx_blake2b_update(S, in, inlen);
44 return hashx_blake2b_final(S, out, outlen);
Utility macros to handle different features and behavior in different compilers.