Functions | Variables
blake2.c File Reference
#include <openssl/blake2.h>
#include <openssl/type_check.h>
#include "../internal.h"
Include dependency graph for blake2.c:

Go to the source code of this file.

Functions

void BLAKE2B256 (const uint8_t *data, size_t len, uint8_t out[BLAKE2B256_DIGEST_LENGTH])
 
void BLAKE2B256_Final (uint8_t out[BLAKE2B256_DIGEST_LENGTH], BLAKE2B_CTX *b2b)
 
void BLAKE2B256_Init (BLAKE2B_CTX *b2b)
 
void BLAKE2B256_Update (BLAKE2B_CTX *b2b, const void *in_data, size_t len)
 
static void blake2b_mix (uint64_t v[16], int a, int b, int c, int d, uint64_t x, uint64_t y)
 
static void blake2b_transform (BLAKE2B_CTX *b2b, const uint64_t block_words[BLAKE2B_CBLOCK/sizeof(uint64_t)], size_t num_bytes, int is_final_block)
 

Variables

static const uint64_t kIV [8]
 
static const uint8_t kSigma [10 *16]
 

Function Documentation

◆ BLAKE2B256()

void BLAKE2B256 ( const uint8_t data,
size_t  len,
uint8_t  out[BLAKE2B256_DIGEST_LENGTH] 
)

Definition at line 150 of file blake2.c.

◆ BLAKE2B256_Final()

void BLAKE2B256_Final ( uint8_t  out[BLAKE2B256_DIGEST_LENGTH],
BLAKE2B_CTX b2b 
)

Definition at line 141 of file blake2.c.

◆ BLAKE2B256_Init()

void BLAKE2B256_Init ( BLAKE2B_CTX b2b)

Definition at line 97 of file blake2.c.

◆ BLAKE2B256_Update()

void BLAKE2B256_Update ( BLAKE2B_CTX b2b,
const void *  in_data,
size_t  len 
)

Definition at line 107 of file blake2.c.

◆ blake2b_mix()

static void blake2b_mix ( uint64_t  v[16],
int  a,
int  b,
int  c,
int  d,
uint64_t  x,
uint64_t  y 
)
static

Definition at line 46 of file blake2.c.

◆ blake2b_transform()

static void blake2b_transform ( BLAKE2B_CTX b2b,
const uint64_t  block_words[BLAKE2B_CBLOCK/sizeof(uint64_t)],
size_t  num_bytes,
int  is_final_block 
)
static

Definition at line 58 of file blake2.c.

Variable Documentation

◆ kIV

const uint64_t kIV[8]
static
Initial value:
= {
UINT64_C(0x6a09e667f3bcc908), UINT64_C(0xbb67ae8584caa73b),
UINT64_C(0x3c6ef372fe94f82b), UINT64_C(0xa54ff53a5f1d36f1),
UINT64_C(0x510e527fade682d1), UINT64_C(0x9b05688c2b3e6c1f),
UINT64_C(0x1f83d9abfb41bd6b), UINT64_C(0x5be0cd19137e2179),
}

Definition at line 22 of file blake2.c.

◆ kSigma

const uint8_t kSigma[10 *16]
static
Initial value:
= {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3,
11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4,
7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8,
9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13,
2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9,
12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11,
13, 11, 7, 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10,
6, 15, 14, 9, 11, 3, 0, 8, 12, 2, 13, 7, 1, 4, 10, 5,
10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0,
}

Definition at line 30 of file blake2.c.

UINT64_C
#define UINT64_C(val)
Definition: stdint-msvc2008.h:238


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:04