Project Alice
|
#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
Classes | |
struct | blake2s_state__ |
struct | blake2b_state__ |
struct | blake2sp_state__ |
struct | blake2bp_state__ |
struct | blake2xs_state__ |
struct | blake2xb_state__ |
Macros | |
#define | BLAKE2_PACKED(x) x __attribute__((packed)) |
Typedefs | |
typedef struct blake2s_state__ | blake2s_state |
typedef struct blake2b_state__ | blake2b_state |
typedef struct blake2sp_state__ | blake2sp_state |
typedef struct blake2bp_state__ | blake2bp_state |
typedef struct blake2s_param__ | blake2s_param |
typedef struct blake2b_param__ | blake2b_param |
typedef struct blake2xs_state__ | blake2xs_state |
typedef struct blake2xb_state__ | blake2xb_state |
Enumerations | |
enum | blake2s_constant { BLAKE2S_BLOCKBYTES = 64 , BLAKE2S_OUTBYTES = 32 , BLAKE2S_KEYBYTES = 32 , BLAKE2S_SALTBYTES = 8 , BLAKE2S_PERSONALBYTES = 8 } |
enum | blake2b_constant { BLAKE2B_BLOCKBYTES = 128 , BLAKE2B_OUTBYTES = 64 , BLAKE2B_KEYBYTES = 64 , BLAKE2B_SALTBYTES = 16 , BLAKE2B_PERSONALBYTES = 16 } |
enum | { BLAKE2_DUMMY_1 = 1 / (int)(sizeof(blake2s_param) == BLAKE2S_OUTBYTES) , BLAKE2_DUMMY_2 = 1 / (int)(sizeof(blake2b_param) == BLAKE2B_OUTBYTES) } |
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_SALTBYTES];uint8_t personal[BLAKE2S_PERSONALBYTES];}) | |
BLAKE2_PACKED (struct blake2b_param__ { uint8_t digest_length;uint8_t key_length;uint8_t fanout;uint8_t depth;uint32_t leaf_length;uint32_t node_offset;uint32_t xof_length;uint8_t node_depth;uint8_t inner_length;uint8_t reserved[14];uint8_t salt[BLAKE2B_SALTBYTES];uint8_t personal[BLAKE2B_PERSONALBYTES];}) | |
int | blake2s_init (blake2s_state *S, size_t outlen) |
int | blake2s_init_key (blake2s_state *S, size_t outlen, const void *key, size_t keylen) |
int | blake2s_init_param (blake2s_state *S, const blake2s_param *P) |
int | blake2s_update (blake2s_state *S, const void *in, size_t inlen) |
int | blake2s_final (blake2s_state *S, void *out, size_t outlen) |
int | blake2b_init (blake2b_state *S, size_t outlen) |
int | blake2b_init_key (blake2b_state *S, size_t outlen, const void *key, size_t keylen) |
int | blake2b_init_param (blake2b_state *S, const blake2b_param *P) |
int | blake2b_update (blake2b_state *S, const void *in, size_t inlen) |
int | blake2b_final (blake2b_state *S, void *out, size_t outlen) |
int | blake2sp_init (blake2sp_state *S, size_t outlen) |
int | blake2sp_init_key (blake2sp_state *S, size_t outlen, const void *key, size_t keylen) |
int | blake2sp_update (blake2sp_state *S, const void *in, size_t inlen) |
int | blake2sp_final (blake2sp_state *S, void *out, size_t outlen) |
int | blake2bp_init (blake2bp_state *S, size_t outlen) |
int | blake2bp_init_key (blake2bp_state *S, size_t outlen, const void *key, size_t keylen) |
int | blake2bp_update (blake2bp_state *S, const void *in, size_t inlen) |
int | blake2bp_final (blake2bp_state *S, void *out, size_t outlen) |
int | blake2xs_init (blake2xs_state *S, const size_t outlen) |
int | blake2xs_init_key (blake2xs_state *S, const size_t outlen, const void *key, size_t keylen) |
int | blake2xs_update (blake2xs_state *S, const void *in, size_t inlen) |
int | blake2xs_final (blake2xs_state *S, void *out, size_t outlen) |
int | blake2xb_init (blake2xb_state *S, const size_t outlen) |
int | blake2xb_init_key (blake2xb_state *S, const size_t outlen, const void *key, size_t keylen) |
int | blake2xb_update (blake2xb_state *S, const void *in, size_t inlen) |
int | blake2xb_final (blake2xb_state *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) |
int | blake2b (void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keylen) |
int | blake2sp (void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keylen) |
int | blake2bp (void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keylen) |
int | blake2xs (void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keylen) |
int | blake2xb (void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keylen) |
int | blake2 (void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keylen) |
typedef struct blake2b_param__ blake2b_param |
typedef struct blake2b_state__ blake2b_state |
typedef struct blake2bp_state__ blake2bp_state |
typedef struct blake2s_param__ blake2s_param |
typedef struct blake2s_state__ blake2s_state |
typedef struct blake2sp_state__ blake2sp_state |
typedef struct blake2xb_state__ blake2xb_state |
typedef struct blake2xs_state__ blake2xs_state |
enum blake2b_constant |
enum blake2s_constant |
int blake2 | ( | void * | out, |
size_t | outlen, | ||
const void * | in, | ||
size_t | inlen, | ||
const void * | key, | ||
size_t | keylen | ||
) |
BLAKE2_PACKED | ( | struct blake2b_param__ { uint8_t digest_length;uint8_t key_length;uint8_t fanout;uint8_t depth;uint32_t leaf_length;uint32_t node_offset;uint32_t xof_length;uint8_t node_depth;uint8_t inner_length;uint8_t reserved[14];uint8_t salt[BLAKE2B_SALTBYTES];uint8_t personal[BLAKE2B_PERSONALBYTES];} | ) |
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_SALTBYTES];uint8_t personal[BLAKE2S_PERSONALBYTES];} | ) |
int blake2b | ( | void * | out, |
size_t | outlen, | ||
const void * | in, | ||
size_t | inlen, | ||
const void * | key, | ||
size_t | keylen | ||
) |
int blake2b_final | ( | blake2b_state * | S, |
void * | out, | ||
size_t | outlen | ||
) |
int blake2b_init | ( | blake2b_state * | S, |
size_t | outlen | ||
) |
int blake2b_init_key | ( | blake2b_state * | S, |
size_t | outlen, | ||
const void * | key, | ||
size_t | keylen | ||
) |
int blake2b_init_param | ( | blake2b_state * | S, |
const blake2b_param * | P | ||
) |
int blake2b_update | ( | blake2b_state * | S, |
const void * | in, | ||
size_t | inlen | ||
) |
int blake2bp | ( | void * | out, |
size_t | outlen, | ||
const void * | in, | ||
size_t | inlen, | ||
const void * | key, | ||
size_t | keylen | ||
) |
int blake2bp_final | ( | blake2bp_state * | S, |
void * | out, | ||
size_t | outlen | ||
) |
int blake2bp_init | ( | blake2bp_state * | S, |
size_t | outlen | ||
) |
int blake2bp_init_key | ( | blake2bp_state * | S, |
size_t | outlen, | ||
const void * | key, | ||
size_t | keylen | ||
) |
int blake2bp_update | ( | blake2bp_state * | S, |
const void * | in, | ||
size_t | inlen | ||
) |
int blake2s | ( | void * | out, |
size_t | outlen, | ||
const void * | in, | ||
size_t | inlen, | ||
const void * | key, | ||
size_t | keylen | ||
) |
int blake2s_final | ( | blake2s_state * | S, |
void * | out, | ||
size_t | outlen | ||
) |
int blake2s_init | ( | blake2s_state * | S, |
size_t | outlen | ||
) |
int blake2s_init_key | ( | blake2s_state * | S, |
size_t | outlen, | ||
const void * | key, | ||
size_t | keylen | ||
) |
int blake2s_init_param | ( | blake2s_state * | S, |
const blake2s_param * | P | ||
) |
int blake2s_update | ( | blake2s_state * | S, |
const void * | in, | ||
size_t | inlen | ||
) |
int blake2sp | ( | void * | out, |
size_t | outlen, | ||
const void * | in, | ||
size_t | inlen, | ||
const void * | key, | ||
size_t | keylen | ||
) |
int blake2sp_final | ( | blake2sp_state * | S, |
void * | out, | ||
size_t | outlen | ||
) |
int blake2sp_init | ( | blake2sp_state * | S, |
size_t | outlen | ||
) |
int blake2sp_init_key | ( | blake2sp_state * | S, |
size_t | outlen, | ||
const void * | key, | ||
size_t | keylen | ||
) |
int blake2sp_update | ( | blake2sp_state * | S, |
const void * | in, | ||
size_t | inlen | ||
) |
int blake2xb | ( | void * | out, |
size_t | outlen, | ||
const void * | in, | ||
size_t | inlen, | ||
const void * | key, | ||
size_t | keylen | ||
) |
int blake2xb_final | ( | blake2xb_state * | S, |
void * | out, | ||
size_t | outlen | ||
) |
int blake2xb_init | ( | blake2xb_state * | S, |
const size_t | outlen | ||
) |
int blake2xb_init_key | ( | blake2xb_state * | S, |
const size_t | outlen, | ||
const void * | key, | ||
size_t | keylen | ||
) |
int blake2xb_update | ( | blake2xb_state * | S, |
const void * | in, | ||
size_t | inlen | ||
) |
int blake2xs | ( | void * | out, |
size_t | outlen, | ||
const void * | in, | ||
size_t | inlen, | ||
const void * | key, | ||
size_t | keylen | ||
) |
int blake2xs_final | ( | blake2xs_state * | S, |
void * | out, | ||
size_t | outlen | ||
) |
int blake2xs_init | ( | blake2xs_state * | S, |
const size_t | outlen | ||
) |
int blake2xs_init_key | ( | blake2xs_state * | S, |
const size_t | outlen, | ||
const void * | key, | ||
size_t | keylen | ||
) |
int blake2xs_update | ( | blake2xs_state * | S, |
const void * | in, | ||
size_t | inlen | ||
) |