botan-low
Copyright(c) 2023-2024 Apotheca Labs
(c) 2024-2025 Haskell Foundation
LicenseBSD-3-Clause
Maintainerjoris@well-typed.com, leo@apotheca.io
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageGHC2021

Botan.Low.PubKey.Encrypt

Description

 
Synopsis

Public key encryption

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[]