| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Simplex.Messaging.Crypto.SNTRUP761.Bindings
Synopsis
- newtype KEMPublicKey = KEMPublicKey ByteString
- newtype KEMSecretKey = KEMSecretKey ScrubbedBytes
- newtype KEMCiphertext = KEMCiphertext ByteString
- newtype KEMSharedKey = KEMSharedKey ScrubbedBytes
- unsafeRevealKEMSharedKey :: KEMSharedKey -> String
- type KEMKeyPair = (KEMPublicKey, KEMSecretKey)
- sntrup761Keypair :: TVar ChaChaDRG -> IO KEMKeyPair
- sntrup761Enc :: TVar ChaChaDRG -> KEMPublicKey -> IO (KEMCiphertext, KEMSharedKey)
- sntrup761Dec :: KEMCiphertext -> KEMSecretKey -> IO KEMSharedKey
Documentation
newtype KEMPublicKey Source #
Constructors
| KEMPublicKey ByteString |
Instances
newtype KEMSecretKey Source #
Constructors
| KEMSecretKey ScrubbedBytes |
Instances
newtype KEMCiphertext Source #
Constructors
| KEMCiphertext ByteString |
Instances
unsafeRevealKEMSharedKey :: KEMSharedKey -> String Source #
Deprecated: unsafeRevealKEMSharedKey left in code
type KEMKeyPair = (KEMPublicKey, KEMSecretKey) Source #
sntrup761Keypair :: TVar ChaChaDRG -> IO KEMKeyPair Source #
sntrup761Enc :: TVar ChaChaDRG -> KEMPublicKey -> IO (KEMCiphertext, KEMSharedKey) Source #
sntrup761Dec :: KEMCiphertext -> KEMSecretKey -> IO KEMSharedKey Source #