val clientCertificateType_parser_kind : LowParse.Spec.Base.parser_kind
let clientCertificateType_parser_kind = LP.strong_parser_kind 1 1 (Some LP.ParserKindMetadataTotal)
module MiTLS.Parsers.ClientCertificateType

(* This file has been automatically generated by EverParse. *)
open FStar.Bytes
module U8 = FStar.UInt8
module U16 = FStar.UInt16
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module LP = LowParse.Spec.Base
module LS = LowParse.SLow.Base
module LSZ = LowParse.SLow.Base
module LPI = LowParse.Spec.AllIntegers
module LL = LowParse.Low.Base
module L = FStar.List.Tot
module B = LowStar.Buffer
module BY = FStar.Bytes
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST


let clientCertificateType_repr = U8.t
inline_for_extraction let clientCertificateType_repr_eq (x1 x2: clientCertificateType_repr) : Tot bool = (x1 = x2)
let known_clientCertificateType_repr (v:U8.t) : bool = v `clientCertificateType_repr_eq` 1z || (v `clientCertificateType_repr_eq` 2z || (v `clientCertificateType_repr_eq` 3z || (v `clientCertificateType_repr_eq` 4z || (v `clientCertificateType_repr_eq` 5z || (v `clientCertificateType_repr_eq` 6z || (v `clientCertificateType_repr_eq` 20z || (false)))))))

type clientCertificateType =
  | Rsa_sign
  | Dss_sign
  | Rsa_fixed_dh
  | Dss_fixed_dh
  | Rsa_ephemeral_dh_RESERVED
  | Dss_ephemeral_dh_RESERVED
  | Fortezza_dms_RESERVED
  | Unknown_clientCertificateType of (v:U8.t{not (known_clientCertificateType_repr v)})

let string_of_clientCertificateType = function
  | Rsa_sign -> "rsa_sign"
  | Dss_sign -> "dss_sign"
  | Rsa_fixed_dh -> "rsa_fixed_dh"
  | Dss_fixed_dh -> "dss_fixed_dh"
  | Rsa_ephemeral_dh_RESERVED -> "rsa_ephemeral_dh_RESERVED"
  | Dss_ephemeral_dh_RESERVED -> "dss_ephemeral_dh_RESERVED"
  | Fortezza_dms_RESERVED -> "fortezza_dms_RESERVED"
  | Unknown_clientCertificateType _ -> "Unknown_clientCertificateType"
/
prims.fst.checked LowStar.Buffer.fst.checked LowParse.Spec.Base.fsti.checked LowParse.Spec.AllIntegers.fst.checked LowParse.SLow.Base.fst.checked LowParse.Low.Base.fst.checked FStar.UInt8.fsti.checked FStar.UInt64.fsti.checked FStar.UInt32.fsti.checked FStar.UInt16.fsti.checked FStar.Seq.fst.checked FStar.Pervasives.fsti.checked FStar.List.Tot.fst.checked FStar.HyperStack.ST.fsti.checked FStar.HyperStack.fst.checked FStar.Bytes.fsti.checked
MiTLS.Parsers.ClientCertificateType.fsti
LowParse.Spec.Base.parser_kind
LowParse.Spec.Base.strong_parser_kind FStar.Pervasives.Native.Some LowParse.Spec.Base.parser_kind_metadata_some LowParse.Spec.Base.ParserKindMetadataTotal
let clientCertificateType_parser_kind =
  
LP.strong_parser_kind 1 1 (Some LP.ParserKindMetadataTotal)