Description Usage Arguments Details Value Author(s) See Also Examples
This encrypts an integer message under one of the homomorphic encryption schemes supported by this package.
1 | enc(pk, m)
|
pk |
a public key for any scheme as generated by the |
m |
an integer to be encrypted. Note that the permissable range of values
for |
The scheme to use is determined by the public key which contains the parameter values for that scheme as part of it.
If a symmetric key scheme is being used, then the secret key should be provided
for the pk
argument.
A ciphertext under the encryption scheme, encrypted using the public key provided.
Louis Aslett
keygen
to create public/private keypairs;
dec
to decrypt the ciphertext generated by this function.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.