UNPKG

@wildboar/pkcs

Version:
31 lines (30 loc) 887 B
/* eslint-disable */ import { ObjectIdentifier as _OID } from "@wildboar/asn1"; import { bagtypes } from "../PKCS-12/bagtypes.va.mjs"; import { _decode_SafeContents, _encode_SafeContents, } from "../PKCS-12/SafeContents.ta.mjs"; /** * @summary safeContentsBag * @description * * ### ASN.1 Definition: * * ```asn1 * safeContentsBag BAG-TYPE ::= {SafeContents IDENTIFIED BY {bagtypes 6}} * ``` * * @constant * @type {BAG_TYPE<SafeContents>} * @implements {BAG_TYPE<SafeContents>} */ export const safeContentsBag = { class: "TYPE-IDENTIFIER", decoderFor: { "&Type": _decode_SafeContents, }, encoderFor: { "&Type": _encode_SafeContents, }, "&id": _OID.fromParts([6], bagtypes) /* OBJECT_FIELD_SETTING */ /* UNIQUE_OBJECT_FIELD_SETTING */, "&Type": 0 /* OBJECT_FIELD_SETTING OBJECT_TYPE_FIELD_SETTING */, }; /* eslint-enable */