Copyright | (c) Leo D 2023 |
---|---|
License | BSD-3-Clause |
Maintainer | leo@apotheca.io |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
MkDecrypt | |
|
decryptDestroy :: Decrypt -> IO () Source #
:: Decrypt | op |
-> ByteString | ciphertext |
-> IO ByteString | plaintext |