| Copyright | (c) Leo D 2023 |
|---|---|
| License | BSD-3-Clause |
| Maintainer | leo@apotheca.io |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Botan.Low.PubKey.Decrypt
Contents
Description
Synopsis
- newtype Decrypt = MkDecrypt {
- getDecryptForeignPtr :: ForeignPtr BotanPKOpDecryptStruct
- 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
| |
decryptDestroy :: Decrypt -> IO () Source #
Arguments
| :: Decrypt | op |
| -> ByteString | ciphertext |
| -> IO ByteString | plaintext |