botan-low-0.0.1.0: Low-level Botan bindings
Copyright(c) Leo D 2023
LicenseBSD-3-Clause
Maintainerleo@apotheca.io
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageHaskell2010

Botan.Low.PubKey.ElGamal

Description

 
Synopsis

Algorithm specific key operations: ElGamal

/

privKeyCreateElGamal Source #

Arguments

:: RNG

rng: initialized PRNG

-> Int

pbits: length of the key in bits. Must be at least 1024

-> Int

qbits: order of the subgroup. Must be at least 160

-> IO PrivKey

key: handler to the resulting key

privKeyLoadElGamal Source #

Arguments

:: MP

p: prime order of a Z_p group

-> MP

g: group generator

-> MP

x: public key

-> IO PrivKey

key: variable populated with key material

pubKeyLoadElGamal Source #

Arguments

:: MP

p: prime order of a Z_p group

-> MP

g: group generator

-> MP

y: private key

-> IO PubKey

key: variable populated with key material