Go to the documentation of this file.
21 #include <amcl/fp12_BN254.h>
22 #include <amcl/ecp_BN254.h>
23 #include <amcl/ecp2_BN254.h>
55 ECP2_BN254 part_G2[2];
56 FP12_BN254 part_GT[2];
Functions for policy conversion needed for ABE schemes.
void cfe_fame_init(cfe_fame *fame)
void cfe_fame_free(cfe_fame *fame)
void cfe_fame_sec_key_free(cfe_fame_sec_key *sk)
struct cfe_fame_sec_key cfe_fame_sec_key
void cfe_fame_attrib_keys_init(cfe_fame_attrib_keys *keys, size_t num_attrib)
void cfe_fame_cipher_free(cfe_fame_cipher *cipher)
void cfe_fame_generate_attrib_keys(cfe_fame_attrib_keys *keys, int *gamma, size_t num_attrib, cfe_fame_sec_key *sk, cfe_fame *fame)
void cfe_fame_generate_master_keys(cfe_fame_pub_key *pk, cfe_fame_sec_key *sk, cfe_fame *fame)
struct cfe_fame_pub_key cfe_fame_pub_key
struct cfe_fame_cipher cfe_fame_cipher
void cfe_fame_cipher_init(cfe_fame_cipher *cipher, cfe_msp *msp)
void cfe_fame_encrypt(cfe_fame_cipher *cipher, FP12_BN254 *msg, cfe_msp *msp, cfe_fame_pub_key *pk, cfe_fame *fame)
void cfe_fame_attrib_keys_free(cfe_fame_attrib_keys *keys)
void cfe_fame_sec_key_init(cfe_fame_sec_key *sk)
struct cfe_fame_attrib_keys cfe_fame_attrib_keys
Vector struct and operations.
cfe_error cfe_fame_decrypt(FP12_BN254 *res, cfe_fame_cipher *cipher, cfe_fame_attrib_keys *keys, cfe_fame *fame)