FD.io VPP  v21.01.1
Vector Packet Processing
blake2s.h File Reference
+ Include dependency graph for blake2s.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  blake2s_state
 

Macros

#define BLAKE2_PACKED(x)   x __attribute__((packed))
 

Typedefs

typedef struct blake2s_state blake2s_state_t
 
typedef struct blake2s_param blake2s_param_t
 

Enumerations

enum  blake2s_constant {
  BLAKE2S_BLOCK_BYTES = 64, BLAKE2S_OUT_BYTES = 32, BLAKE2S_KEY_BYTES = 32, BLAKE2S_HASH_SIZE = BLAKE2S_OUT_BYTES,
  BLAKE2S_SALT_BYTES = 8, BLAKE2S_PERSONAL_BYTES = 8
}
 

Functions

 BLAKE2_PACKED (struct blake2s_param { uint8_t digest_length;uint8_t key_length;uint8_t fanout;uint8_t depth;uint32_t leaf_length;uint32_t node_offset;uint16_t xof_length;uint8_t node_depth;uint8_t inner_length;uint8_t salt[BLAKE2S_SALT_BYTES];uint8_t personal[BLAKE2S_PERSONAL_BYTES];})
 
int blake2s_init (blake2s_state_t *S, size_t outlen)
 
int blake2s_init_key (blake2s_state_t *S, size_t outlen, const void *key, size_t keylen)
 
int blake2s_init_param (blake2s_state_t *S, const blake2s_param_t *P)
 
int blake2s_update (blake2s_state_t *S, const void *in, size_t inlen)
 
int blake2s_final (blake2s_state_t *S, void *out, size_t outlen)
 
int blake2s (void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keylen)
 

Macro Definition Documentation

◆ BLAKE2_PACKED

#define BLAKE2_PACKED (   x)    x __attribute__((packed))

Definition at line 29 of file blake2s.h.

Typedef Documentation

◆ blake2s_param_t

typedef struct blake2s_param blake2s_param_t

Definition at line 69 of file blake2s.h.

◆ blake2s_state_t

Enumeration Type Documentation

◆ blake2s_constant

Enumerator
BLAKE2S_BLOCK_BYTES 
BLAKE2S_OUT_BYTES 
BLAKE2S_KEY_BYTES 
BLAKE2S_HASH_SIZE 
BLAKE2S_SALT_BYTES 
BLAKE2S_PERSONAL_BYTES 

Definition at line 32 of file blake2s.h.

Function Documentation

◆ BLAKE2_PACKED()

BLAKE2_PACKED ( struct blake2s_param { uint8_t digest_length;uint8_t key_length;uint8_t fanout;uint8_t depth;uint32_t leaf_length;uint32_t node_offset;uint16_t xof_length;uint8_t node_depth;uint8_t inner_length;uint8_t salt[BLAKE2S_SALT_BYTES];uint8_t personal[BLAKE2S_PERSONAL_BYTES];}  )

◆ blake2s()

int blake2s ( void *  out,
size_t  outlen,
const void *  in,
size_t  inlen,
const void *  key,
size_t  keylen 
)

Definition at line 292 of file blake2s.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ blake2s_final()

int blake2s_final ( blake2s_state_t S,
void *  out,
size_t  outlen 
)

Definition at line 267 of file blake2s.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ blake2s_init()

int blake2s_init ( blake2s_state_t S,
size_t  outlen 
)

Definition at line 105 of file blake2s.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ blake2s_init_key()

int blake2s_init_key ( blake2s_state_t S,
size_t  outlen,
const void *  key,
size_t  keylen 
)

Definition at line 129 of file blake2s.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ blake2s_init_param()

int blake2s_init_param ( blake2s_state_t S,
const blake2s_param_t P 
)

Definition at line 87 of file blake2s.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ blake2s_update()

int blake2s_update ( blake2s_state_t S,
const void *  in,
size_t  inlen 
)

Definition at line 237 of file blake2s.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: