Fabcoin Core  0.16.2
P2P Digital Currency
Macros | Functions
tests_exhaustive.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "include/secp256k1.h"
#include "group.h"
#include "secp256k1.c"
#include "testrand_impl.h"
Include dependency graph for tests_exhaustive.c:

Go to the source code of this file.

Macros

#define EXHAUSTIVE_TEST_ORDER   13
 
#define EXHAUSTIVE_TEST_LAMBDA   9 /* cube root of 1 mod 13 */
 

Functions

void ge_equals_ge (const secp256k1_ge *a, const secp256k1_ge *b)
 stolen from tests.c More...
 
void ge_equals_gej (const secp256k1_ge *a, const secp256k1_gej *b)
 
void random_fe (secp256k1_fe *x)
 
int secp256k1_nonce_function_smallint (unsigned char *nonce32, const unsigned char *msg32, const unsigned char *key32, const unsigned char *algo16, void *data, unsigned int attempt)
 END stolen from tests.c. More...
 
void test_exhaustive_addition (const secp256k1_ge *group, const secp256k1_gej *groupj, int order)
 
void test_exhaustive_ecmult (const secp256k1_context *ctx, const secp256k1_ge *group, const secp256k1_gej *groupj, int order)
 
void r_from_k (secp256k1_scalar *r, const secp256k1_ge *group, int k)
 
void test_exhaustive_verify (const secp256k1_context *ctx, const secp256k1_ge *group, int order)
 
void test_exhaustive_sign (const secp256k1_context *ctx, const secp256k1_ge *group, int order)
 
int main (void)
 

Macro Definition Documentation

#define EXHAUSTIVE_TEST_LAMBDA   9 /* cube root of 1 mod 13 */

Definition at line 21 of file tests_exhaustive.c.

#define EXHAUSTIVE_TEST_ORDER   13

Definition at line 20 of file tests_exhaustive.c.

Function Documentation

void ge_equals_ge ( const secp256k1_ge a,
const secp256k1_ge b 
)

stolen from tests.c

Definition at line 35 of file tests_exhaustive.c.

Here is the caller graph for this function:

void ge_equals_gej ( const secp256k1_ge a,
const secp256k1_gej b 
)

Definition at line 44 of file tests_exhaustive.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( void  )

Definition at line 414 of file tests_exhaustive.c.

Here is the call graph for this function:

void r_from_k ( secp256k1_scalar r,
const secp256k1_ge group,
int  k 
)

Definition at line 185 of file tests_exhaustive.c.

Here is the caller graph for this function:

void random_fe ( secp256k1_fe x)

Definition at line 61 of file tests_exhaustive.c.

Here is the caller graph for this function:

int secp256k1_nonce_function_smallint ( unsigned char *  nonce32,
const unsigned char *  msg32,
const unsigned char *  key32,
const unsigned char *  algo16,
void *  data,
unsigned int  attempt 
)

END stolen from tests.c.

Definition at line 72 of file tests_exhaustive.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void test_exhaustive_addition ( const secp256k1_ge group,
const secp256k1_gej groupj,
int  order 
)

Definition at line 103 of file tests_exhaustive.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void test_exhaustive_ecmult ( const secp256k1_context ctx,
const secp256k1_ge group,
const secp256k1_gej groupj,
int  order 
)

Definition at line 163 of file tests_exhaustive.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void test_exhaustive_sign ( const secp256k1_context ctx,
const secp256k1_ge group,
int  order 
)

Definition at line 245 of file tests_exhaustive.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void test_exhaustive_verify ( const secp256k1_context ctx,
const secp256k1_ge group,
int  order 
)

Definition at line 195 of file tests_exhaustive.c.

Here is the call graph for this function:

Here is the caller graph for this function: