| Copyright | (c) Leo D 2023 |
|---|---|
| License | BSD-3-Clause |
| Maintainer | leo@apotheca.io |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Botan.Bindings.PubKey.KeyAgreement
Description
Synopsis
- data BotanPKOpKeyAgreementStruct
- newtype BotanPKOpKeyAgreement = MkBotanPKOpKeyAgreement {}
- botan_pk_op_key_agreement_destroy :: FinalizerPtr BotanPKOpKeyAgreementStruct
- pattern BOTAN_PUBKEY_KEY_AGREEMENT_FLAGS_NONE :: (Eq a, Num a) => a
- botan_pk_op_key_agreement_create :: Ptr BotanPKOpKeyAgreement -> BotanPrivKey -> ConstPtr CChar -> Word32 -> IO CInt
- botan_pk_op_key_agreement_export_public :: BotanPrivKey -> Ptr Word8 -> Ptr CSize -> IO CInt
- botan_pk_op_key_agreement_view_public :: BotanPrivKey -> BotanViewContext ctx -> FunPtr (BotanViewBinCallback ctx) -> IO CInt
- botan_pk_op_key_agreement_size :: BotanPKOpKeyAgreement -> Ptr CSize -> IO CInt
- botan_pk_op_key_agreement :: BotanPKOpKeyAgreement -> Ptr Word8 -> Ptr CSize -> ConstPtr Word8 -> CSize -> ConstPtr Word8 -> CSize -> IO CInt
Documentation
data BotanPKOpKeyAgreementStruct Source #
Opaque key agreement struct
newtype BotanPKOpKeyAgreement Source #
Botan key agreement object
Constructors
| MkBotanPKOpKeyAgreement | |
Instances
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_view_public Source #
Arguments
| :: BotanPrivKey | key |
| -> BotanViewContext ctx | ctx |
| -> FunPtr (BotanViewBinCallback ctx) | view |
| -> IO CInt |
botan_pk_op_key_agreement_size Source #
Arguments
| :: BotanPKOpKeyAgreement | op |
| -> Ptr CSize | out_len |
| -> IO CInt |