botan-low-0.0.1.0: src/Botan/Low/PubKey/DH.hs
{-|
Module : Botan.Low.DSA
Description : Algorithm specific key operations: Diffie Hellman
Copyright : (c) Leo D, 2023
License : BSD-3-Clause
Maintainer : leo@apotheca.io
Stability : experimental
Portability : POSIX
-}
module Botan.Low.PubKey.DH where
import qualified Data.ByteString as ByteString
import Botan.Bindings.PubKey.DH
import Botan.Low.Error
import Botan.Low.Make
import Botan.Low.MPI
import Botan.Low.Prelude
import Botan.Low.PubKey
privKeyLoadDH
:: MP -- ^ __p__: prime order of a Z_p group
-> MP -- ^ __g__: group generator
-> MP -- ^ __x__: private key
-> IO PrivKey -- ^ __key__: variable populated with key material
privKeyLoadDH = mkPrivKeyLoad3 botan_privkey_load_dh
pubKeyLoadDH
:: MP -- ^ __p__: prime order of a Z_p group
-> MP -- ^ __g__: group generator
-> MP -- ^ __y__: public key
-> IO PubKey -- ^ __key__: variable populated with key material
pubKeyLoadDH = mkPubKeyLoad3 botan_pubkey_load_dh