PaillierKeyPair {homomorpheR} | R Documentation |
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
Construct a Paillier public and private key pair given a fixed number of bits
Format
An R6::R6Class()
generator object
Methods
PaillierKeyPair$getPrivateKey()
Return the private key
Public fields
pubkey
the public key
Methods
Public methods
Method new()
Create a new public private key pair with specified number of modulus bits
Usage
PaillierKeyPair$new(modulusBits)
Arguments
modulusBits
the number of bits to use
Returns
a PaillierKeyPair
object
Method getPrivateKey()
Return the private key
Usage
PaillierKeyPair$getPrivateKey()
Returns
the private key
Method clone()
The objects of this class are cloneable with this method.
Usage
PaillierKeyPair$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.
See Also
PaillierPublicKey()
and PaillierPrivateKey()
Examples
keys <- PaillierKeyPair$new(1024)
keys$pubkey
keys$getPrivateKey()
[Package homomorpheR version 0.3 Index]