| Copyright | (c) 2023-2024 Apotheca Labs (c) 2024-2025 Haskell Foundation |
|---|---|
| License | BSD-3-Clause |
| Maintainer | joris@well-typed.com, leo@apotheca.io |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | Safe-Inferred |
| Language | GHC2021 |
Botan.Low.PubKey.Decrypt
Contents
Description
Synopsis
- newtype Decrypt = MkDecrypt {}
- withDecrypt :: Decrypt -> (BotanPKOpDecrypt -> IO a) -> IO a
- decryptCreate :: PrivKey -> EMEName -> IO Decrypt
- decryptDestroy :: Decrypt -> IO ()
- decryptOutputLength :: Decrypt -> Int -> IO Int
- decrypt :: Decrypt -> ByteString -> IO ByteString
Public key decryption
Constructors
| MkDecrypt | |
Fields | |
withDecrypt :: Decrypt -> (BotanPKOpDecrypt -> IO a) -> IO a Source #
decryptDestroy :: Decrypt -> IO () Source #
Arguments
| :: Decrypt | op |
| -> ByteString | ciphertext |
| -> IO ByteString | plaintext |