| Safe Haskell | Trustworthy |
|---|---|
| Language | Haskell2010 |
Network.Tox.Crypto.Box
Documentation
Constructors
| PlainText | |
Fields | |
Instances
| Eq PlainText Source # | |
| Read PlainText Source # | |
| Show PlainText Source # | |
| Generic PlainText Source # | |
| Arbitrary PlainText Source # | |
| Binary PlainText Source # | |
| MessagePack PlainText Source # | |
Defined in Network.Tox.Crypto.Box Methods toObject :: PlainText -> Object # fromObject :: (Applicative m, Monad m) => Object -> m PlainText # | |
| type Rep PlainText Source # | |
Defined in Network.Tox.Crypto.Box type Rep PlainText = D1 (MetaData "PlainText" "Network.Tox.Crypto.Box" "toxcore-0.2.11-AzzkmiDUfjL8GGvWK827C9" True) (C1 (MetaCons "PlainText" PrefixI True) (S1 (MetaSel (Just "unPlainText") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString))) | |
data CipherText Source #
Instances
| Eq CipherText Source # | |
Defined in Network.Tox.Crypto.Box | |
| Read CipherText Source # | |
Defined in Network.Tox.Crypto.Box Methods readsPrec :: Int -> ReadS CipherText # readList :: ReadS [CipherText] # readPrec :: ReadPrec CipherText # readListPrec :: ReadPrec [CipherText] # | |
| Show CipherText Source # | |
Defined in Network.Tox.Crypto.Box Methods showsPrec :: Int -> CipherText -> ShowS # show :: CipherText -> String # showList :: [CipherText] -> ShowS # | |
| Arbitrary CipherText Source # | |
Defined in Network.Tox.Crypto.Box | |
| Binary CipherText Source # | |
Defined in Network.Tox.Crypto.Box | |
| MessagePack CipherText Source # | |
Defined in Network.Tox.Crypto.Box Methods toObject :: CipherText -> Object # fromObject :: (Applicative m, Monad m) => Object -> m CipherText # | |
cipherText :: Monad m => ByteString -> m CipherText Source #
unCipherText :: CipherText -> ByteString Source #
decrypt :: CombinedKey -> Nonce -> CipherText -> Maybe PlainText Source #
decryptR :: Rpc (CombinedKey -> Nonce -> CipherText -> Returns (Maybe PlainText)) Source #
encrypt :: CombinedKey -> Nonce -> PlainText -> CipherText Source #
encryptR :: Rpc (CombinedKey -> Nonce -> PlainText -> Returns CipherText) Source #