Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Macros | Typedefs | Enumerations | Functions | Variables
blake2.h File Reference
#include <stddef.h>
#include <stdint.h>
Include dependency graph for blake2.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  __blake2b_param
 

Macros

#define __BLAKE2_H__
 
#define ALIGN(x)   __attribute__ ((__aligned__(x)))
 

Typedefs

typedef struct __blake2b_param blake2b_param
 

Enumerations

enum  blake2b_constant {
  BLAKE2B_BLOCKBYTES = 128, BLAKE2B_OUTBYTES = 64, BLAKE2B_KEYBYTES = 64, BLAKE2B_SALTBYTES = 16,
  BLAKE2B_PERSONALBYTES = 16, BLAKE2B_BLOCKBYTES = 128, BLAKE2B_OUTBYTES = 64, BLAKE2B_KEYBYTES = 64,
  BLAKE2B_SALTBYTES = 16, BLAKE2B_PERSONALBYTES = 16
}
 

Functions

 ALIGN (64) typedef struct __blake2b_state
 
int eq_blake2b_init (blake2b_state *S, const uint8_t outlen)
 
int eq_blake2b_init_key (blake2b_state *S, const uint8_t outlen, const void *key, const uint8_t keylen)
 
int eq_blake2b_init_param (blake2b_state *S, const blake2b_param *P)
 
int eq_blake2b_update (blake2b_state *S, const uint8_t *in, uint64_t inlen)
 
int eq_blake2b_final (blake2b_state *S, uint8_t *out, uint8_t outlen)
 
int eq_blake2b (uint8_t *out, const void *in, const void *key, const uint8_t outlen, const uint64_t inlen, uint8_t keylen)
 

Variables

 blake2b_state
 

Macro Definition Documentation

#define __BLAKE2_H__

Definition at line 15 of file blake2.h.

#define ALIGN (   x)    __attribute__ ((__aligned__(x)))

Definition at line 23 of file blake2.h.

Typedef Documentation

Enumeration Type Documentation

Enumerator
BLAKE2B_BLOCKBYTES 
BLAKE2B_OUTBYTES 
BLAKE2B_KEYBYTES 
BLAKE2B_SALTBYTES 
BLAKE2B_PERSONALBYTES 
BLAKE2B_BLOCKBYTES 
BLAKE2B_OUTBYTES 
BLAKE2B_KEYBYTES 
BLAKE2B_SALTBYTES 
BLAKE2B_PERSONALBYTES 

Definition at line 30 of file blake2.h.

Function Documentation

ALIGN ( 64  )

Definition at line 55 of file blake2.h.

int eq_blake2b ( uint8_t *  out,
const void *  in,
const void *  key,
const uint8_t  outlen,
const uint64_t  inlen,
uint8_t  keylen 
)

Definition at line 242 of file blake2bx.cpp.

Here is the call graph for this function:

int eq_blake2b_final ( blake2b_state S,
uint8_t *  out,
uint8_t  outlen 
)

Definition at line 220 of file blake2bx.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int eq_blake2b_init ( blake2b_state S,
const uint8_t  outlen 
)

Definition at line 67 of file blake2bx.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int eq_blake2b_init_key ( blake2b_state S,
const uint8_t  outlen,
const void *  key,
const uint8_t  keylen 
)

Definition at line 88 of file blake2bx.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int eq_blake2b_init_param ( blake2b_state S,
const blake2b_param P 
)

Definition at line 52 of file blake2bx.cpp.

Here is the caller graph for this function:

int eq_blake2b_update ( blake2b_state S,
const uint8_t *  in,
uint64_t  inlen 
)

Definition at line 192 of file blake2bx.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

blake2b_state

Definition at line 62 of file blake2.h.