print_utils

Debug print routines. More...

Enumerations

enum  PrintUtilFormat { kPrintUtilUnannotated = 0, kPrintUtilAnnotated = 1, kPrintUtilFormatCount = 2 }
 Print format. More...
 

Functions

void PrintBigNum (BigNum const *big_num, char const *var_name)
 Prints BigNum. More...
 
void PrintFfElement (FiniteField const *ff, FfElement const *ff_element, char const *var_name, PrintUtilFormat format)
 Prints finite field element. More...
 
void PrintEcPoint (EcGroup const *g, EcPoint const *ec_point, char const *var_name, PrintUtilFormat format)
 Prints elliptic curve group element. More...
 
void PrintBigNumStr (BigNumStr const *big_num_str, char const *var_name)
 Prints serialized BigNum. More...
 
void PrintFpElemStr (FpElemStr const *fp_elem_str, char const *var_name)
 Prints serialized Fp element. More...
 
void PrintFqElemStr (FqElemStr const *fq_elem_str, char const *var_name)
 Prints serialized Fq element. More...
 
void PrintFq2ElemStr (Fq2ElemStr const *fq2_elem_str, char const *var_name, PrintUtilFormat format)
 Prints serialized Fq2 element. More...
 
void PrintFq6ElemStr (Fq6ElemStr const *fq6_elem_str, char const *var_name, PrintUtilFormat format)
 Prints serialized Fq6 element. More...
 
void PrintFq12ElemStr (Fq12ElemStr const *fq12_elem_str, char const *var_name, PrintUtilFormat format)
 Prints serialized Fq12 element. More...
 
void PrintG1ElemStr (G1ElemStr const *g1_elem_str, char const *var_name, PrintUtilFormat format)
 Prints serialized G1 element. More...
 
void PrintG2ElemStr (G2ElemStr const *g2_elem_str, char const *var_name, PrintUtilFormat format)
 Prints serialized G2 element. More...
 
void PrintGtElemStr (GtElemStr const *gt_elem_str, char const *var_name, PrintUtilFormat format)
 Prints serialized Gt element. More...
 

Detailed Description

Debug print routines.

Defines an API to print formatted versions of the types used for mathematical operations.

If the symbol EPID_ENABLE_DEBUG_PRINT is not defined, all calls to the functions in this module are ignored.

Enumeration Type Documentation

Print format.

Enumerator
kPrintUtilUnannotated 

Unannotated output format.

kPrintUtilAnnotated 

Annotated output format.

kPrintUtilFormatCount 

Count of print formats.

Function Documentation

void PrintBigNum ( BigNum const *  big_num,
char const *  var_name 
)

Prints BigNum.

Macro EPID_ENABLE_DEBUG_PRINT needs to be defined in order to activate this routine; otherwise, it prints nothing.

Parameters
[in]big_numBigNum to be printed
[in]var_nameResult variable name
void PrintBigNumStr ( BigNumStr const *  big_num_str,
char const *  var_name 
)

Prints serialized BigNum.

Macro EPID_ENABLE_DEBUG_PRINT needs to be defined in order to activate this routine; otherwise, it prints nothing.

Parameters
[in]big_num_strSerialized BigNum to be printed
[in]var_nameResult variable name
void PrintEcPoint ( EcGroup const *  g,
EcPoint const *  ec_point,
char const *  var_name,
PrintUtilFormat  format 
)

Prints elliptic curve group element.

Macro EPID_ENABLE_DEBUG_PRINT needs to be defined in order to activate this routine; otherwise, it prints nothing.

Parameters
[in]gElliptic curve group that element to be printed belongs to
[in]ec_pointElliptic curve group element to be printed
[in]var_nameResult variable name
[in]formatOutput format
void PrintFfElement ( FiniteField const *  ff,
FfElement const *  ff_element,
char const *  var_name,
PrintUtilFormat  format 
)

Prints finite field element.

Macro EPID_ENABLE_DEBUG_PRINT needs to be defined in order to activate this routine; otherwise, it prints nothing.

Parameters
[in]ffFinite field that element to be printed belongs to
[in]ff_elementFinite field element to be printed
[in]var_nameResult variable name
[in]formatOutput format
void PrintFpElemStr ( FpElemStr const *  fp_elem_str,
char const *  var_name 
)

Prints serialized Fp element.

Macro EPID_ENABLE_DEBUG_PRINT needs to be defined in order to activate this routine; otherwise, it prints nothing.

Parameters
[in]fp_elem_strSerialized Fp element to be printed
[in]var_nameResult variable name
void PrintFq12ElemStr ( Fq12ElemStr const *  fq12_elem_str,
char const *  var_name,
PrintUtilFormat  format 
)

Prints serialized Fq12 element.

Macro EPID_ENABLE_DEBUG_PRINT needs to be defined in order to activate this routine; otherwise, it prints nothing.

Parameters
[in]fq12_elem_strSerialized Intel(R) EPID Fq12 element to be printed
[in]var_nameResult variable name
[in]formatOutput format
void PrintFq2ElemStr ( Fq2ElemStr const *  fq2_elem_str,
char const *  var_name,
PrintUtilFormat  format 
)

Prints serialized Fq2 element.

Macro EPID_ENABLE_DEBUG_PRINT needs to be defined in order to activate this routine; otherwise, it prints nothing.

Parameters
[in]fq2_elem_strSerialized Fq2 element to be printed
[in]var_nameResult variable name
[in]formatOutput format
void PrintFq6ElemStr ( Fq6ElemStr const *  fq6_elem_str,
char const *  var_name,
PrintUtilFormat  format 
)

Prints serialized Fq6 element.

Macro EPID_ENABLE_DEBUG_PRINT needs to be defined in order to activate this routine; otherwise, it prints nothing.

Parameters
[in]fq6_elem_strSerialized Fq6 element to be printed
[in]var_nameResult variable name
[in]formatOutput format
void PrintFqElemStr ( FqElemStr const *  fq_elem_str,
char const *  var_name 
)

Prints serialized Fq element.

Macro EPID_ENABLE_DEBUG_PRINT needs to be defined in order to activate this routine; otherwise, it prints nothing.

Parameters
[in]fq_elem_strSerialized Fq element to be printed
[in]var_nameResult variable name
void PrintG1ElemStr ( G1ElemStr const *  g1_elem_str,
char const *  var_name,
PrintUtilFormat  format 
)

Prints serialized G1 element.

Macro EPID_ENABLE_DEBUG_PRINT needs to be defined in order to activate this routine; otherwise, it prints nothing.

Parameters
[in]g1_elem_strSerialized G1 element to be printed
[in]var_nameResult variable name
[in]formatOutput format
void PrintG2ElemStr ( G2ElemStr const *  g2_elem_str,
char const *  var_name,
PrintUtilFormat  format 
)

Prints serialized G2 element.

Macro EPID_ENABLE_DEBUG_PRINT needs to be defined in order to activate this routine; otherwise, it prints nothing.

Parameters
[in]g2_elem_strSerialized G2 element to be printed
[in]var_nameResult variable name
[in]formatOutput format
void PrintGtElemStr ( GtElemStr const *  gt_elem_str,
char const *  var_name,
PrintUtilFormat  format 
)

Prints serialized Gt element.

Macro EPID_ENABLE_DEBUG_PRINT needs to be defined in order to activate this routine; otherwise, it prints nothing.

Parameters
[in]gt_elem_strSerialized G2 element to be printed
[in]var_nameResult variable name
[in]formatOutput format