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.KeyEncapsulation

Description

 
Synopsis

Documentation

data BotanPKOpKEMEncryptStruct Source #

Opaque KEM encrypt struct

newtype BotanPKOpKEMEncrypt Source #

Botan KEM encrypt object

botan_pk_op_kem_encrypt_shared_key_length Source #

Arguments

:: BotanPKOpKEMEncrypt

op

-> CSize

desired_shared_key_length

-> Ptr CSize

output_shared_key_length

-> IO CInt 

botan_pk_op_kem_encrypt_create_shared_key Source #

Arguments

:: BotanPKOpKEMEncrypt

op

-> BotanRNG

rng

-> ConstPtr Word8

salt[]

-> CSize

salt_len

-> CSize

desired_shared_key_len

-> Ptr Word8

shared_key[]

-> Ptr CSize

shared_key_len

-> Ptr Word8

encapsulated_key[]

-> Ptr CSize

encapsulated_key_len

-> IO CInt 

data BotanPKOpKEMDecryptStruct Source #

Opaque KEM decrypt struct

newtype BotanPKOpKEMDecrypt Source #

Botan KEM decrypt object

botan_pk_op_kem_decrypt_shared_key_length Source #

Arguments

:: BotanPKOpKEMDecrypt

op

-> CSize

desired_shared_key_length

-> Ptr CSize

output_shared_key_length

-> IO CInt 

botan_pk_op_kem_decrypt_shared_key Source #

Arguments

:: BotanPKOpKEMDecrypt

op

-> ConstPtr Word8

salt[]

-> CSize

salt_len

-> ConstPtr Word8

encapsulated_key[]

-> CSize

encapsulated_key_len

-> CSize

desired_shared_key_len

-> Ptr Word8

shared_key[]

-> Ptr CSize

shared_key_len

-> IO CInt