UNPKG

@wildboar/pkcs

Version:
44 lines 3.98 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._get_encoder_for_PrivateKeyObject = exports._get_decoder_for_PrivateKeyObject = exports._get_encoder_for_PKCS15Object = exports._get_decoder_for_PKCS15Object = exports.PKCS15Object = exports._encode_CommonPrivateKeyAttributes = exports._decode_CommonPrivateKeyAttributes = exports.CommonPrivateKeyAttributes = exports._encode_CommonKeyAttributes = exports._decode_CommonKeyAttributes = exports.CommonKeyAttributes = void 0; const CommonKeyAttributes_ta_1 = require("../PKCS-15/CommonKeyAttributes.ta"); const CommonPrivateKeyAttributes_ta_1 = require("../PKCS-15/CommonPrivateKeyAttributes.ta"); const PKCS15Object_ta_1 = require("../PKCS-15/PKCS15Object.ta"); var CommonKeyAttributes_ta_2 = require("../PKCS-15/CommonKeyAttributes.ta"); Object.defineProperty(exports, "CommonKeyAttributes", { enumerable: true, get: function () { return CommonKeyAttributes_ta_2.CommonKeyAttributes; } }); Object.defineProperty(exports, "_decode_CommonKeyAttributes", { enumerable: true, get: function () { return CommonKeyAttributes_ta_2._decode_CommonKeyAttributes; } }); Object.defineProperty(exports, "_encode_CommonKeyAttributes", { enumerable: true, get: function () { return CommonKeyAttributes_ta_2._encode_CommonKeyAttributes; } }); var CommonPrivateKeyAttributes_ta_2 = require("../PKCS-15/CommonPrivateKeyAttributes.ta"); Object.defineProperty(exports, "CommonPrivateKeyAttributes", { enumerable: true, get: function () { return CommonPrivateKeyAttributes_ta_2.CommonPrivateKeyAttributes; } }); Object.defineProperty(exports, "_decode_CommonPrivateKeyAttributes", { enumerable: true, get: function () { return CommonPrivateKeyAttributes_ta_2._decode_CommonPrivateKeyAttributes; } }); Object.defineProperty(exports, "_encode_CommonPrivateKeyAttributes", { enumerable: true, get: function () { return CommonPrivateKeyAttributes_ta_2._encode_CommonPrivateKeyAttributes; } }); 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 PrivateKeyObject */ /* START_OF_SYMBOL_DEFINITION _get_decoder_for_PrivateKeyObject */ /** * @summary Returns a function that will decode an ASN.1 element into a(n) PrivateKeyObject * @function * @param {_Element} el The element being decoded. * @returns A function that will decode an ASN.1 element. */ function _get_decoder_for_PrivateKeyObject(_decode_KeyAttributes) { return PKCS15Object_ta_1._get_decoder_for_PKCS15Object(CommonKeyAttributes_ta_1._decode_CommonKeyAttributes, CommonPrivateKeyAttributes_ta_1._decode_CommonPrivateKeyAttributes, _decode_KeyAttributes); } exports._get_decoder_for_PrivateKeyObject = _get_decoder_for_PrivateKeyObject; /* END_OF_SYMBOL_DEFINITION _get_decoder_for_PrivateKeyObject */ /* START_OF_SYMBOL_DEFINITION _get_encoder_for_PrivateKeyObject */ /** * @summary Returns a function that will encode a(n) PrivateKeyObject into an ASN.1 Element. * @function * @returns A function that will encode a(n) PrivateKeyObject as an ASN.1 element. */ function _get_encoder_for_PrivateKeyObject(_encode_KeyAttributes) { return PKCS15Object_ta_1._get_encoder_for_PKCS15Object(CommonKeyAttributes_ta_1._encode_CommonKeyAttributes, CommonPrivateKeyAttributes_ta_1._encode_CommonPrivateKeyAttributes, _encode_KeyAttributes); } exports._get_encoder_for_PrivateKeyObject = _get_encoder_for_PrivateKeyObject; /* END_OF_SYMBOL_DEFINITION _get_encoder_for_PrivateKeyObject */ /* eslint-enable */ //# sourceMappingURL=PrivateKeyObject.ta.js.map