Bitcoin ABC  0.28.12
P2P Digital Currency
Macros | Functions
tests_impl.h File Reference
#include "secp256k1_schnorrsig.h"
Include dependency graph for tests_impl.h:

Go to the source code of this file.

Macros

#define N_SIGS   3
 

Functions

void nonce_function_bip340_bitflip (unsigned char **args, size_t n_flip, size_t n_bytes)
 
void test_sha256_eq (const secp256k1_sha256 *sha1, const secp256k1_sha256 *sha2)
 
void run_nonce_function_bip340_tests (void)
 
void test_schnorrsig_api (void)
 
void test_schnorrsig_sha256_tagged (void)
 
void test_schnorrsig_bip_vectors_check_signing (const unsigned char *sk, const unsigned char *pk_serialized, unsigned char *aux_rand, const unsigned char *msg, const unsigned char *expected_sig)
 
void test_schnorrsig_bip_vectors_check_verify (const unsigned char *pk_serialized, const unsigned char *msg32, const unsigned char *sig, int expected)
 
void test_schnorrsig_bip_vectors (void)
 
static int nonce_function_failing (unsigned char *nonce32, const unsigned char *msg32, const unsigned char *key32, const unsigned char *xonly_pk32, const unsigned char *algo16, void *data)
 
static int nonce_function_0 (unsigned char *nonce32, const unsigned char *msg32, const unsigned char *key32, const unsigned char *xonly_pk32, const unsigned char *algo16, void *data)
 
static int nonce_function_overflowing (unsigned char *nonce32, const unsigned char *msg32, const unsigned char *key32, const unsigned char *xonly_pk32, const unsigned char *algo16, void *data)
 
void test_schnorrsig_sign (void)
 
void test_schnorrsig_sign_verify (void)
 
void test_schnorrsig_taproot (void)
 
void run_schnorrsig_tests (void)
 

Macro Definition Documentation

◆ N_SIGS

#define N_SIGS   3

Definition at line 693 of file tests_impl.h.

Function Documentation

◆ nonce_function_0()

static int nonce_function_0 ( unsigned char *  nonce32,
const unsigned char *  msg32,
const unsigned char *  key32,
const unsigned char *  xonly_pk32,
const unsigned char *  algo16,
void *  data 
)
static

Definition at line 648 of file tests_impl.h.

Here is the caller graph for this function:

◆ nonce_function_bip340_bitflip()

void nonce_function_bip340_bitflip ( unsigned char **  args,
size_t  n_flip,
size_t  n_bytes 
)

Definition at line 15 of file tests_impl.h.

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

◆ nonce_function_failing()

static int nonce_function_failing ( unsigned char *  nonce32,
const unsigned char *  msg32,
const unsigned char *  key32,
const unsigned char *  xonly_pk32,
const unsigned char *  algo16,
void *  data 
)
static

Definition at line 637 of file tests_impl.h.

Here is the caller graph for this function:

◆ nonce_function_overflowing()

static int nonce_function_overflowing ( unsigned char *  nonce32,
const unsigned char *  msg32,
const unsigned char *  key32,
const unsigned char *  xonly_pk32,
const unsigned char *  algo16,
void *  data 
)
static

Definition at line 660 of file tests_impl.h.

Here is the caller graph for this function:

◆ run_nonce_function_bip340_tests()

void run_nonce_function_bip340_tests ( void  )

Definition at line 34 of file tests_impl.h.

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

◆ run_schnorrsig_tests()

void run_schnorrsig_tests ( void  )

Definition at line 792 of file tests_impl.h.

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

◆ test_schnorrsig_api()

void test_schnorrsig_api ( void  )

setup

main test body

Definition at line 100 of file tests_impl.h.

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

◆ test_schnorrsig_bip_vectors()

void test_schnorrsig_bip_vectors ( void  )

Definition at line 219 of file tests_impl.h.

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

◆ test_schnorrsig_bip_vectors_check_signing()

void test_schnorrsig_bip_vectors_check_signing ( const unsigned char *  sk,
const unsigned char *  pk_serialized,
unsigned char *  aux_rand,
const unsigned char *  msg,
const unsigned char *  expected_sig 
)

Definition at line 193 of file tests_impl.h.

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

◆ test_schnorrsig_bip_vectors_check_verify()

void test_schnorrsig_bip_vectors_check_verify ( const unsigned char *  pk_serialized,
const unsigned char *  msg32,
const unsigned char *  sig,
int  expected 
)

Definition at line 210 of file tests_impl.h.

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

◆ test_schnorrsig_sha256_tagged()

void test_schnorrsig_sha256_tagged ( void  )

Definition at line 181 of file tests_impl.h.

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

◆ test_schnorrsig_sign()

void test_schnorrsig_sign ( void  )

Definition at line 671 of file tests_impl.h.

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

◆ test_schnorrsig_sign_verify()

void test_schnorrsig_sign_verify ( void  )

Definition at line 697 of file tests_impl.h.

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

◆ test_schnorrsig_taproot()

void test_schnorrsig_taproot ( void  )

Definition at line 756 of file tests_impl.h.

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

◆ test_sha256_eq()

void test_sha256_eq ( const secp256k1_sha256 sha1,
const secp256k1_sha256 sha2 
)

Definition at line 26 of file tests_impl.h.

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