Bitcoin ABC  0.29.2
P2P Digital Currency
Functions | Variables
testrand_impl.h File Reference
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "testrand.h"
#include "hash.h"
Include dependency graph for testrand_impl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static SECP256K1_INLINE void secp256k1_testrand_seed (const unsigned char *seed16)
 
static SECP256K1_INLINE uint32_t secp256k1_testrand32 (void)
 
static uint32_t secp256k1_testrand_bits (int bits)
 
static uint32_t secp256k1_testrand_int (uint32_t range)
 
static void secp256k1_testrand256 (unsigned char *b32)
 
static void secp256k1_testrand_bytes_test (unsigned char *bytes, size_t len)
 
static void secp256k1_testrand256_test (unsigned char *b32)
 
static void secp256k1_testrand_flip (unsigned char *b, size_t len)
 
static void secp256k1_testrand_init (const char *hexseed)
 
static void secp256k1_testrand_finish (void)
 

Variables

static secp256k1_rfc6979_hmac_sha256 secp256k1_test_rng
 
static uint32_t secp256k1_test_rng_precomputed [8]
 
static int secp256k1_test_rng_precomputed_used = 8
 
static uint64_t secp256k1_test_rng_integer
 
static int secp256k1_test_rng_integer_bits_left = 0
 

Function Documentation

◆ secp256k1_testrand256()

static void secp256k1_testrand256 ( unsigned char *  b32)
static

Definition at line 87 of file testrand_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_testrand256_test()

static void secp256k1_testrand256_test ( unsigned char *  b32)
static

Definition at line 107 of file testrand_impl.h.

Here is the call graph for this function:

◆ secp256k1_testrand32()

static SECP256K1_INLINE uint32_t secp256k1_testrand32 ( void  )
static

Definition at line 27 of file testrand_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_testrand_bits()

static uint32_t secp256k1_testrand_bits ( int  bits)
static

Definition at line 35 of file testrand_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_testrand_bytes_test()

static void secp256k1_testrand_bytes_test ( unsigned char *  bytes,
size_t  len 
)
static

Definition at line 91 of file testrand_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_testrand_finish()

static void secp256k1_testrand_finish ( void  )
static

Definition at line 152 of file testrand_impl.h.

Here is the call graph for this function:

◆ secp256k1_testrand_flip()

static void secp256k1_testrand_flip ( unsigned char *  b,
size_t  len 
)
static

Definition at line 111 of file testrand_impl.h.

Here is the call graph for this function:

◆ secp256k1_testrand_init()

static void secp256k1_testrand_init ( const char *  hexseed)
static

Definition at line 115 of file testrand_impl.h.

Here is the call graph for this function:

◆ secp256k1_testrand_int()

static uint32_t secp256k1_testrand_int ( uint32_t  range)
static

Definition at line 48 of file testrand_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_testrand_seed()

static SECP256K1_INLINE void secp256k1_testrand_seed ( const unsigned char *  seed16)
static

Definition at line 23 of file testrand_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ secp256k1_test_rng

secp256k1_rfc6979_hmac_sha256 secp256k1_test_rng
static

Definition at line 17 of file testrand_impl.h.

◆ secp256k1_test_rng_integer

uint64_t secp256k1_test_rng_integer
static

Definition at line 20 of file testrand_impl.h.

◆ secp256k1_test_rng_integer_bits_left

int secp256k1_test_rng_integer_bits_left = 0
static

Definition at line 21 of file testrand_impl.h.

◆ secp256k1_test_rng_precomputed

uint32_t secp256k1_test_rng_precomputed[8]
static

Definition at line 18 of file testrand_impl.h.

◆ secp256k1_test_rng_precomputed_used

int secp256k1_test_rng_precomputed_used = 8
static

Definition at line 19 of file testrand_impl.h.