Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
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, size_t msglen, size_t algolen)
 
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 *msg32, 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 *msg, size_t msglen, const unsigned char *key32, const unsigned char *xonly_pk32, const unsigned char *algo, size_t algolen, void *data)
 
static int nonce_function_0 (unsigned char *nonce32, const unsigned char *msg, size_t msglen, const unsigned char *key32, const unsigned char *xonly_pk32, const unsigned char *algo, size_t algolen, void *data)
 
static int nonce_function_overflowing (unsigned char *nonce32, const unsigned char *msg, size_t msglen, const unsigned char *key32, const unsigned char *xonly_pk32, const unsigned char *algo, size_t algolen, 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 760 of file tests_impl.h.

Function Documentation

◆ nonce_function_0()

static int nonce_function_0 ( unsigned char nonce32,
const unsigned char msg,
size_t  msglen,
const unsigned char key32,
const unsigned char xonly_pk32,
const unsigned char algo,
size_t  algolen,
void data 
)
static

Definition at line 690 of file tests_impl.h.

Here is the call graph for this function:
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,
size_t  msglen,
size_t  algolen 
)

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 msg,
size_t  msglen,
const unsigned char key32,
const unsigned char xonly_pk32,
const unsigned char algo,
size_t  algolen,
void data 
)
static

Definition at line 677 of file tests_impl.h.

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

◆ nonce_function_overflowing()

static int nonce_function_overflowing ( unsigned char nonce32,
const unsigned char msg,
size_t  msglen,
const unsigned char key32,
const unsigned char xonly_pk32,
const unsigned char algo,
size_t  algolen,
void data 
)
static

Definition at line 704 of file tests_impl.h.

Here is the call graph for this function:
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 877 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 114 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 259 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 msg32,
const unsigned char expected_sig 
)

Definition at line 233 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 250 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 221 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 717 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 764 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 841 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: