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

Simplex.Messaging.Crypto.SNTRUP761.Bindings

Documentation

newtype KEMPublicKey Source #

Constructors

KEMPublicKey ByteString 

Instances

Instances details
FromJSON KEMPublicKey Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

parseJSON :: Value -> Parser KEMPublicKey

parseJSONList :: Value -> Parser [KEMPublicKey]

omittedField :: Maybe KEMPublicKey

ToJSON KEMPublicKey Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

toJSON :: KEMPublicKey -> Value

toEncoding :: KEMPublicKey -> Encoding

toJSONList :: [KEMPublicKey] -> Value

toEncodingList :: [KEMPublicKey] -> Encoding

omitField :: KEMPublicKey -> Bool

Show KEMPublicKey Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

showsPrec :: Int -> KEMPublicKey -> ShowS

show :: KEMPublicKey -> String

showList :: [KEMPublicKey] -> ShowS

Eq KEMPublicKey Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

(==) :: KEMPublicKey -> KEMPublicKey -> Bool

(/=) :: KEMPublicKey -> KEMPublicKey -> Bool

Encoding KEMPublicKey Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

smpEncode :: KEMPublicKey -> ByteString Source #

smpDecode :: ByteString -> Either String KEMPublicKey Source #

smpP :: Parser KEMPublicKey Source #

StrEncoding KEMPublicKey Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

strEncode :: KEMPublicKey -> ByteString Source #

strDecode :: ByteString -> Either String KEMPublicKey Source #

strP :: Parser KEMPublicKey Source #

data KEMSecretKey Source #

Instances

Instances details
FromJSON KEMSecretKey Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

parseJSON :: Value -> Parser KEMSecretKey

parseJSONList :: Value -> Parser [KEMSecretKey]

omittedField :: Maybe KEMSecretKey

ToJSON KEMSecretKey Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

toJSON :: KEMSecretKey -> Value

toEncoding :: KEMSecretKey -> Encoding

toJSONList :: [KEMSecretKey] -> Value

toEncodingList :: [KEMSecretKey] -> Encoding

omitField :: KEMSecretKey -> Bool

Show KEMSecretKey Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

showsPrec :: Int -> KEMSecretKey -> ShowS

show :: KEMSecretKey -> String

showList :: [KEMSecretKey] -> ShowS

Eq KEMSecretKey Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

(==) :: KEMSecretKey -> KEMSecretKey -> Bool

(/=) :: KEMSecretKey -> KEMSecretKey -> Bool

Encoding KEMSecretKey Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

smpEncode :: KEMSecretKey -> ByteString Source #

smpDecode :: ByteString -> Either String KEMSecretKey Source #

smpP :: Parser KEMSecretKey Source #

StrEncoding KEMSecretKey Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

strEncode :: KEMSecretKey -> ByteString Source #

strDecode :: ByteString -> Either String KEMSecretKey Source #

strP :: Parser KEMSecretKey Source #

newtype KEMCiphertext Source #

Constructors

KEMCiphertext ByteString 

Instances

Instances details
FromJSON KEMCiphertext Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

parseJSON :: Value -> Parser KEMCiphertext

parseJSONList :: Value -> Parser [KEMCiphertext]

omittedField :: Maybe KEMCiphertext

ToJSON KEMCiphertext Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

toJSON :: KEMCiphertext -> Value

toEncoding :: KEMCiphertext -> Encoding

toJSONList :: [KEMCiphertext] -> Value

toEncodingList :: [KEMCiphertext] -> Encoding

omitField :: KEMCiphertext -> Bool

Show KEMCiphertext Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

showsPrec :: Int -> KEMCiphertext -> ShowS

show :: KEMCiphertext -> String

showList :: [KEMCiphertext] -> ShowS

Eq KEMCiphertext Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Encoding KEMCiphertext Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

smpEncode :: KEMCiphertext -> ByteString Source #

smpDecode :: ByteString -> Either String KEMCiphertext Source #

smpP :: Parser KEMCiphertext Source #

StrEncoding KEMCiphertext Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

strEncode :: KEMCiphertext -> ByteString Source #

strDecode :: ByteString -> Either String KEMCiphertext Source #

strP :: Parser KEMCiphertext Source #

newtype KEMSharedKey Source #

Constructors

KEMSharedKey ScrubbedBytes 

Instances

Instances details
FromJSON KEMSharedKey Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

parseJSON :: Value -> Parser KEMSharedKey

parseJSONList :: Value -> Parser [KEMSharedKey]

omittedField :: Maybe KEMSharedKey

ToJSON KEMSharedKey Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

toJSON :: KEMSharedKey -> Value

toEncoding :: KEMSharedKey -> Encoding

toJSONList :: [KEMSharedKey] -> Value

toEncodingList :: [KEMSharedKey] -> Encoding

omitField :: KEMSharedKey -> Bool

Show KEMSharedKey Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

showsPrec :: Int -> KEMSharedKey -> ShowS

show :: KEMSharedKey -> String

showList :: [KEMSharedKey] -> ShowS

Eq KEMSharedKey Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

(==) :: KEMSharedKey -> KEMSharedKey -> Bool

(/=) :: KEMSharedKey -> KEMSharedKey -> Bool

Encoding KEMSharedKey Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

smpEncode :: KEMSharedKey -> ByteString Source #

smpDecode :: ByteString -> Either String KEMSharedKey Source #

smpP :: Parser KEMSharedKey Source #

StrEncoding KEMSharedKey Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

strEncode :: KEMSharedKey -> ByteString Source #

strDecode :: ByteString -> Either String KEMSharedKey Source #

strP :: Parser KEMSharedKey Source #

FromField KEMSharedKey Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

fromField :: FieldParser KEMSharedKey #

ToField KEMSharedKey Source # 
Instance details

Defined in Simplex.Messaging.Crypto.SNTRUP761.Bindings

Methods

toField :: KEMSharedKey -> SQLData #

sntrup761Keypair :: TVar ChaChaDRG -> IO KEMKeyPair Source #