@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
31 lines (30 loc) • 817 B
JavaScript
/* eslint-disable */
import { ObjectIdentifier as _OID } from "@wildboar/asn1";
import { bagtypes } from "../PKCS-12/bagtypes.va.mjs";
import { _decode_KeyBag, _encode_KeyBag } from "../PKCS-12/KeyBag.ta.mjs";
/**
* @summary keyBag
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* keyBag BAG-TYPE ::= {KeyBag IDENTIFIED BY {bagtypes 1}}
* ```
*
* @constant
* @type {BAG_TYPE<KeyBag>}
* @implements {BAG_TYPE<KeyBag>}
*/
export const keyBag = {
class: "TYPE-IDENTIFIER",
decoderFor: {
"&Type": _decode_KeyBag,
},
encoderFor: {
"&Type": _encode_KeyBag,
},
"&id": _OID.fromParts([1], bagtypes) /* OBJECT_FIELD_SETTING */ /* UNIQUE_OBJECT_FIELD_SETTING */,
"&Type": 0 /* OBJECT_FIELD_SETTING OBJECT_TYPE_FIELD_SETTING */,
};
/* eslint-enable */