Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data Crypto cipher tp Source #
Instances
(Transport tp, BlockCipher cipher) => Transport (Crypto cipher tp) Source # | |
Defined in Metro.TP.Crypto data TransportConfig (Crypto cipher tp) :: Type # newTransport :: TransportConfig (Crypto cipher tp) -> IO (Crypto cipher tp) # recvData :: Crypto cipher tp -> Int -> IO ByteString # sendData :: Crypto cipher tp -> ByteString -> IO () # closeTransport :: Crypto cipher tp -> IO () # | |
data TransportConfig (Crypto cipher tp) Source # | |
Defined in Metro.TP.Crypto data TransportConfig (Crypto cipher tp) = CryptoConfig (CryptoMethod cipher) cipher (IV cipher) (TransportConfig tp) |
crypto :: BlockCipher cipher => CryptoMethod cipher -> cipher -> TransportConfig tp -> TransportConfig (Crypto cipher tp) Source #
crypto_ :: BlockCipher cipher => CryptoMethod cipher -> cipher -> IV cipher -> TransportConfig tp -> TransportConfig (Crypto cipher tp) Source #
data CryptoMethod cipher Source #
CryptoMethod | |
|
methodEcb :: BlockCipher cipher => CryptoMethod cipher Source #
methodCbc :: BlockCipher cipher => CryptoMethod cipher Source #
methodCfb :: BlockCipher cipher => CryptoMethod cipher Source #
methodCtr :: BlockCipher cipher => CryptoMethod cipher Source #
makeCrypto :: forall cipher tp. (BlockCipher cipher, Cipher cipher) => cipher -> String -> String -> TransportConfig tp -> TransportConfig (Crypto cipher tp) Source #