Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
Go to the source code of this file.
Classes | |
struct | secp256k1_callback |
Macros | |
#define | TEST_FAILURE(msg) |
#define | EXPECT(x, c) (x) |
#define | CHECK(cond) |
#define | VERIFY_CHECK(cond) do { (void)(cond); } while(0) |
#define | VERIFY_SETUP(stmt) |
#define | SECP256K1_RESTRICT |
#define | I64FORMAT "lld" |
#define | I64uFORMAT "llu" |
Functions | |
static SECP256K1_INLINE void | secp256k1_callback_call (const secp256k1_callback *const cb, const char *const text) |
static SECP256K1_INLINE void * | checked_malloc (const secp256k1_callback *cb, size_t size) |
static SECP256K1_INLINE void * | checked_realloc (const secp256k1_callback *cb, void *ptr, size_t size) |
Macro Definition Documentation
◆ CHECK
#define CHECK | ( | cond | ) |
Definition at line 52 of file util.h.
Referenced by bench_ecdh(), bench_ecdh_setup(), bench_ecmult_teardown(), bench_recover(), bench_setup(), bench_sign_run(), benchmark_verify(), ec_pubkey_parse_pointtest(), ecmult_const_mult_zero_one(), ecmult_const_random_mult(), ge_equals_ge(), ge_equals_gej(), generate_scalar(), main(), random_ber_signature(), random_fe_non_zero(), run_context_tests(), run_ec_pubkey_parse_test(), run_ecdsa_der_parse(), run_eckey_edge_case_test(), run_ecmult_chain(), run_field_convert(), run_field_inv(), run_field_inv_all_var(), run_field_inv_var(), run_field_misc(), run_hmac_sha256_tests(), run_point_times_order(), run_rfc6979_hmac_sha256_tests(), run_scalar_tests(), run_scratch_tests(), run_sha256_tests(), run_wnaf(), scalar_test(), secp256k1_context_destroy(), secp256k1_context_set_error_callback(), secp256k1_context_set_illegal_callback(), secp256k1_ecmult_wnaf(), secp256k1_fe_inv_var(), secp256k1_scalar_inverse_var(), test_bad_scalar(), test_constant_wnaf(), test_constant_wnaf_negate(), test_ec_combine(), test_ecdh_api(), test_ecdh_generator_basepoint(), test_ecdsa_der_parse(), test_ecdsa_edge_cases(), test_ecdsa_end_to_end(), test_ecdsa_recovery_api(), test_ecdsa_recovery_edge_cases(), test_ecdsa_recovery_end_to_end(), test_ecdsa_sign_verify(), test_ecmult_constants(), test_ecmult_gen_blind(), test_ecmult_gen_blind_reset(), test_ecmult_multi(), test_ecmult_multi_batch_size_helper(), test_ecmult_multi_batching(), test_ecmult_multi_pippenger_max_points(), test_exhaustive_addition(), test_exhaustive_sign(), test_exhaustive_verify(), test_fixed_wnaf(), test_fixed_wnaf_small(), test_fixed_wnaf_small_helper(), test_ge(), test_group_decompress(), test_num_add_sub(), test_num_jacobi(), test_num_mod(), test_num_negate(), test_point_times_order(), test_rand_bits(), test_rand_int(), test_random_pubkeys(), test_secp256k1_pippenger_bucket_window_inv(), test_sqrt(), and test_wnaf().
◆ EXPECT
#define EXPECT | ( | x, | |
c | |||
) | (x) |
Definition at line 42 of file util.h.
Referenced by secp256k1_context_create().
◆ I64FORMAT
◆ I64uFORMAT
◆ SECP256K1_RESTRICT
◆ TEST_FAILURE
#define TEST_FAILURE | ( | msg | ) |
◆ VERIFY_CHECK
#define VERIFY_CHECK | ( | cond | ) | do { (void)(cond); } while(0) |
Definition at line 67 of file util.h.
Referenced by random_field_element_magnitude(), run_field_misc(), secp256k1_context_randomize(), secp256k1_ec_privkey_negate(), secp256k1_ec_privkey_tweak_add(), secp256k1_ec_privkey_tweak_mul(), secp256k1_ec_pubkey_create(), secp256k1_ec_pubkey_negate(), secp256k1_ec_pubkey_parse(), secp256k1_ec_pubkey_serialize(), secp256k1_ec_pubkey_tweak_add(), secp256k1_ec_pubkey_tweak_mul(), secp256k1_ec_seckey_verify(), secp256k1_ecdh(), secp256k1_ecdsa_recover(), secp256k1_ecdsa_sig_recover(), secp256k1_ecdsa_sig_sign(), secp256k1_ecdsa_sign(), secp256k1_ecdsa_sign_recoverable(), secp256k1_ecdsa_signature_normalize(), secp256k1_ecdsa_signature_parse_compact(), secp256k1_ecdsa_signature_parse_der(), secp256k1_ecdsa_signature_serialize_compact(), secp256k1_ecdsa_signature_serialize_der(), secp256k1_ecdsa_verify(), secp256k1_ecmult_const(), secp256k1_ecmult_gen_context_build(), secp256k1_ecmult_odd_multiples_table(), secp256k1_ecmult_odd_multiples_table_storage_var(), secp256k1_ecmult_strauss_wnaf(), secp256k1_ecmult_wnaf(), secp256k1_fe_cmp_var(), secp256k1_fe_get_b32(), secp256k1_fe_inv_all_var(), secp256k1_fe_inv_var(), secp256k1_fe_is_odd(), secp256k1_fe_is_zero(), secp256k1_fe_mul(), secp256k1_fe_mul_inner(), secp256k1_fe_negate(), secp256k1_fe_normalize(), secp256k1_fe_normalize_var(), secp256k1_fe_normalize_weak(), secp256k1_fe_normalizes_to_zero(), secp256k1_fe_normalizes_to_zero_var(), secp256k1_fe_sqr(), secp256k1_fe_sqr_inner(), secp256k1_fe_sqrt(), secp256k1_fe_to_storage(), secp256k1_ge_set_all_gej_var(), secp256k1_ge_to_storage(), secp256k1_gej_add_ge(), secp256k1_gej_add_ge_var(), secp256k1_gej_add_var(), secp256k1_gej_double_nonzero(), secp256k1_gej_eq_x_var(), secp256k1_gej_rescale(), secp256k1_num_add_abs(), secp256k1_num_get_bin(), secp256k1_num_jacobi(), secp256k1_num_mod_inverse(), secp256k1_num_mul(), secp256k1_num_set_bin(), secp256k1_num_sub_abs(), secp256k1_pubkey_save(), secp256k1_scalar_add(), secp256k1_scalar_cadd_bit(), secp256k1_scalar_get_bits(), secp256k1_scalar_get_bits_var(), secp256k1_scalar_inverse(), secp256k1_scalar_mul_512(), secp256k1_scalar_mul_shift_var(), secp256k1_scalar_reduce(), secp256k1_scalar_reduce_512(), secp256k1_scalar_shr_int(), secp256k1_scalar_sqr_512(), secp256k1_scratch_allocate_frame(), secp256k1_scratch_deallocate_frame(), secp256k1_scratch_destroy(), secp256k1_scratch_space_create(), and secp256k1_wnaf_const().
◆ VERIFY_SETUP
Function Documentation
◆ checked_malloc()
|
static |
Definition at line 71 of file util.h.
References secp256k1_callback_call().
Referenced by secp256k1_context_clone(), secp256k1_context_create(), secp256k1_ecmult_context_build(), secp256k1_ecmult_context_clone(), secp256k1_ecmult_gen_context_build(), secp256k1_ecmult_gen_context_clone(), secp256k1_scratch_allocate_frame(), secp256k1_scratch_create(), test_ecmult_multi_batching(), and test_ge().
◆ checked_realloc()
|
static |
Definition at line 79 of file util.h.
References secp256k1_callback_call().
◆ secp256k1_callback_call()
|
static |
Definition at line 23 of file util.h.
References secp256k1_callback::data, and secp256k1_callback::fn.
Referenced by checked_malloc(), checked_realloc(), and secp256k1_context_create().