@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
40 lines • 3.13 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._get_encoder_for_DataObject = exports._get_decoder_for_DataObject = exports._get_encoder_for_PKCS15Object = exports._get_decoder_for_PKCS15Object = exports.PKCS15Object = exports._encode_CommonDataObjectAttributes = exports._decode_CommonDataObjectAttributes = exports.CommonDataObjectAttributes = void 0;
const $ = require("asn1-ts/dist/node/functional");
const CommonDataObjectAttributes_ta_1 = require("../PKCS-15/CommonDataObjectAttributes.ta");
const PKCS15Object_ta_1 = require("../PKCS-15/PKCS15Object.ta");
var CommonDataObjectAttributes_ta_2 = require("../PKCS-15/CommonDataObjectAttributes.ta");
Object.defineProperty(exports, "CommonDataObjectAttributes", { enumerable: true, get: function () { return CommonDataObjectAttributes_ta_2.CommonDataObjectAttributes; } });
Object.defineProperty(exports, "_decode_CommonDataObjectAttributes", { enumerable: true, get: function () { return CommonDataObjectAttributes_ta_2._decode_CommonDataObjectAttributes; } });
Object.defineProperty(exports, "_encode_CommonDataObjectAttributes", { enumerable: true, get: function () { return CommonDataObjectAttributes_ta_2._encode_CommonDataObjectAttributes; } });
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 DataObject */
/* START_OF_SYMBOL_DEFINITION _get_decoder_for_DataObject */
/**
* @summary Returns a function that will decode an ASN.1 element into a(n) DataObject
* @function
* @param {_Element} el The element being decoded.
* @returns A function that will decode an ASN.1 element.
*/
function _get_decoder_for_DataObject(_decode_DataObjectAttributes) {
return PKCS15Object_ta_1._get_decoder_for_PKCS15Object(CommonDataObjectAttributes_ta_1._decode_CommonDataObjectAttributes, $._decodeNull, _decode_DataObjectAttributes);
}
exports._get_decoder_for_DataObject = _get_decoder_for_DataObject;
/* END_OF_SYMBOL_DEFINITION _get_decoder_for_DataObject */
/* START_OF_SYMBOL_DEFINITION _get_encoder_for_DataObject */
/**
* @summary Returns a function that will encode a(n) DataObject into an ASN.1 Element.
* @function
* @returns A function that will encode a(n) DataObject as an ASN.1 element.
*/
function _get_encoder_for_DataObject(_encode_DataObjectAttributes) {
return PKCS15Object_ta_1._get_encoder_for_PKCS15Object(CommonDataObjectAttributes_ta_1._encode_CommonDataObjectAttributes, $._encodeNull, _encode_DataObjectAttributes);
}
exports._get_encoder_for_DataObject = _get_encoder_for_DataObject;
/* END_OF_SYMBOL_DEFINITION _get_encoder_for_DataObject */
/* eslint-enable */
//# sourceMappingURL=DataObject.ta.js.map