Skip to content

zju-abclab/PIRANA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PIRANA: Faster Multi-query PIR via Constant-weight Codes

PIRANA is a research library and should not be used in production systems. This repository contains the implementation of both single-query PIR and multi-query PIR proposed in the paper.

Dependencies

  • Microsoft SEAL (version>=4.0.0)
  • Microsoft Kuku (version=2.1.0)

Microsoft SEAL and Microsoft Kuku can be installed using the instructions outlined in the repository.

Building the project

The project can be built using the following command.

mkdir build && cd build
cmake ..
make

If SEAL or KUKU is not in your path or installed locally, you can try to add -CMAKE_INSTALL_PREFIX=[PATH TO SEAL/KUKU]in the commond.

Parameters

Option Description Default
--num_payload -n Number of payloads in database 16384
--payload_size -x Byte size of each payload |pl|. 256
--is_batch -b Batch-query PIR or single-query PIR. 0 (single-query PIR)
--num_query -l Number of queries. 1
--is_compress      -c   Select parameters optimized for communication or computation. Available only in batch-query PIR. 0 (Computation friendly)

Example

For single-query PIR

../bin/pirexamples -b 0 -n 16384 -x 256

For multi-query PIR

Computation friendly:

../bin/pirexamples -b 1 -l 256 -n 16384 -x 256 -c 0

Communication friendly:

../bin/pirexamples -b 1 -l 256 -n 16384 -x 256 -c 1 

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published