| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Simplex.Messaging.Crypto.SNTRUP761.Bindings
Documentation
newtype KEMPublicKey Source #
Constructors
| KEMPublicKey ByteString |
Instances
data KEMSecretKey Source #
Instances
newtype KEMCiphertext Source #
Constructors
| KEMCiphertext ByteString |
Instances
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 #