25 #define TESTFUN(X) extern __global__ void X(testval_t *testval)
uint64_t fr_t[4]
Subgroup element stored as a 256-bit array (a 4-element little-endian array of uint64_t)....
void FrTestFFT()
Tests fft and inverse fft over Fr using KAT.
__global__ void FrTestCommutativeAdd(testval_t *testval)
Test the cumulative property of addition.
__global__ void FrTestAssociativeAdd(testval_t *testval)
Test the associative property of addition.
__global__ void FrTestAddSub(testval_t *testval)
Test for the fr_addsub kernel.
__global__ void FrTestCmp(testval_t *testval)
Test for the comparison function; checks for inconsistencies in the following properties:
__global__ void FrTestSubDistributiveLeft(testval_t *testval)
Check the distributive property of multiplication in Fr (left of subtraction):
__global__ void FrTestAddDistributiveRight(testval_t *testval)
Check the distributive property of multiplication in Fr (right of addition):
__global__ void FrTestAddDistributiveLeft(testval_t *testval)
Check the distributive property of multiplication in Fr (left of addition):
__global__ void FrTestSubDistributiveRight(testval_t *testval)
Check the distributive property of multiplication in Fr (right of subtraction):
__global__ void FrTestFibonacci(testval_t *)
Test addition and subtraction in Fr using a fibonacci sequence (chain dependency) from 1 to ITERATION...
__global__ void FrTestKAT(testval_t *)
tests using KAT for: fr_cpy, fr_reduce4, fr_eq, fr_neq, fr_neg, fr_x2, fr_x3, fr_add,...
__global__ void FrTestAssociativeMul(testval_t *testval)
Test of the associative property of multiplication (x*y)*z == x*(y*z)
__global__ void FrTestCommutativeMul(testval_t *testval)
Test of the commutative property of multiplication x*y == y*x.
__global__ void FrTestMulConst(testval_t *testval)
Test multiply by constant on Fr:
__global__ void FrTestSub(testval_t *testval)
Test of subtraction x == y-(y-x)