package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Oct 5, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
Ciphertext is an Elgamal ciphertext C = (g^r, Mh^r)
PublicKey is Elgamal public key (g, h= g^x)
Encrypt returns an Elgamal ciphertext of elliptic curve point M
and the randomness used to compute it
EncryptZr encrypts a message m in Zr using Elgamal encryption
EncryptZr returns C = (g^r, g^mh^r) and randomness r
SecretKey is Elgamal secret key x
Decrypt returns a elliptic curve point M such that C = (g^r, Mh^r)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.