packages feed

haal-models-0.1.3.0: src/Haal/Models/TLS/NSSV3V17V4ServerRegular.hs

-- Generated by haal-gen. Do not edit manually.
module Haal.Models.TLS.NSSV3V17V4ServerRegular
    ( NSSV3V17V4ServerRegularInput (..)
    , NSSV3V17V4ServerRegularOutput (..)
    , nSSV3V17V4ServerRegular
    ) where

import Haal.Automaton.MealyAutomaton (MealyAutomaton, mkMealyAutomatonTable)

data NSSV3V17V4ServerRegularInput
    = In_ApplicationData
    | In_ApplicationDataEmpty
    | In_ChangeCipherSpec
    | In_ClientHelloRSA
    | In_ClientKeyExchange
    | In_EmptyCertificate
    | In_Finished
    | In_HeartbeatRequest
    deriving (Show, Eq, Ord, Enum, Bounded)

data NSSV3V17V4ServerRegularOutput
    = Out_Empty
    | Out_ServerHello_Certificate___CertificateRequest___ServerHelloDone
    | Out_Alert_Fatal__Unexpected_message____ConnectionClosed
    | Out_ConnectionClosed
    | Out_ChangeCipherSpec___Finished
    | Out_ApplicationData___Alert_Warning__Close_notify____ConnectionClosed
    | Out_Alert_Fatal__Unexpected_message_Alert_Warning__Close_notify____ConnectionClosed
    | Out_Alert_Fatal__Handshake_failure_Alert_Warning__No_renegotiation_Alert_Warning__Close_notify____ConnectionClosed
    | Out_Alert_Warning__Close_notify____ConnectionClosed
    deriving (Show, Eq, Ord, Enum, Bounded)

