botan-low-0.0.1.0: Low-level Botan bindings
Copyright(c) Leo D 2023
LicenseBSD-3-Clause
Maintainerleo@apotheca.io
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageHaskell2010

Botan.Low.PubKey.Encrypt

Description

 
Synopsis

Public key encryption

newtype Encrypt Source #

Constructors

MkEncrypt 

Fields

withEncrypt :: Encrypt -> (BotanPKOpEncrypt -> IO a) -> IO a Source #

encryptCreate Source #

Arguments

:: PubKey

key

-> EMEName

padding

-> IO Encrypt

op

encryptOutputLength Source #

Arguments

:: Encrypt

op

-> Int

ptext_len

-> IO Int

ctext_len

encrypt Source #

Arguments

:: Encrypt

op

-> RNG

rng

-> ByteString

plaintext[]

-> IO ByteString

ciphertext[]