 | tls-0.3.1: TLS/SSL protocol native implementation (Server and Client) | Contents | Index |
|
| Network.TLS.Struct | | Portability | unknown | | Stability | experimental | | Maintainer | Vincent Hanquez <vincent@snarc.org> |
|
|
|
| Description |
| the Struct module contains all definitions and values of the TLS protocol
|
|
|
| Documentation |
|
| type Bytes = ByteString |
|
| data Version |
| Constructors | | Instances | |
|
|
| data ConnectionEnd |
| Constructors | | ConnectionServer | | | ConnectionClient | |
| Instances | |
|
|
| data CipherType |
| Constructors | | CipherStream | | | CipherBlock | | | CipherAEAD | |
| Instances | |
|
|
| data CipherData |
| Constructors | | Instances | |
|
|
| type Extension = (Word16, [Word8]) |
|
| newtype EncryptedData |
| Constructors | | Instances | |
|
|
| data CertificateType |
| Constructors | | CertificateType_RSA_Sign | | | CertificateType_DSS_Sign | | | CertificateType_RSA_Fixed_DH | | | CertificateType_DSS_Fixed_DH | | | CertificateType_RSA_Ephemeral_dh | | | CertificateType_DSS_Ephemeral_dh | | | CertificateType_fortezza_dms | | | CertificateType_Unknown Word8 | |
| Instances | |
|
|
| data HashAlgorithm |
| Constructors | | HashNone | | | HashMD5 | | | HashSHA1 | | | HashSHA224 | | | HashSHA256 | | | HashSHA384 | | | HashSHA512 | | | HashOther Word8 | |
| Instances | |
|
|
| data SignatureAlgorithm |
| Constructors | | SignatureAnonymous | | | SignatureRSA | | | SignatureDSS | | | SignatureECDSA | | | SignatureOther Word8 | |
| Instances | |
|
|
| data ProtocolType |
| Constructors | | ProtocolType_ChangeCipherSpec | | | ProtocolType_Alert | | | ProtocolType_Handshake | | | ProtocolType_AppData | |
| Instances | |
|
|
| data TLSError |
| Constructors | | Instances | |
|
|
| data ServerDHParams |
| Constructors | | Instances | |
|
|
| data ServerRSAParams |
| Constructors | | Instances | |
|
|
| data ServerKeyXchgAlgorithmData |
| Constructors | | Instances | |
|
|
| data Packet |
| Constructors | | Instances | |
|
|
| data Header |
| Constructors | | Instances | |
|
|
| newtype ServerRandom |
| Constructors | | Instances | |
|
|
| newtype ClientRandom |
| Constructors | | Instances | |
|
|
| newtype ClientKeyData |
| Constructors | | Instances | |
|
|
| serverRandom :: Bytes -> Maybe ServerRandom |
|
| clientRandom :: Bytes -> Maybe ClientRandom |
|
| type FinishedData = [Word8] |
|
| newtype Session |
| Constructors | | Instances | |
|
|
| data AlertLevel |
| Constructors | | AlertLevel_Warning | | | AlertLevel_Fatal | |
| Instances | |
|
|
| data AlertDescription |
| Constructors | | CloseNotify | | | UnexpectedMessage | | | BadRecordMac | | | DecryptionFailed | | | RecordOverflow | | | DecompressionFailure | | | HandshakeFailure | | | BadCertificate | | | UnsupportedCertificate | | | CertificateRevoked | | | CertificateExpired | | | CertificateUnknown | | | IllegalParameter | | | UnknownCa | | | AccessDenied | | | DecodeError | | | DecryptError | | | ExportRestriction | | | ProtocolVersion | | | InsufficientSecurity | | | InternalError | | | UserCanceled | | | NoRenegotiation | |
| Instances | |
|
|
| data HandshakeType |
| Constructors | | HandshakeType_HelloRequest | | | HandshakeType_ClientHello | | | HandshakeType_ServerHello | | | HandshakeType_Certificate | | | HandshakeType_ServerKeyXchg | | | HandshakeType_CertRequest | | | HandshakeType_ServerHelloDone | | | HandshakeType_CertVerify | | | HandshakeType_ClientKeyXchg | | | HandshakeType_Finished | |
| Instances | |
|
|
| data Handshake |
| Constructors | | Instances | |
|
|
| numericalVer :: Version -> (Word8, Word8) |
|
| verOfNum :: (Word8, Word8) -> Maybe Version |
|
| class TypeValuable a where |
| | Methods | | | Instances | |
|
|
| packetType :: Packet -> ProtocolType |
|
| typeOfHandshake :: Handshake -> HandshakeType |
|
| Produced by Haddock version 2.7.2 |