{- Transitions (state  input -> next state / output):
    0     In_ApplicationData       -> 1 / Out_Empty
          In_ApplicationDataEmpty  -> 1 / Out_Empty
          In_ChangeCipherSpec      -> 1 / Out_Empty
          In_ClientHelloRSA        -> 2 / Out_ServerHello_Certificate___CertificateRequest___ServerHelloDone
          In_ClientKeyExchange     -> 3 / Out_Alert_Fatal__Unexpected_message____ConnectionClosed
          In_EmptyCertificate      -> 3 / Out_Alert_Fatal__Unexpected_message____ConnectionClosed
          In_Finished              -> 3 / Out_ConnectionClosed
          In_HeartbeatRequest      -> 1 / Out_Empty
    1     In_ApplicationData       -> 1 / Out_Empty
          In_ApplicationDataEmpty  -> 1 / Out_Empty
          In_ChangeCipherSpec      -> 1 / Out_Empty
          In_ClientHelloRSA        -> 1 / Out_Empty
          In_ClientKeyExchange     -> 1 / Out_Empty
          In_EmptyCertificate      -> 1 / Out_Empty
          In_Finished              -> 1 / Out_Empty
          In_HeartbeatRequest      -> 1 / Out_Empty
    2     In_ApplicationData       -> 3 / Out_Alert_Fatal__Unexpected_message____ConnectionClosed
          In_ApplicationDataEmpty  -> 3 / Out_Empty
          In_ChangeCipherSpec      -> 3 / Out_Alert_Fatal__Unexpected_message____ConnectionClosed
          In_ClientHelloRSA        -> 3 / Out_Alert_Fatal__Unexpected_message____ConnectionClosed
          In_ClientKeyExchange     -> 3 / Out_Alert_Fatal__Unexpected_message____ConnectionClosed
          In_EmptyCertificate      -> 6 / Out_Empty
          In_Finished              -> 3 / Out_ConnectionClosed
          In_HeartbeatRequest      -> 3 / Out_ConnectionClosed
    3     In_ApplicationData       -> 3 / Out_ConnectionClosed
          In_ApplicationDataEmpty  -> 3 / Out_ConnectionClosed
          In_ChangeCipherSpec      -> 3 / Out_ConnectionClosed
          In_ClientHelloRSA        -> 3 / Out_ConnectionClosed
          In_ClientKeyExchange     -> 3 / Out_ConnectionClosed
          In_EmptyCertificate      -> 3 / Out_ConnectionClosed
          In_Finished              -> 3 / Out_ConnectionClosed
          In_HeartbeatRequest      -> 3 / Out_ConnectionClosed
    4     In_ApplicationData       -> 3 / Out_Alert_Fatal__Unexpected_message____ConnectionClosed
          In_ApplicationDataEmpty  -> 3 / Out_Alert_Fatal__Unexpected_message____ConnectionClosed
          In_ChangeCipherSpec      -> 3 / Out_Alert_Fatal__Unexpected_message____ConnectionClosed
          In_ClientHelloRSA        -> 3 / Out_Alert_Fatal__Unexpected_message____ConnectionClosed
          In_ClientKeyExchange     -> 3 / Out_Alert_Fatal__Unexpected_message____ConnectionClosed
          In_EmptyCertificate      -> 3 / Out_Alert_Fatal__Unexpected_message____ConnectionClosed
          In_Finished              -> 5 / Out_ChangeCipherSpec___Finished
          In_HeartbeatRequest      -> 3 / Out_ConnectionClosed
    5     In_ApplicationData       -> 3 / Out_ApplicationData___Alert_Warning__Close_notify____ConnectionClosed
          In_ApplicationDataEmpty  -> 5 / Out_Empty
          In_ChangeCipherSpec      -> 3 / Out_Alert_Fatal__Unexpected_message_Alert_Warning__Close_notify____ConnectionClosed
          In_ClientHelloRSA        -> 3 / Out_Alert_Fatal__Handshake_failure_Alert_Warning__No_renegotiation_Alert_Warning__Close_notify____ConnectionClosed
          In_ClientKeyExchange     -> 3 / Out_Alert_Fatal__Unexpected_message_Alert_Warning__Close_notify____ConnectionClosed
          In_EmptyCertificate      -> 3 / Out_Alert_Fatal__Unexpected_message_Alert_Warning__Close_notify____ConnectionClosed
          In_Finished              -> 3 / Out_Alert_Fatal__Unexpected_message_Alert_Warning__Close_notify____ConnectionClosed
          In_HeartbeatRequest      -> 3 / Out_Alert_Warning__Close_notify____ConnectionClosed
    6     In_ApplicationData       -> 3 / Out_Alert_Fatal__Unexpected_message____ConnectionClosed
          In_ApplicationDataEmpty  -> 3 / Out_Empty
          In_ChangeCipherSpec      -> 3 / Out_Alert_Fatal__Unexpected_message____ConnectionClosed
          In_ClientHelloRSA        -> 3 / Out_Alert_Fatal__Unexpected_message____ConnectionClosed
          In_ClientKeyExchange     -> 7 / Out_Empty
          In_EmptyCertificate      -> 3 / Out_Alert_Fatal__Unexpected_message____ConnectionClosed
          In_Finished              -> 3 / Out_ConnectionClosed
          In_HeartbeatRequest      -> 3 / Out_ConnectionClosed
    7     In_ApplicationData       -> 3 / Out_Alert_Fatal__Unexpected_message____ConnectionClosed
          In_ApplicationDataEmpty  -> 3 / Out_Empty
          In_ChangeCipherSpec      -> 4 / Out_Empty
          In_ClientHelloRSA        -> 3 / Out_Alert_Fatal__Unexpected_message____ConnectionClosed
          In_ClientKeyExchange     -> 3 / Out_Alert_Fatal__Unexpected_message____ConnectionClosed
          In_EmptyCertificate      -> 3 / Out_Alert_Fatal__Unexpected_message____ConnectionClosed
          In_Finished              -> 3 / Out_ConnectionClosed
          In_HeartbeatRequest      -> 3 / Out_ConnectionClosed
-}
nSSV3V17V4ServerRegular :: MealyAutomaton Int NSSV3V17V4ServerRegularInput NSSV3V17V4ServerRegularOutput
nSSV3V17V4ServerRegular =
    case mkMealyAutomatonTable 8 0 deltaTable lambdaTable of
        Right m -> m
        Left err -> error ("haal-gen: invalid transition table: " ++ err)
  where
    deltaTable =
        "\1\1\1\2\3\3\3\1\
        \\1\1\1\1\1\1\1\1\
        \\3\3\3\3\3\6\3\3\
        \\3\3\3\3\3\3\3\3\
        \\3\3\3\3\3\3\5\3\
        \\3\5\3\3\3\3\3\3\
        \\3\3\3\3\7\3\3\3\
        \\3\3\4\3\3\3\3\3"
    lambdaTable =
        "\0\0\0\1\2\2\3\0\
        \\0\0\0\0\0\0\0\0\
        \\2\0\2\2\2\0\3\3\
        \\3\3\3\3\3\3\3\3\
        \\2\2\2\2\2\2\4\3\
        \\5\0\6\7\6\6\6\8\
        \\2\0\2\2\0\2\3\3\
        \\2\0\0\2\2\2\3\3"