UNPKG

@wildboar/pkcs

Version:
40 lines 3.25 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._get_encoder_for_CertificateObject = exports._get_decoder_for_CertificateObject = exports._get_encoder_for_PKCS15Object = exports._get_decoder_for_PKCS15Object = exports.PKCS15Object = exports._encode_CommonCertificateAttributes = exports._decode_CommonCertificateAttributes = exports.CommonCertificateAttributes = void 0; const $ = require("asn1-ts/dist/node/functional"); const CommonCertificateAttributes_ta_1 = require("../PKCS-15/CommonCertificateAttributes.ta"); const PKCS15Object_ta_1 = require("../PKCS-15/PKCS15Object.ta"); var CommonCertificateAttributes_ta_2 = require("../PKCS-15/CommonCertificateAttributes.ta"); Object.defineProperty(exports, "CommonCertificateAttributes", { enumerable: true, get: function () { return CommonCertificateAttributes_ta_2.CommonCertificateAttributes; } }); Object.defineProperty(exports, "_decode_CommonCertificateAttributes", { enumerable: true, get: function () { return CommonCertificateAttributes_ta_2._decode_CommonCertificateAttributes; } }); Object.defineProperty(exports, "_encode_CommonCertificateAttributes", { enumerable: true, get: function () { return CommonCertificateAttributes_ta_2._encode_CommonCertificateAttributes; } }); var PKCS15Object_ta_2 = require("../PKCS-15/PKCS15Object.ta"); Object.defineProperty(exports, "PKCS15Object", { enumerable: true, get: function () { return PKCS15Object_ta_2.PKCS15Object; } }); Object.defineProperty(exports, "_get_decoder_for_PKCS15Object", { enumerable: true, get: function () { return PKCS15Object_ta_2._get_decoder_for_PKCS15Object; } }); Object.defineProperty(exports, "_get_encoder_for_PKCS15Object", { enumerable: true, get: function () { return PKCS15Object_ta_2._get_encoder_for_PKCS15Object; } }); /* END_OF_SYMBOL_DEFINITION CertificateObject */ /* START_OF_SYMBOL_DEFINITION _get_decoder_for_CertificateObject */ /** * @summary Returns a function that will decode an ASN.1 element into a(n) CertificateObject * @function * @param {_Element} el The element being decoded. * @returns A function that will decode an ASN.1 element. */ function _get_decoder_for_CertificateObject(_decode_CertAttributes) { return PKCS15Object_ta_1._get_decoder_for_PKCS15Object(CommonCertificateAttributes_ta_1._decode_CommonCertificateAttributes, $._decodeNull, _decode_CertAttributes); } exports._get_decoder_for_CertificateObject = _get_decoder_for_CertificateObject; /* END_OF_SYMBOL_DEFINITION _get_decoder_for_CertificateObject */ /* START_OF_SYMBOL_DEFINITION _get_encoder_for_CertificateObject */ /** * @summary Returns a function that will encode a(n) CertificateObject into an ASN.1 Element. * @function * @returns A function that will encode a(n) CertificateObject as an ASN.1 element. */ function _get_encoder_for_CertificateObject(_encode_CertAttributes) { return PKCS15Object_ta_1._get_encoder_for_PKCS15Object(CommonCertificateAttributes_ta_1._encode_CommonCertificateAttributes, $._encodeNull, _encode_CertAttributes); } exports._get_encoder_for_CertificateObject = _get_encoder_for_CertificateObject; /* END_OF_SYMBOL_DEFINITION _get_encoder_for_CertificateObject */ /* eslint-enable */ //# sourceMappingURL=CertificateObject.ta.js.map