botan-bindings
Copyright(c) 2023-2024 Apotheca Labs
(c) 2024-2025 Haskell Foundation
LicenseBSD-3-Clause
Maintainerjoris@well-typed.com, leo@apotheca.io
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageGHC2021

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