tls-0.3.1: TLS/SSL protocol native implementation (Server and Client)ContentsIndex
Network.TLS.Cipher
Portabilityunknown
Stabilityexperimental
MaintainerVincent Hanquez <vincent@snarc.org>
Contents
builtin ciphers for ease of use, might move later to a tls-ciphers library
Description
Synopsis
data CipherTypeFunctions
= CipherNoneF
| CipherBlockF (Key -> IV -> ByteString -> ByteString) (Key -> IV -> ByteString -> ByteString)
| CipherStreamF (Key -> IV) (IV -> ByteString -> (ByteString, IV)) (IV -> ByteString -> (ByteString, IV))
data CipherKeyExchangeType
= CipherKeyExchangeRSA
| CipherKeyExchangeDHE_RSA
| CipherKeyExchangeECDHE_RSA
| CipherKeyExchangeDHE_DSS
| CipherKeyExchangeDH_DSS
| CipherKeyExchangeDH_RSA
| CipherKeyExchangeECDH_ECDSA
| CipherKeyExchangeECDH_RSA
| CipherKeyExchangeECDHE_ECDSA
data Cipher = Cipher {
cipherID :: Word16
cipherName :: String
cipherDigestSize :: Word8
cipherKeySize :: Word8
cipherIVSize :: Word8
cipherKeyBlockSize :: Word8
cipherPaddingSize :: Word8
cipherKeyExchange :: CipherKeyExchangeType
cipherMACHash :: ByteString -> ByteString
cipherF :: CipherTypeFunctions
cipherMinVer :: Maybe Version
}
cipherExchangeNeedMoreData :: CipherKeyExchangeType -> Bool
cipher_null_null :: Cipher
cipher_RC4_128_MD5 :: Cipher
cipher_RC4_128_SHA1 :: Cipher
cipher_AES128_SHA1 :: Cipher
cipher_AES256_SHA1 :: Cipher
cipher_AES128_SHA256 :: Cipher
cipher_AES256_SHA256 :: Cipher
Documentation
data CipherTypeFunctions
Constructors
CipherNoneF
CipherBlockF (Key -> IV -> ByteString -> ByteString) (Key -> IV -> ByteString -> ByteString)
CipherStreamF (Key -> IV) (IV -> ByteString -> (ByteString, IV)) (IV -> ByteString -> (ByteString, IV))
data CipherKeyExchangeType
Constructors
CipherKeyExchangeRSA
CipherKeyExchangeDHE_RSA
CipherKeyExchangeECDHE_RSA
CipherKeyExchangeDHE_DSS
CipherKeyExchangeDH_DSS
CipherKeyExchangeDH_RSA
CipherKeyExchangeECDH_ECDSA
CipherKeyExchangeECDH_RSA
CipherKeyExchangeECDHE_ECDSA
data Cipher
Constructors
Cipher
cipherID :: Word16
cipherName :: String
cipherDigestSize :: Word8
cipherKeySize :: Word8
cipherIVSize :: Word8
cipherKeyBlockSize :: Word8
cipherPaddingSize :: Word8
cipherKeyExchange :: CipherKeyExchangeType
cipherMACHash :: ByteString -> ByteString
cipherF :: CipherTypeFunctions
cipherMinVer :: Maybe Version
show/hide Instances
cipherExchangeNeedMoreData :: CipherKeyExchangeType -> Bool
builtin ciphers for ease of use, might move later to a tls-ciphers library
cipher_null_null :: Cipher
cipher_RC4_128_MD5 :: Cipher
cipher_RC4_128_SHA1 :: Cipher
cipher_AES128_SHA1 :: Cipher
cipher_AES256_SHA1 :: Cipher
cipher_AES128_SHA256 :: Cipher
cipher_AES256_SHA256 :: Cipher
Produced by Haddock version 2.7.2