Description Usage Arguments Details Value Author(s) See Also Examples
This decrypts an integer message which has been encrypted under one of the homomorphic schemes supported by this package.
1 | dec(sk, ct)
|
sk |
a private/secret key for any scheme as generated by the |
ct |
a ciphertext as produced from a call to |
Note that the scheme specified by the private key, sk
, and the ciphertext,
ct
, must match.
If a symmetric key scheme is being used, then the secret key should be provided
for the sk
argument.
The decrypted integer message. If the value is in the range of a standard
integer in R (-2147483647 to 2147483647) then an integer will be returned,
otherwise a bigz
big integer object from the gmp package
will be returned.
Louis Aslett
enc
to encrypt messages to ciphertexts which this function decrypts.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.