UltrafastSecp256k1 3.50.0
Ultra high-performance secp256k1 elliptic curve cryptography library
Loading...
Searching...
No Matches
secp256k1::test Namespace Reference

Classes

struct  TestCounters
 

Enumerations

enum class  TestCategory : uint32_t {
  FieldArith = 0x0001 , FieldConversions = 0x0002 , FieldEdgeCases = 0x0004 , FieldInverse = 0x0008 ,
  FieldRepresentations = 0x0010 , FieldBranchless = 0x0020 , FieldOptimal = 0x0040 , ScalarArith = 0x0100 ,
  ScalarConversions = 0x0200 , ScalarEdgeCases = 0x0400 , ScalarEncoding = 0x0800 , PointBasic = 0x1000 ,
  PointScalarMul = 0x2000 , PointInplace = 0x4000 , PointPrecomputed = 0x8000 , PointSerialization = 0x00010000 ,
  PointEdgeCases = 0x00020000 , CTOps = 0x00040000 , CTField = 0x00080000 , CTScalar = 0x00100000 ,
  CTPoint = 0x00200000 , GLV = 0x00400000 , MSM = 0x00800000 , CombGen = 0x01000000 ,
  BatchInverse = 0x02000000 , ECDSA = 0x04000000 , Schnorr = 0x08000000 , ECDH = 0x10000000 ,
  Recovery = 0x20000000 , AllField = 0x007F , AllScalar = 0x0F00 , AllPoint = 0x003F0000 & 0xFFFF0000 ,
  AllCT = 0x003C0000 , AllCore = 0x0FFFFFFF , All = 0xFFFFFFFF
}
 

Functions

constexpr TestCategory operator| (TestCategory a, TestCategory b)
 
constexpr TestCategory operator& (TestCategory a, TestCategory b)
 
constexpr bool has_flag (TestCategory set, TestCategory flag)
 
const char * category_name (TestCategory cat)
 

Variables

constexpr TestCategory ALL_CATEGORIES []
 
constexpr int NUM_CATEGORIES = sizeof(ALL_CATEGORIES) / sizeof(ALL_CATEGORIES[0])
 

Enumeration Type Documentation

◆ TestCategory

enum class secp256k1::test::TestCategory : uint32_t
strong
Enumerator
FieldArith 
FieldConversions 
FieldEdgeCases 
FieldInverse 
FieldRepresentations 
FieldBranchless 
FieldOptimal 
ScalarArith 
ScalarConversions 
ScalarEdgeCases 
ScalarEncoding 
PointBasic 
PointScalarMul 
PointInplace 
PointPrecomputed 
PointSerialization 
PointEdgeCases 
CTOps 
CTField 
CTScalar 
CTPoint 
GLV 
MSM 
CombGen 
BatchInverse 
ECDSA 
Schnorr 
ECDH 
Recovery 
AllField 
AllScalar 
AllPoint 
AllCT 
AllCore 
All 

Definition at line 38 of file test_framework.hpp.

Function Documentation

◆ category_name()

◆ has_flag()

constexpr bool secp256k1::test::has_flag ( TestCategory  set,
TestCategory  flag 
)
inlineconstexpr

Definition at line 97 of file test_framework.hpp.

◆ operator&()

constexpr TestCategory secp256k1::test::operator& ( TestCategory  a,
TestCategory  b 
)
inlineconstexpr

Definition at line 94 of file test_framework.hpp.

◆ operator|()

constexpr TestCategory secp256k1::test::operator| ( TestCategory  a,
TestCategory  b 
)
inlineconstexpr

Definition at line 91 of file test_framework.hpp.

Variable Documentation

◆ ALL_CATEGORIES

constexpr TestCategory secp256k1::test::ALL_CATEGORIES[]
inlineconstexpr

Definition at line 154 of file test_framework.hpp.

◆ NUM_CATEGORIES

constexpr int secp256k1::test::NUM_CATEGORIES = sizeof(ALL_CATEGORIES) / sizeof(ALL_CATEGORIES[0])
inlineconstexpr

Definition at line 185 of file test_framework.hpp.