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 HaskellNone
LanguageGHC2021

Botan.Low.PubKey.Decrypt

Description

 
Synopsis

Public key decryption

newtype Decrypt Source #

Constructors

MkDecrypt 

Fields

withDecrypt :: Decrypt -> (BotanPKOpDecrypt -> IO a) -> IO a Source #

decryptCreate Source #

Arguments

:: PrivKey

key

-> EMEName

padding

-> IO Decrypt 

decryptOutputLength Source #

Arguments

:: Decrypt

op

-> Int

ctext_len

-> IO Int

ptext_len

decrypt Source #

Arguments

:: Decrypt

op

-> ByteString

ciphertext

-> IO ByteString

plaintext