@wildboar/pki-stub
Version:
X.510 PKI-Stub ASN.1 data structures in TypeScript
32 lines • 1.4 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_DistinguishedName = exports._decode_DistinguishedName = void 0;
const RDNSequence_ta_1 = require("../PKI-Stub/RDNSequence.ta");
/* END_OF_SYMBOL_DEFINITION DistinguishedName */
/* START_OF_SYMBOL_DEFINITION _decode_DistinguishedName */
/**
* @summary Decodes an ASN.1 element into a(n) DistinguishedName
* @function
* @param {_Element} el The element being decoded.
* @returns {DistinguishedName} The decoded data structure.
*/
function _decode_DistinguishedName(el) {
return RDNSequence_ta_1._decode_RDNSequence(el);
}
exports._decode_DistinguishedName = _decode_DistinguishedName;
/* END_OF_SYMBOL_DEFINITION _decode_DistinguishedName */
/* START_OF_SYMBOL_DEFINITION _encode_DistinguishedName */
/**
* @summary Encodes a(n) DistinguishedName into an ASN.1 Element.
* @function
* @param {value} el The element being decoded.
* @param elGetter A function that can be used to get new ASN.1 elements.
* @returns {_Element} The DistinguishedName, encoded as an ASN.1 Element.
*/
function _encode_DistinguishedName(value, elGetter) {
return RDNSequence_ta_1._encode_RDNSequence(value, elGetter);
}
exports._encode_DistinguishedName = _encode_DistinguishedName;
/* END_OF_SYMBOL_DEFINITION _encode_DistinguishedName */
/* eslint-enable */
//# sourceMappingURL=DistinguishedName.ta.js.map