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

Description

 
Synopsis

Documentation

data BotanPKOpEncryptStruct Source #

Opaque encrypt struct

botan_pk_op_encrypt_destroy :: FinalizerPtr BotanPKOpEncryptStruct Source #

Destroy a encrypt object

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

botan_pk_op_encrypt_create Source #

Arguments

:: Ptr BotanPKOpEncrypt

op

-> BotanPubKey

key

-> ConstPtr CChar

padding

-> Word32

flags

-> IO CInt 

botan_pk_op_encrypt_output_length Source #

Arguments

:: BotanPKOpEncrypt

op

-> CSize

ptext_len

-> Ptr CSize

ctext_len

-> IO CInt 

botan_pk_op_encrypt Source #

Arguments

:: BotanPKOpEncrypt

op

-> BotanRNG

rng

-> Ptr Word8

out[]

-> Ptr CSize

out_len

-> Ptr Word8

plaintext[]

-> CSize

plaintext_len

-> IO CInt