Copyright | (c) Leo D 2023 |
---|---|
License | BSD-3-Clause |
Maintainer | leo@apotheca.io |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- kemEncrypt :: a
- kemDecrypt :: a
- type KEMSharedKey = KEMSharedKey
- type KEMEncapsulatedKey = KEMEncapsulatedKey
- kemSharedKeyLength :: a
- kemEncapsulatedKeyLength :: a
- data KEMEncrypt
- destroyKEMEncrypt :: MonadIO m => KEMEncrypt -> m ()
- newKEMEncrypt :: MonadIO m => PubKey -> KDF -> m KEMEncrypt
- kemEncryptSharedKeyLength :: MonadIO m => KEMEncrypt -> Int -> m Int
- kemEncryptEncapsulatedKeyLength :: MonadIO m => KEMEncrypt -> m Int
- kemEncryptCreateSharedKey :: MonadRandomIO m => KEMEncrypt -> ByteString -> Int -> m (KEMSharedKey, KEMEncapsulatedKey)
- data KEMDecrypt
- destroyKEMDecrypt :: MonadIO m => KEMDecrypt -> m ()
- newKEMDecrypt :: MonadIO m => PrivKey -> KDF -> m KEMDecrypt
- kemDecryptSharedKeyLength :: MonadIO m => KEMDecrypt -> Int -> m Int
- kemDecryptSharedKey :: MonadIO m => KEMDecrypt -> ByteString -> KEMEncapsulatedKey -> Int -> m KEMSharedKey
Thing
Usage
KEM Encryption
kemEncrypt :: a Source #
kemDecrypt :: a Source #
Associated types
type KEMSharedKey = KEMSharedKey Source #
type KEMEncapsulatedKey = KEMEncapsulatedKey Source #
Accessors
kemSharedKeyLength :: a Source #
Data type
data KEMEncrypt Source #
Destructor
destroyKEMEncrypt :: MonadIO m => KEMEncrypt -> m () Source #
Initializers
newKEMEncrypt :: MonadIO m => PubKey -> KDF -> m KEMEncrypt Source #
Accessors
kemEncryptSharedKeyLength :: MonadIO m => KEMEncrypt -> Int -> m Int Source #
kemEncryptEncapsulatedKeyLength :: MonadIO m => KEMEncrypt -> m Int Source #
Mutable Algorithm
kemEncryptCreateSharedKey :: MonadRandomIO m => KEMEncrypt -> ByteString -> Int -> m (KEMSharedKey, KEMEncapsulatedKey) Source #
KEM Decryption
Data type
data KEMDecrypt Source #
Destructor
destroyKEMDecrypt :: MonadIO m => KEMDecrypt -> m () Source #
Initializers
newKEMDecrypt :: MonadIO m => PrivKey -> KDF -> m KEMDecrypt Source #
Accessors
kemDecryptSharedKeyLength :: MonadIO m => KEMDecrypt -> Int -> m Int Source #
Mutable Algorithm
kemDecryptSharedKey :: MonadIO m => KEMDecrypt -> ByteString -> KEMEncapsulatedKey -> Int -> m KEMSharedKey Source #