val certificateType_validator:LL.validator certificateType_parser
val certificateType_validator:LL.validator certificateType_parser
let certificateType_validator: LL.validator certificateType_parser = LL.validate_total_constant_size certificateType_parser 1uL ()
module MiTLS.Parsers.CertificateType

(* 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 certificateType_repr = U8.t
inline_for_extraction let certificateType_repr_eq (x1 x2: certificateType_repr) : Tot bool = (x1 = x2)
let known_certificateType_repr (v:U8.t) : bool = v `certificateType_repr_eq` 0z || (v `certificateType_repr_eq` 2z || (false))

type certificateType =
  | X509
  | RawPublicKey
  | Unknown_certificateType of (v:U8.t{not (known_certificateType_repr v)})

let string_of_certificateType = function
  | X509 -> "X509"
  | RawPublicKey -> "RawPublicKey"
  | Unknown_certificateType _ -> "Unknown_certificateType"

inline_for_extraction noextract let certificateType_parser_kind = LP.strong_parser_kind 1 1 (Some LP.ParserKindMetadataTotal)

noextract val certificateType_parser: LP.parser certificateType_parser_kind certificateType

noextract val certificateType_serializer: LP.serializer certificateType_parser

noextract val certificateType_bytesize (x:certificateType) : GTot nat

noextract val certificateType_bytesize_eq (x:certificateType) : Lemma (certificateType_bytesize x == Seq.length (LP.serialize certificateType_serializer x))

val certificateType_parser32: LS.parser32 certificateType_parser

val certificateType_serializer32: LS.serializer32 certificateType_serializer

val certificateType_size32: LSZ.size32 certificateType_serializer
/
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.CertificateType.fsti
LowParse.Low.Base.validator MiTLS.Parsers.CertificateType.certificateType_parser
LowParse.Low.Base.validate_total_constant_size MiTLS.Parsers.CertificateType.certificateType_parser_kind MiTLS.Parsers.CertificateType.certificateType MiTLS.Parsers.CertificateType.certificateType_parser FStar.UInt64.__uint_to_t
let certificateType_validator:LL.validator certificateType_parser =
  
LL.validate_total_constant_size certificateType_parser 1uL ()