Learn R Programming

homomorpheR (version 0.2-2)

PaillierKeyPair: Construct a Paillier public and private key pair given a fixed number of bits

Description

Construct a Paillier public and private key pair given a fixed number of bits

Usage

PaillierKeyPair

Arguments

Format

An R6Class generator object

Fields

pubkey

the Paillier public key

Methods

PaillierKeyPair$new(modulusBits)

Create a new private key with specified number of modulus bits

PaillierKeyPair$getPrivateKey()

Return the private key

See Also

PaillierPublicKey and PaillierPrivateKey

Examples

Run this code
# NOT RUN {
keys <- PaillierKeyPair$new(1024)
keys$pubkey
keys$getPrivateKey()

# }

Run the code above in your browser using DataLab