Skip to content

KULeuven-COSIC/ppknn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ppknn

Rust

This is the code used in the paper "Revisiting Oblivious Top-k Selection with Applications to Secure k-NN Classification" by Kelong Cong, Robin Geelen, Jiayi Kang and Jeongeun Park.

WARNING:

This is proof-of-concept implementation. It may contain bugs and security issues. Please do not use in production systems.

Building and testing

Only tested on x84-64, on Linux.

cargo build --release
cargo test --release # might take a few minutes

Running

Use ./target/release/ppknn -h to see the available options. An example is shown below.

./target/release/ppknn --file-name data/dummy.csv --model-size 40 --test-size 4 -k 3

Providing a .csv file for the --file-name argument is mandatory. This file holds the training and testing data and should not contain values higher than 255.

For running longer experiments, especially to reproduce the results from the paper, see the scripts scripts/bench-cancer.sh and scripts/bench-mnist.sh.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published