forked from sebastinas/bfe-bf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtbfe-bbg-tools.h
38 lines (32 loc) · 1017 Bytes
/
tbfe-bbg-tools.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef BFE_TBFE_BBG_TOOLSH
#define BFE_TBFE_BBG_TOOLSH
#include <stdbool.h>
#include "include/tbfe-bbg.h"
/**
* Checks if the given public keys are equal.
*
* @param[in] l - the first public key
* @param[in] r - the second public key
*
* @return True if the public keys are equal, false otherwise.
*/
bool tbfe_bbg_public_keys_are_equal(tbfe_bbg_public_key_t* l, tbfe_bbg_public_key_t* r);
/**
* Checks if the given secret keys are equal.
*
* @param[in] l - the first secret key
* @param[in] r - the second secret key
*
* @return True if the secret keys are equal, false otherwise.
*/
bool tbfe_bbg_secret_keys_are_equal(tbfe_bbg_secret_key_t* l, tbfe_bbg_secret_key_t* r);
/**
* Checks if the given ciphertexts are equal.
*
* @param[in] l - the first ciphertext
* @param[in] r - the second ciphertext
*
* @return True if the ciphertexts are equal, false otherwise.
*/
bool tbfe_bbg_ciphertexts_are_equal(tbfe_bbg_ciphertext_t* l, tbfe_bbg_ciphertext_t* r);
#endif