CiFEr
Functions
hash.h File Reference

Definitions of functions related to hashing. More...

Go to the source code of this file.

Functions

void cfe_hash_G1 (ECP_BN254 *g, cfe_string *str)
 
void cfe_hash_G2 (ECP2_BN254 *g, cfe_string *str)
 
void cfe_vec_to_string (cfe_string *out, cfe_vec *v)
 

Detailed Description

Definitions of functions related to hashing.

Function Documentation

◆ cfe_hash_G1()

void cfe_hash_G1 ( ECP_BN254 *  g,
cfe_string str 
)

This function hashes a string into an element of the elliptic group G1 represented by ECP_BN254.

Parameters
gHash will be saved here
strA string to be hashed

◆ cfe_hash_G2()

void cfe_hash_G2 ( ECP2_BN254 *  g,
cfe_string str 
)

This function hashes a string into an element of the elliptic group G2 represented by ECP2_BN254.

Parameters
gHash will be saved here
strA string to be hashed

◆ cfe_vec_to_string()

void cfe_vec_to_string ( cfe_string out,
cfe_vec v 
)

The function converts a vector represented by cfe_vec into a string. This is needed for hashing a vector.

Parameters
outResult will be saved here
vA vector to be converted