英語で読む

次の方法で共有


CborConformanceMode Enum

Definition

Defines supported conformance modes for encoding and decoding CBOR data.

C#
public enum CborConformanceMode
Inheritance
CborConformanceMode

Fields

Name Value Description
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.
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.

Applies to

製品 バージョン
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)