HomomorphicEncryption-package: Homomorphic Encryption

Description Details Author(s) References Examples

Description

This package provides easy to use implementations of some homomorphic encryption schemes. An encryption scheme is said to be homomorphic when certain functions can be applied directly to the cipher text in such a way that decrypting the result renders the same answer as if the function had been applied to the unencrypted data.

Details

Package: HomomorphicEncryption
Type: Package
Version: 0.2
Date: 2015-08-19
License: GPL-2

Author(s)

Louis Aslett

Maintainer: Louis Aslett <aslett@stats.ox.ac.uk>

References

Aslett, L. J. M., Esperan<c3><a7>a, P. M. and Holmes, C. C. (2015), A review of homomorphic encryption and software tools for encrypted statistical machine learning. Technical report, University of Oxford.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# Generate cryptographic parameters
p <- pars("FandV")

# Create public/private keypair
keys <- keygen(p)

# Encrypt the values 2 and 3
ct1 <- enc(keys$pk, 2)
ct2 <- enc(keys$pk, 3)

# Homomorphically add the cipertexts together
ct <- ct1 + ct2

# Decrypt to 5, the result of applying + to plain messages
dec(keys$sk, ct)

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