Versions in this module Expand all Collapse all v0 v0.1.1 Apr 18, 2023 v0.1.0 Apr 15, 2023 Changes in this version + func Decrypt(privKey *elgamal.PrivateKey, d []byte) ([]byte, error) + func ElgamalGenerate(priv *elgamal.PrivateKey, rand io.Reader) (err error) + func Encrypt(pubKey *elgamal.PublicKey, input []byte) ([]byte, error) + func GenerateKeys() (*elgamal.PrivateKey, *elgamal.PublicKey, error) + type Decrypter interface + Decrypt func(data []byte) ([]byte, error) + type ElgPrivateKey [256]byte + func (elg ElgPrivateKey) Len() int + func (elg ElgPrivateKey) NewDecrypter() (Decrypter, error) + type ElgPublicKey [256]byte + func (elg ElgPublicKey) Len() int + func (elg ElgPublicKey) NewEncrypter() (Encrypter, error) + type ElgamalEncryption struct + func (elg *ElgamalEncryption) Encrypt(data []byte) ([]byte, error) + func (elg *ElgamalEncryption) EncryptPadding(data []byte, zeroPadding bool) ([]byte, error) + type Encrypter interface + Encrypt func(data []byte) ([]byte, error) + type PrivateEncryptionKey interface + NewDecrypter func() (Decrypter, error) + type PublicEncryptionKey interface + Len func() int + NewEncrypter func() (Encrypter, error)