UNPKG

@wildboar/pkcs

Version:
47 lines 1.18 kB
import { INTEGER } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; /** * @summary KEY_IDENTIFIER * @description * * ### ASN.1 Definition: * * ```asn1 * KEY-IDENTIFIER ::= CLASS { * &id INTEGER UNIQUE, * &Value * } WITH SYNTAX { * SYNTAX &Value * IDENTIFIED BY &id * } * ``` * * @interface */ export interface KEY_IDENTIFIER<Value = any> { /** * @summary A fixed string that can be used for external programs to determine the object class of this object. */ readonly class: "KEY-IDENTIFIER"; /** * @summary A map of type fields to their corresponding decoders. */ readonly decoderFor: Partial<{ [_K in keyof KEY_IDENTIFIER<Value>]: $.ASN1Decoder<KEY_IDENTIFIER<Value>[_K]>; }>; /** * @summary A map of type fields to their corresponding encoders. */ readonly encoderFor: Partial<{ [_K in keyof KEY_IDENTIFIER<Value>]: $.ASN1Encoder<KEY_IDENTIFIER<Value>[_K]>; }>; /** * @summary &id */ readonly "&id"?: INTEGER; /** * @summary &Value */ readonly "&Value": Value; } //# sourceMappingURL=KEY-IDENTIFIER.oca.d.mts.map