CiFEr
|
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) |
Definitions of functions related to hashing.
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.
g | Hash will be saved here |
str | A string to be hashed |
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.
g | Hash will be saved here |
str | A string to be hashed |
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.
out | Result will be saved here |
v | A vector to be converted |