Bitcoin Core 32.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
hash.h File Reference
#include <stdlib.h>
#include <stdint.h>
#include "../include/secp256k1.h"
Include dependency graph for hash.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  secp256k1_hash_ctx
struct  secp256k1_sha256
struct  secp256k1_hmac_sha256
struct  secp256k1_rfc6979_hmac_sha256

Functions

static void secp256k1_hash_ctx_init (secp256k1_hash_ctx *hash_ctx)
static void secp256k1_sha256_initialize (secp256k1_sha256 *hash)
static void secp256k1_sha256_initialize_midstate (secp256k1_sha256 *hash, uint64_t bytes, const uint32_t state[8])
static void secp256k1_sha256_write (const secp256k1_hash_ctx *hash_ctx, secp256k1_sha256 *hash, const unsigned char *data, size_t size)
static void secp256k1_sha256_finalize (const secp256k1_hash_ctx *hash_ctx, secp256k1_sha256 *hash, unsigned char *out32)
static void secp256k1_sha256_clear (secp256k1_sha256 *hash)
static void secp256k1_hmac_sha256_initialize (const secp256k1_hash_ctx *hash_ctx, secp256k1_hmac_sha256 *hash, const unsigned char *key, size_t size)
static void secp256k1_hmac_sha256_write (const secp256k1_hash_ctx *hash_ctx, secp256k1_hmac_sha256 *hash, const unsigned char *data, size_t size)
static void secp256k1_hmac_sha256_finalize (const secp256k1_hash_ctx *hash_ctx, secp256k1_hmac_sha256 *hash, unsigned char *out32)
static void secp256k1_hmac_sha256_clear (secp256k1_hmac_sha256 *hash)
static void secp256k1_rfc6979_hmac_sha256_initialize (const secp256k1_hash_ctx *hash_ctx, secp256k1_rfc6979_hmac_sha256 *rng, const unsigned char *key, size_t keylen)
static void secp256k1_rfc6979_hmac_sha256_generate (const secp256k1_hash_ctx *hash_ctx, secp256k1_rfc6979_hmac_sha256 *rng, unsigned char *out, size_t outlen)
static void secp256k1_rfc6979_hmac_sha256_finalize (secp256k1_rfc6979_hmac_sha256 *rng)
static void secp256k1_rfc6979_hmac_sha256_clear (secp256k1_rfc6979_hmac_sha256 *rng)

Function Documentation

◆ secp256k1_hash_ctx_init()

void secp256k1_hash_ctx_init ( secp256k1_hash_ctx * hash_ctx)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_hmac_sha256_clear()

void secp256k1_hmac_sha256_clear ( secp256k1_hmac_sha256 * hash)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_hmac_sha256_finalize()

void secp256k1_hmac_sha256_finalize ( const secp256k1_hash_ctx * hash_ctx,
secp256k1_hmac_sha256 * hash,
unsigned char * out32 )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_hmac_sha256_initialize()

void secp256k1_hmac_sha256_initialize ( const secp256k1_hash_ctx * hash_ctx,
secp256k1_hmac_sha256 * hash,
const unsigned char * key,
size_t size )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_hmac_sha256_write()

void secp256k1_hmac_sha256_write ( const secp256k1_hash_ctx * hash_ctx,
secp256k1_hmac_sha256 * hash,
const unsigned char * data,
size_t size )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_rfc6979_hmac_sha256_clear()

void secp256k1_rfc6979_hmac_sha256_clear ( secp256k1_rfc6979_hmac_sha256 * rng)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_rfc6979_hmac_sha256_finalize()

void secp256k1_rfc6979_hmac_sha256_finalize ( secp256k1_rfc6979_hmac_sha256 * rng)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_rfc6979_hmac_sha256_generate()

void secp256k1_rfc6979_hmac_sha256_generate ( const secp256k1_hash_ctx * hash_ctx,
secp256k1_rfc6979_hmac_sha256 * rng,
unsigned char * out,
size_t outlen )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_rfc6979_hmac_sha256_initialize()

void secp256k1_rfc6979_hmac_sha256_initialize ( const secp256k1_hash_ctx * hash_ctx,
secp256k1_rfc6979_hmac_sha256 * rng,
const unsigned char * key,
size_t keylen )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_sha256_clear()

void secp256k1_sha256_clear ( secp256k1_sha256 * hash)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_sha256_finalize()

void secp256k1_sha256_finalize ( const secp256k1_hash_ctx * hash_ctx,
secp256k1_sha256 * hash,
unsigned char * out32 )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_sha256_initialize()

void secp256k1_sha256_initialize ( secp256k1_sha256 * hash)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_sha256_initialize_midstate()

void secp256k1_sha256_initialize_midstate ( secp256k1_sha256 * hash,
uint64_t bytes,
const uint32_t state[8] )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_sha256_write()

void secp256k1_sha256_write ( const secp256k1_hash_ctx * hash_ctx,
secp256k1_sha256 * hash,
const unsigned char * data,
size_t size )
static
Here is the call graph for this function:
Here is the caller graph for this function: