FandV: Fan and Vercauteren encryption scheme

Description Usage Details Examples

Description

The Fan and Vercauteren scheme is implemented in this package.

Usage

1
p <- pars("FandV")

Details

Description of the scheme.

Examples

1
2
3
4
5
6
7
8
9
# Benchmark the performance of the scheme
library(microbenchmark)
p <- pars("FandV")
microbenchmark({ keys <- keygen(p) }, unit="ms")
microbenchmark({ ct1 <- enc(keys$pk, 2) }, unit="ms")
ct2 <- enc(keys$pk, 3)
microbenchmark({ ct1 + ct2 }, unit="ms")
microbenchmark({ ct1 * ct2 }, unit="ms")
microbenchmark({ dec(keys$sk, ct1) }, unit="ms")

iamtrask/R-Homomorphic-Encryption-Package documentation built on May 29, 2019, 2:56 p.m.