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 HaskellNone
LanguageGHC2021

Botan.Bindings.PubKey.KeyAgreement

Description

 
Synopsis

Documentation

data BotanPKOpKeyAgreementStruct Source #

Opaque key agreement struct

newtype BotanPKOpKeyAgreement Source #

Botan key agreement object

botan_pk_op_key_agreement_destroy :: FinalizerPtr BotanPKOpKeyAgreementStruct Source #

Destroy a key agreement object

pattern BOTAN_PUBKEY_KEY_AGREEMENT_FLAGS_NONE :: (Eq a, Num a) => a Source #

botan_pk_op_key_agreement_create Source #

Arguments

:: Ptr BotanPKOpKeyAgreement

op

-> BotanPrivKey

key

-> ConstPtr CChar

kdf

-> Word32

flags

-> IO CInt 

botan_pk_op_key_agreement_export_public Source #

Arguments

:: BotanPrivKey

key

-> Ptr Word8

out[]

-> Ptr CSize

out_len

-> IO CInt 

botan_pk_op_key_agreement_size Source #

Arguments

:: BotanPKOpKeyAgreement

op

-> Ptr CSize

out_len

-> IO CInt 

botan_pk_op_key_agreement Source #

Arguments

:: BotanPKOpKeyAgreement

op

-> Ptr Word8

out[]

-> Ptr CSize

out_len,

-> ConstPtr Word8

other_key[]

-> CSize

other_key_len

-> ConstPtr Word8

salt[]

-> CSize

salt_len

-> IO CInt