CiFEr
hash.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018 XLAB d.o.o.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef CIFER_HASH_H
18 #define CIFER_HASH_H
19 
20 #include <amcl/ecp_BN254.h>
21 #include <amcl/ecp2_BN254.h>
22 
23 #include "cifer/data/vec.h"
24 #include "cifer/internal/str.h"
25 
39 void cfe_hash_G1(ECP_BN254 *g, cfe_string *str);
40 
48 void cfe_hash_G2(ECP2_BN254 *g, cfe_string *str);
49 
57 void cfe_vec_to_string(cfe_string *out, cfe_vec *v);
58 
59 #endif
str.h
Internal functions for dealing with strings.
cfe_hash_G2
void cfe_hash_G2(ECP2_BN254 *g, cfe_string *str)
cfe_vec
Definition: vec.h:41
cfe_vec_to_string
void cfe_vec_to_string(cfe_string *out, cfe_vec *v)
cfe_hash_G1
void cfe_hash_G1(ECP_BN254 *g, cfe_string *str)
vec.h
Vector struct and operations.
cfe_string
Definition: str.h:32