Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
test_point.hpp File Reference
#include "bn.h"
Include dependency graph for test_point.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Point
 
struct  Point::G2
 
struct  Point::G1
 

Macros

#define PUT(x)
 

Functions

const PointselectPoint (const bn::CurveParam &cp)
 

Variables

const struct Point g_pointTbl []
 

Macro Definition Documentation

◆ PUT

#define PUT ( x)
Value:
std::cout << #x << "\t=" << (x) << std::endl;

Definition at line 4 of file test_point.hpp.

Function Documentation

◆ selectPoint()

const Point & selectPoint ( const bn::CurveParam & cp)
inline

Definition at line 59 of file test_point.hpp.

60{
61#ifdef BN_SUPPORT_SNARK
62 if (cp.b != 3 && cp.b != 82) {
63 printf("not support point for b=%d\n", cp.b);
64 exit(1);
65 }
66 return g_pointTbl[cp.b == 3 ? 0 : 1];
67#else
68 if (cp != bn::CurveFp254BNb) {
69 printf("not support except for CurveFp254BNb");
70 exit(1);
71 }
72 return g_pointTbl[0];
73#endif
74}
LOGGING_API void printf(Category category, const char *format,...)
Definition Logging.cpp:30
const CurveParam CurveFp254BNb
Definition bn.h:84
int b
Definition bn.h:67
const struct Point g_pointTbl[]
Here is the caller graph for this function:

Variable Documentation

◆ g_pointTbl

const struct Point g_pointTbl[]