Tor 0.4.9.8
Loading...
Searching...
No Matches
compat_blake2.h File Reference

Compatibility adapter providing blake2b using ext/equix/hashx. More...

#include <stddef.h>
#include <string.h>
#include "lib/cc/compat_compiler.h"
#include "ext/equix/hashx/src/blake2.h"

Go to the source code of this file.

Functions

static int blake2b_init_param (blake2b_state *S, const blake2b_param *P)
 
static int blake2b_init (blake2b_state *S, const uint8_t digest_length)
 
static int blake2b_update (blake2b_state *S, const uint8_t *in, uint64_t inlen)
 
static int blake2b_final (blake2b_state *S, uint8_t *out, uint8_t outlen)
 

Detailed Description

Compatibility adapter providing blake2b using ext/equix/hashx.

Definition in file compat_blake2.h.

Function Documentation

◆ blake2b_final()

static int blake2b_final ( blake2b_state * S,
uint8_t * out,
uint8_t outlen )
inlinestatic

Definition at line 42 of file compat_blake2.h.

◆ blake2b_init()

static int blake2b_init ( blake2b_state * S,
const uint8_t digest_length )
inlinestatic

Definition at line 25 of file compat_blake2.h.

◆ blake2b_init_param()

static int blake2b_init_param ( blake2b_state * S,
const blake2b_param * P )
inlinestatic

Definition at line 19 of file compat_blake2.h.

◆ blake2b_update()

static int blake2b_update ( blake2b_state * S,
const uint8_t * in,
uint64_t inlen )
inlinestatic

Definition at line 36 of file compat_blake2.h.