https://github.com/filipeom/csp
Cryptography and Security Protocols project
https://github.com/filipeom/csp
Last synced: 4 months ago
JSON representation
Cryptography and Security Protocols project
- Host: GitHub
- URL: https://github.com/filipeom/csp
- Owner: filipeom
- Created: 2020-04-24T17:47:17.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-03T00:20:02.000Z (almost 5 years ago)
- Last Synced: 2024-12-27T06:41:42.497Z (6 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
% Trapdoor Hash Functions and Their Applications
% Jorge Martins, Filipe Marques
% 31 May 2020In this project we implemented a TDH construction from the DDH in [DGI+19], from the project list. To demonstrate the applications of this constructions we implemented the Rate-1 OT protocol in section 5.3.
## Project Structure
```
.
|-- bOT.py
|-- __init__.py
|-- README.md
`-- tdh_ddh.py
```* `tdh_ddh.py` - code that contains the TDH.
* `bOT.py` - code that implements the OT protocol.## Requirements
In this project we require the `pycrypto` python library. If not already installed use:
```sh
sudo python -m pip install pycrypto
```## How to use
`bOT.py` takes in tree arguments as input:
* `sp` - security parameter
* `k` - number of bits in the secrets
* `n` - number of secretsTo execute with `sp=16`, `k=8`, `n=16` do:
```sh
python bOT.py 16 8 16
```