我要评分
获取效率
正确性
完整性
易理解

Data Types

Table 1 Data types supported by KSL_ASN1

Data Type

Supported (Y/N)

Constraints

BOOLEAN

Y

None

INTEGER

Y

  • Signed: [INT64_MIN, INT64_MAX]
  • Unsigned: [0, UINT64_MAX]
  • When a constraint references a defined value, the constraint cannot exceed INT64_MAX.

BIT STRING

Y

The upper limit of the SIZE constraint cannot exceed 524,280.

OCTET STRING

Y

The upper limit of the SIZE constraint cannot exceed 65,535.

NULL

Y

None

OBJECT IDENTIFIER

Y

The maximum number of components is 64, and the value range for each component is [0, UINT32_MAX].

ObjectDescriptor

N

None

EXTERNAL, INSTANCE OF

N

None

REAL

Y

None

ENUMERATED

Y

None

EMBEDDED PDV

N

None

UTF8String

Y

The SIZE constraint is not supported. A string can contain a maximum of 255 bytes.

RELATIVE-OID

N

None

TIME

Y

None

SEQUENCE

Y

None

SEQUENCE OF

Y

The upper limit of the SIZE constraint cannot exceed 65,535.

SET, SET OF

Y/N

The SET type can be used in PER/XER rules, where its encoding and decoding are identical to those of SEQUENCE. Encoding and decoding based on the numerical order of explicit tags are unsupported.

NumericString

Y

The upper limit of the SIZE constraint cannot exceed 65,535.

PrintableString

Y

The upper limit of the SIZE constraint cannot exceed 65,535.

TeletexString, T61String

Y

The SIZE constraint is not supported. A string can contain a maximum of 255 bytes.

VideotexString

Y

The SIZE constraint is not supported. A string can contain a maximum of 255 bytes.

IA5String

Y

The upper limit of the SIZE constraint cannot exceed 65,535.

UTCTime

Y

The SIZE constraint is not supported. A string can contain a maximum of 255 bytes.

GeneralizedTime

Y

The SIZE constraint is not supported. A string can contain a maximum of 255 bytes.

GraphicString

Y

The SIZE constraint is not supported. A string can contain a maximum of 255 bytes.

VisibleString, ISO646String

Y

The upper limit of the SIZE constraint cannot exceed 65,535.

GeneralString

Y

The SIZE constraint is not supported. A string can contain a maximum of 255 bytes.

UniversalString

Y

The SIZE constraint is not supported. A string can contain a maximum of 255 bytes.

CHARACTER STRING

N

None

BMPString

N

None

CHOICE

Y

The number of options ranges from 1 to 255.