Bitcoin Core 30.99.0
P2P Digital Currency
Functions | Variables
testutil.h File Reference
#include "field.h"
#include "group.h"
#include "testrand.h"
#include "util.h"
Include dependency graph for testutil.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static void testutil_random_fe (secp256k1_fe *x)
 
static void testutil_random_fe_non_zero (secp256k1_fe *nz)
 
static void testutil_random_fe_magnitude (secp256k1_fe *fe, int m)
 
static void testutil_random_fe_test (secp256k1_fe *x)
 
static void testutil_random_fe_non_zero_test (secp256k1_fe *fe)
 
static void testutil_random_ge_x_magnitude (secp256k1_ge *ge)
 
static void testutil_random_ge_y_magnitude (secp256k1_ge *ge)
 
static void testutil_random_gej_x_magnitude (secp256k1_gej *gej)
 
static void testutil_random_gej_y_magnitude (secp256k1_gej *gej)
 
static void testutil_random_gej_z_magnitude (secp256k1_gej *gej)
 
static void testutil_random_ge_test (secp256k1_ge *ge)
 
static void testutil_random_ge_jacobian_test (secp256k1_gej *gej, const secp256k1_ge *ge)
 
static void testutil_random_gej_test (secp256k1_gej *gej)
 
static void testutil_random_pubkey_test (secp256k1_pubkey *pk)
 
static void testutil_random_scalar_order_test (secp256k1_scalar *num)
 
static void testutil_random_scalar_order (secp256k1_scalar *num)
 
static void testutil_random_scalar_order_b32 (unsigned char *b32)
 

Variables

static const unsigned char secp256k1_group_order_bytes [32]
 

Function Documentation

◆ testutil_random_fe()

static void testutil_random_fe ( secp256k1_fe x)
static

Definition at line 22 of file testutil.h.

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

◆ testutil_random_fe_magnitude()

static void testutil_random_fe_magnitude ( secp256k1_fe fe,
int  m 
)
static

Definition at line 38 of file testutil.h.

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

◆ testutil_random_fe_non_zero()

static void testutil_random_fe_non_zero ( secp256k1_fe nz)
static

Definition at line 32 of file testutil.h.

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

◆ testutil_random_fe_non_zero_test()

static void testutil_random_fe_non_zero_test ( secp256k1_fe fe)
static

Definition at line 64 of file testutil.h.

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

◆ testutil_random_fe_test()

static void testutil_random_fe_test ( secp256k1_fe x)
static

Definition at line 54 of file testutil.h.

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

◆ testutil_random_ge_jacobian_test()

static void testutil_random_ge_jacobian_test ( secp256k1_gej gej,
const secp256k1_ge ge 
)
static

Definition at line 102 of file testutil.h.

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

◆ testutil_random_ge_test()

static void testutil_random_ge_test ( secp256k1_ge ge)
static

Definition at line 90 of file testutil.h.

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

◆ testutil_random_ge_x_magnitude()

static void testutil_random_ge_x_magnitude ( secp256k1_ge ge)
static

Definition at line 70 of file testutil.h.

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

◆ testutil_random_ge_y_magnitude()

static void testutil_random_ge_y_magnitude ( secp256k1_ge ge)
static

Definition at line 74 of file testutil.h.

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

◆ testutil_random_gej_test()

static void testutil_random_gej_test ( secp256k1_gej gej)
static

Definition at line 112 of file testutil.h.

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

◆ testutil_random_gej_x_magnitude()

static void testutil_random_gej_x_magnitude ( secp256k1_gej gej)
static

Definition at line 78 of file testutil.h.

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

◆ testutil_random_gej_y_magnitude()

static void testutil_random_gej_y_magnitude ( secp256k1_gej gej)
static

Definition at line 82 of file testutil.h.

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

◆ testutil_random_gej_z_magnitude()

static void testutil_random_gej_z_magnitude ( secp256k1_gej gej)
static

Definition at line 86 of file testutil.h.

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

◆ testutil_random_pubkey_test()

static void testutil_random_pubkey_test ( secp256k1_pubkey pk)
static

Definition at line 118 of file testutil.h.

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

◆ testutil_random_scalar_order()

static void testutil_random_scalar_order ( secp256k1_scalar num)
static

Definition at line 137 of file testutil.h.

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

◆ testutil_random_scalar_order_b32()

static void testutil_random_scalar_order_b32 ( unsigned char *  b32)
static

Definition at line 150 of file testutil.h.

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

◆ testutil_random_scalar_order_test()

static void testutil_random_scalar_order_test ( secp256k1_scalar num)
static

Definition at line 124 of file testutil.h.

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

Variable Documentation

◆ secp256k1_group_order_bytes

const unsigned char secp256k1_group_order_bytes[32]
static
Initial value:
= {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe,
0xba, 0xae, 0xdc, 0xe6, 0xaf, 0x48, 0xa0, 0x3b,
0xbf, 0xd2, 0x5e, 0x8c, 0xd0, 0x36, 0x41, 0x41
}

Definition at line 15 of file testutil.h.