Bitcoin Core 31.99.0
P2P Digital Currency
Classes | Functions
hash.h File Reference
#include <stdlib.h>
#include <stdint.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()

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

◆ secp256k1_hmac_sha256_clear()

static void secp256k1_hmac_sha256_clear ( secp256k1_hmac_sha256 hash)
static

◆ secp256k1_hmac_sha256_finalize()

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

◆ secp256k1_hmac_sha256_initialize()

static 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 caller graph for this function:

◆ secp256k1_hmac_sha256_write()

static 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 caller graph for this function:

◆ secp256k1_rfc6979_hmac_sha256_clear()

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

◆ secp256k1_rfc6979_hmac_sha256_finalize()

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

◆ secp256k1_rfc6979_hmac_sha256_generate()

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
Here is the caller graph for this function:

◆ secp256k1_rfc6979_hmac_sha256_initialize()

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
Here is the caller graph for this function:

◆ secp256k1_sha256_clear()

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

◆ secp256k1_sha256_finalize()

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

◆ secp256k1_sha256_initialize()

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

◆ secp256k1_sha256_initialize_midstate()

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

◆ secp256k1_sha256_write()

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