Bitcoin Core 29.99.0
P2P Digital Currency
Variables
tests_wycheproof_generate_ecdsa Namespace Reference

Variables

 filename_input = sys.argv[1]
 
 doc = json.load(f)
 
 num_groups = len(doc['testGroups'])
 
int num_vectors = 0
 
 offset_msg_running
 
 offset_pk_running
 
 offset_sig
 
string out = ""
 
string messages = ""
 
string signatures = ""
 
string public_keys = ""
 
dictionary cache_msgs = {}
 
dictionary cache_public_keys = {}
 
 group = doc['testGroups'][i]
 
 num_tests = len(group['tests'])
 
 public_key = group['publicKey']
 
 test_vector = group['tests'][j]
 
int sig_size = len(test_vector['sig']) // 2
 
int msg_size = len(test_vector['msg']) // 2
 
int expected_verify = 0
 
bool new_msg = False
 
 msg = to_c_array(test_vector['msg'])
 
 msg_offset = offset_msg_running
 
bool new_pk = False
 
 pk = to_c_array(public_key['uncompressed'])
 
 pk_offset = offset_pk_running
 
string struct_definition
 

Variable Documentation

◆ cache_msgs

dictionary tests_wycheproof_generate_ecdsa.cache_msgs = {}

Definition at line 28 of file tests_wycheproof_generate_ecdsa.py.

◆ cache_public_keys

dictionary tests_wycheproof_generate_ecdsa.cache_public_keys = {}

Definition at line 29 of file tests_wycheproof_generate_ecdsa.py.

◆ doc

tests_wycheproof_generate_ecdsa.doc = json.load(f)

Definition at line 17 of file tests_wycheproof_generate_ecdsa.py.

◆ expected_verify

int tests_wycheproof_generate_ecdsa.expected_verify = 0

Definition at line 42 of file tests_wycheproof_generate_ecdsa.py.

◆ filename_input

tests_wycheproof_generate_ecdsa.filename_input = sys.argv[1]

Definition at line 14 of file tests_wycheproof_generate_ecdsa.py.

◆ group

tests_wycheproof_generate_ecdsa.group = doc['testGroups'][i]

Definition at line 32 of file tests_wycheproof_generate_ecdsa.py.

◆ messages

string tests_wycheproof_generate_ecdsa.messages = ""

Definition at line 25 of file tests_wycheproof_generate_ecdsa.py.

◆ msg

tests_wycheproof_generate_ecdsa.msg = to_c_array(test_vector['msg'])

Definition at line 52 of file tests_wycheproof_generate_ecdsa.py.

◆ msg_offset

dictionary tests_wycheproof_generate_ecdsa.msg_offset = offset_msg_running

Definition at line 53 of file tests_wycheproof_generate_ecdsa.py.

◆ msg_size

int tests_wycheproof_generate_ecdsa.msg_size = len(test_vector['msg']) // 2

Definition at line 39 of file tests_wycheproof_generate_ecdsa.py.

◆ new_msg

bool tests_wycheproof_generate_ecdsa.new_msg = False

Definition at line 51 of file tests_wycheproof_generate_ecdsa.py.

◆ new_pk

bool tests_wycheproof_generate_ecdsa.new_pk = False

Definition at line 64 of file tests_wycheproof_generate_ecdsa.py.

◆ num_groups

tests_wycheproof_generate_ecdsa.num_groups = len(doc['testGroups'])

Definition at line 19 of file tests_wycheproof_generate_ecdsa.py.

◆ num_tests

tests_wycheproof_generate_ecdsa.num_tests = len(group['tests'])

Definition at line 33 of file tests_wycheproof_generate_ecdsa.py.

◆ num_vectors

int tests_wycheproof_generate_ecdsa.num_vectors = 0

Definition at line 22 of file tests_wycheproof_generate_ecdsa.py.

◆ offset_msg_running

tests_wycheproof_generate_ecdsa.offset_msg_running

Definition at line 23 of file tests_wycheproof_generate_ecdsa.py.

◆ offset_pk_running

tests_wycheproof_generate_ecdsa.offset_pk_running

Definition at line 23 of file tests_wycheproof_generate_ecdsa.py.

◆ offset_sig

tests_wycheproof_generate_ecdsa.offset_sig

Definition at line 23 of file tests_wycheproof_generate_ecdsa.py.

◆ out

string tests_wycheproof_generate_ecdsa.out = ""

Definition at line 24 of file tests_wycheproof_generate_ecdsa.py.

◆ pk

tests_wycheproof_generate_ecdsa.pk = to_c_array(public_key['uncompressed'])

Definition at line 65 of file tests_wycheproof_generate_ecdsa.py.

◆ pk_offset

dictionary tests_wycheproof_generate_ecdsa.pk_offset = offset_pk_running

Definition at line 66 of file tests_wycheproof_generate_ecdsa.py.

◆ public_key

tests_wycheproof_generate_ecdsa.public_key = group['publicKey']

Definition at line 34 of file tests_wycheproof_generate_ecdsa.py.

◆ public_keys

string tests_wycheproof_generate_ecdsa.public_keys = ""

Definition at line 27 of file tests_wycheproof_generate_ecdsa.py.

◆ sig_size

int tests_wycheproof_generate_ecdsa.sig_size = len(test_vector['sig']) // 2

Definition at line 38 of file tests_wycheproof_generate_ecdsa.py.

◆ signatures

string tests_wycheproof_generate_ecdsa.signatures = ""

Definition at line 26 of file tests_wycheproof_generate_ecdsa.py.

◆ struct_definition

string tests_wycheproof_generate_ecdsa.struct_definition
Initial value:
1= """
2typedef struct {
3 size_t pk_offset;
4 size_t msg_offset;
5 size_t msg_len;
6 size_t sig_offset;
7 size_t sig_len;
8 int expected_verify;
9} wycheproof_ecdsa_testvector;
10"""

Definition at line 88 of file tests_wycheproof_generate_ecdsa.py.

◆ test_vector

tests_wycheproof_generate_ecdsa.test_vector = group['tests'][j]

Definition at line 36 of file tests_wycheproof_generate_ecdsa.py.