//
pkg.gl
Category
github.com/golangltd/leafltd
src
golang.org
x
crypto
openpgp
elgamal
package
0.0.0-20201102054017-282493799a89
Repository:
https://github.com/golangltd/leafltd.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
5
Dependents
0
Files
90 SLOC
#
Functions
Decrypt
Decrypt takes two integers, resulting from an ElGamal encryption, and returns the plaintext of the message.
Encrypt
Encrypt encrypts the given message to the given public key.
#
Structs
PrivateKey
PrivateKey represents an ElGamal private key.
PublicKey
PublicKey represents an ElGamal public key.