Go to the source code of this file.
|
static void | nonce_function_bip340_bitflip (unsigned char **args, size_t n_flip, size_t n_bytes, size_t msglen, size_t algolen) |
|
static void | run_nonce_function_bip340_tests (void) |
|
static void | test_schnorrsig_api (void) |
|
static void | test_schnorrsig_sha256_tagged (void) |
|
static void | test_schnorrsig_bip_vectors_check_signing (const unsigned char *sk, const unsigned char *pk_serialized, const unsigned char *aux_rand, const unsigned char *msg, size_t msglen, const unsigned char *expected_sig) |
|
static void | test_schnorrsig_bip_vectors_check_verify (const unsigned char *pk_serialized, const unsigned char *msg, size_t msglen, const unsigned char *sig, int expected) |
|
static 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) |
|
static void | test_schnorrsig_sign (void) |
|
static void | test_schnorrsig_sign_verify (void) |
|
static void | test_schnorrsig_taproot (void) |
|
static void | run_schnorrsig_tests (void) |
|
◆ N_SIGS
◆ 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 |
◆ nonce_function_bip340_bitflip()
static void nonce_function_bip340_bitflip |
( |
unsigned char ** |
args, |
|
|
size_t |
n_flip, |
|
|
size_t |
n_bytes, |
|
|
size_t |
msglen, |
|
|
size_t |
algolen |
|
) |
| |
|
static |
◆ 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 |
◆ 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 |
◆ run_nonce_function_bip340_tests()
static void run_nonce_function_bip340_tests |
( |
void |
| ) |
|
|
static |
◆ run_schnorrsig_tests()
static void run_schnorrsig_tests |
( |
void |
| ) |
|
|
static |
◆ test_schnorrsig_api()
static void test_schnorrsig_api |
( |
void |
| ) |
|
|
static |
◆ test_schnorrsig_bip_vectors()
static void test_schnorrsig_bip_vectors |
( |
void |
| ) |
|
|
static |
◆ test_schnorrsig_bip_vectors_check_signing()
static void test_schnorrsig_bip_vectors_check_signing |
( |
const unsigned char * |
sk, |
|
|
const unsigned char * |
pk_serialized, |
|
|
const unsigned char * |
aux_rand, |
|
|
const unsigned char * |
msg, |
|
|
size_t |
msglen, |
|
|
const unsigned char * |
expected_sig |
|
) |
| |
|
static |
◆ test_schnorrsig_bip_vectors_check_verify()
static void test_schnorrsig_bip_vectors_check_verify |
( |
const unsigned char * |
pk_serialized, |
|
|
const unsigned char * |
msg, |
|
|
size_t |
msglen, |
|
|
const unsigned char * |
sig, |
|
|
int |
expected |
|
) |
| |
|
static |
◆ test_schnorrsig_sha256_tagged()
static void test_schnorrsig_sha256_tagged |
( |
void |
| ) |
|
|
static |
◆ test_schnorrsig_sign()
static void test_schnorrsig_sign |
( |
void |
| ) |
|
|
static |
◆ test_schnorrsig_sign_verify()
static void test_schnorrsig_sign_verify |
( |
void |
| ) |
|
|
static |
◆ test_schnorrsig_taproot()
static void test_schnorrsig_taproot |
( |
void |
| ) |
|
|
static |