let signatureScheme_parser_kind = LP.strong_parser_kind 2 2 (Some LP.ParserKindMetadataTotal)
let signatureScheme_parser_kind =
LP.strong_parser_kind 2 2 (Some LP.ParserKindMetadataTotal)
Parsers.SignatureScheme.fsti.checked
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
Parsers.SignatureScheme.fsti
LowParse.Spec.Base.strong_parser_kind FStar.Pervasives.Native.Some LowParse.Spec.Base.parser_kind_metadata_some LowParse.Spec.Base.ParserKindMetadataTotal
module Parsers.SignatureScheme

(* 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 signatureScheme_repr = U16.t
inline_for_extraction let signatureScheme_repr_eq (x1 x2: signatureScheme_repr) : Tot bool = (x1 = x2)
let known_signatureScheme_repr (v:U16.t) : bool = v `signatureScheme_repr_eq` 257us || (v `signatureScheme_repr_eq` 513us || (v `signatureScheme_repr_eq` 259us || (v `signatureScheme_repr_eq` 515us || (v `signatureScheme_repr_eq` 1025us || (v `signatureScheme_repr_eq` 1281us || (v `signatureScheme_repr_eq` 1537us || (v `signatureScheme_repr_eq` 1027us || (v `signatureScheme_repr_eq` 1283us || (v `signatureScheme_repr_eq` 1539us || (v `signatureScheme_repr_eq` 2052us || (v `signatureScheme_repr_eq` 2053us || (v `signatureScheme_repr_eq` 2054us || (v `signatureScheme_repr_eq` 2055us || (v `signatureScheme_repr_eq` 2056us || (v `signatureScheme_repr_eq` 2057us || (v `signatureScheme_repr_eq` 2058us || (v `signatureScheme_repr_eq` 2059us || (false))))))))))))))))))

type signatureScheme =
  | Rsa_pkcs1_md5
  | Rsa_pkcs1_sha1
  | Ecdsa_md5
  | Ecdsa_sha1
  | Rsa_pkcs1_sha256
  | Rsa_pkcs1_sha384
  | Rsa_pkcs1_sha512
  | Ecdsa_secp256r1_sha256
  | Ecdsa_secp384r1_sha384
  | Ecdsa_secp521r1_sha512
  | Rsa_pss_rsae_sha256
  | Rsa_pss_rsae_sha384
  | Rsa_pss_rsae_sha512
  | Ed25519
  | Ed448
  | Rsa_pss_pss_sha256
  | Rsa_pss_pss_sha384
  | Rsa_pss_pss_sha512
  | Unknown_signatureScheme of (v:U16.t{not (known_signatureScheme_repr v)})

let string_of_signatureScheme = function
  | Rsa_pkcs1_md5 -> "rsa_pkcs1_md5"
  | Rsa_pkcs1_sha1 -> "rsa_pkcs1_sha1"
  | Ecdsa_md5 -> "ecdsa_md5"
  | Ecdsa_sha1 -> "ecdsa_sha1"
  | Rsa_pkcs1_sha256 -> "rsa_pkcs1_sha256"
  | Rsa_pkcs1_sha384 -> "rsa_pkcs1_sha384"
  | Rsa_pkcs1_sha512 -> "rsa_pkcs1_sha512"
  | Ecdsa_secp256r1_sha256 -> "ecdsa_secp256r1_sha256"
  | Ecdsa_secp384r1_sha384 -> "ecdsa_secp384r1_sha384"
  | Ecdsa_secp521r1_sha512 -> "ecdsa_secp521r1_sha512"
  | Rsa_pss_rsae_sha256 -> "rsa_pss_rsae_sha256"
  | Rsa_pss_rsae_sha384 -> "rsa_pss_rsae_sha384"
  | Rsa_pss_rsae_sha512 -> "rsa_pss_rsae_sha512"
  | Ed25519 -> "ed25519"
  | Ed448 -> "ed448"
  | Rsa_pss_pss_sha256 -> "rsa_pss_pss_sha256"
  | Rsa_pss_pss_sha384 -> "rsa_pss_pss_sha384"
  | Rsa_pss_pss_sha512 -> "rsa_pss_pss_sha512"
  | Unknown_signatureScheme _ -> "Unknown_signatureScheme"
val signatureScheme_parser_kind : LowParse.Spec.Base.parser_kind
LowParse.Spec.Base.parser_kind