Skip to content

Generate additive shares of multiplication of two random 32-byte numbers using the correlated oblivious transfers

Notifications You must be signed in to change notification settings

muzaffarbhat07/additive-shares

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate additive shares of multiplication of two random 32-byte numbers using the correlated oblivious transfers

Usage

Pre-requisites
  • openssl library along with its development package libssl-dev
  • trezor-crypto library
Setup
  • clone the project
  • cd additive-shares
  • Run the following commands
gcc -c utils.c -Ipath/to/trezor-crypto/include -Lpath/to/trezor-crypto -ltrezor-crypto -lssl -lcrypto -o utils.o
gcc -c ot.c -Ipath/to/trezor-crypto/include -Lpath/to/trezor-crypto -ltrezor-crypto -lssl -lcrypto -o ot.o
gcc -c additive_shares.c -Ipath/to/trezor-crypto/include -Lpath/to/trezor-crypto -ltrezor-crypto -lssl -lcrypto -o additive_shares.o
gcc app.c utils.o ot.o additive_shares.o -Ipath/to/trezor-crypto/include -Lpath/to/trezor-crypto -ltrezor-crypto -lssl -lcrypto -o app
./app

input/output-1

alt text

input/output-2

alt text

About

Generate additive shares of multiplication of two random 32-byte numbers using the correlated oblivious transfers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages