CborConformanceMode Enum

Definition

Defines supported conformance modes for encoding and decoding CBOR data.

public enum class CborConformanceMode
public enum CborConformanceMode
type CborConformanceMode = 
Public Enum CborConformanceMode
Inheritance
CborConformanceMode

Fields

Canonical 2

Ensures that the CBOR data is canonical, as specified in RFC7049 section 3.9.

Extends strict conformance with the following requirements:

  • Integers must be encoded as small as possible.
  • Maps (major type 5) must contain keys sorted by encoding.
  • Indefinite-length items must be made into definite-length items.
Ctap2Canonical 3

Ensures that the CBOR data is canonical, as specified by the CTAP v2.0 standard, section 6.

Extends strict conformance with the following requirements:

  • Maps (major type 5) must contain keys sorted by encoding.
  • Indefinite-length items must be made into definite-length items.
  • Integers must be encoded as small as possible.
  • The representations of any floating-point values are not changed.
  • CBOR tags (major type 6) are not permitted.
Lax 0

Ensures that the CBOR data is well-formed, as specified in RFC7049.

Strict 1

Ensures that the CBOR data adheres to strict mode, as specified in RFC7049 section 3.10.

Extends lax conformance with the following requirements:

  • Maps (major type 5) must not contain duplicate keys.
  • Simple values (major type 7) must be encoded as small a possible and exclude the reserved values 24-31.
  • UTF-8 string encodings must be valid.

Applies to