simplexmq-6.5.0.16: SimpleXMQ message broker
Safe HaskellSafe-Inferred
LanguageHaskell2010

Simplex.Messaging.Crypto.SNTRUP761

Synopsis

Documentation

newtype KEMHybridSecret Source #

Constructors

KEMHybridSecret ScrubbedBytes 

kcbDecrypt :: KEMHybridSecret -> CbNonce -> ByteString -> Either CryptoError ByteString Source #

NaCl crypto_box decrypt with a shared hybrid DH + KEM secret and 192-bit nonce.

kcbEncrypt :: KEMHybridSecret -> CbNonce -> ByteString -> Int -> Either CryptoError ByteString Source #

NaCl crypto_box encrypt with a shared hybrid DH + KEM secret and 192-bit nonce.