This is an official implementation of HIBP-IPFE proposed by our paper "Privacy-enhanced Data Sharing Systems from Hierarchical ID-based Puncturable Functional Encryption with Inner Product Predicates".
This project provides PoC implementations to evaluate the performance of the following schemes, which adopts the PBC library with Type-A pairing (160, 512) for 80-bit security.
- Our scheme: Hierarchical identity-based puncturable inner product functional encryption (HIBP-IPFE)
- SDH+21's work: Hierarchical identity-based inner product functional encryption
-
SDH+21:
python3 HIB-IPFE.py
-
Ours:
python3 HIBP-IPFE.py
## Key generation algorithm
python3 ./Test performance/keygen.py
## Encryption algorithm
python3 ./Test performance/enc.py
## Decryption algorithm
python3 ./Test performance/dec.py
## Key delegation algorithm
python3 ./Test performance/keydel.py
## Key puncture algorithm
python3 ./Test performance/keypun.py
Key Generation | Encryption | Decryption |
---|---|---|
![]() |
![]() |
![]() |
Key Delegation | Key Puncture |
---|---|
![]() |
![]() |