Skip to contents

Construct a Paillier private key with the given secret and a public key

Construct a Paillier private key with the given secret and a public key

Format

An R6::R6Class() generator object

See also

PaillierPublicKey() which goes hand-in-hand with this object

Public fields

pubkey

the public key

Methods


Method new()

Create a new private key with given secret lambda and the public key

Usage

PaillierPrivateKey$new(lambda, pubkey)

Arguments

lambda

the secret

pubkey

the public key


Method getLambda()

Return the secret lambda

Usage

PaillierPrivateKey$getLambda()

Returns

lambda


Method decrypt()

Decrypt a message

Usage

PaillierPrivateKey$decrypt(c)

Arguments

c

the message

Returns

the decrypted message


Method clone()

The objects of this class are cloneable with this method.

Usage

PaillierPrivateKey$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.