| 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.Encrypt
Contents
Description
Synopsis
- newtype Encrypt = MkEncrypt {}
- withEncrypt :: Encrypt -> (BotanPKOpEncrypt -> IO a) -> IO a
- encryptCreate :: PubKey -> EMEName -> IO Encrypt
- encryptDestroy :: Encrypt -> IO ()
- encryptOutputLength :: Encrypt -> Int -> IO Int
- encrypt :: Encrypt -> RNG -> ByteString -> IO ByteString
Public key encryption
Constructors
| MkEncrypt | |
Fields | |
withEncrypt :: Encrypt -> (BotanPKOpEncrypt -> IO a) -> IO a Source #
encryptDestroy :: Encrypt -> IO () Source #
Arguments
| :: Encrypt | op |
| -> RNG | rng |
| -> ByteString | plaintext[] |
| -> IO ByteString | ciphertext[] |