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