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

Botan.Bindings.PubKey.DH

Description

 
Synopsis

Documentation

botan_privkey_load_dh Source #

Arguments

:: Ptr BotanPrivKey

key: variable populated with key material

-> BotanMP

p: prime order of a Z_p group

-> BotanMP

g: group generator

-> BotanMP

x: private key

-> IO CInt

0 on success, a negative value on failure

Loads Diffie Hellman private key

botan_pubkey_load_dh Source #

Arguments

:: Ptr BotanPubKey

key: variable populated with key material

-> BotanMP

p: prime order of a Z_p group

-> BotanMP

g: group generator

-> BotanMP

y: public key

-> IO CInt

0 on success, a negative value on failure

Loads Diffie Hellman public key