@wildboar/pki-stub
Version:
X.510 PKI-Stub ASN.1 data structures in TypeScript
32 lines • 1.34 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_OrganizationName = exports._decode_OrganizationName = void 0;
const $ = require("asn1-ts/dist/node/functional");
/* END_OF_SYMBOL_DEFINITION OrganizationName */
/* START_OF_SYMBOL_DEFINITION _decode_OrganizationName */
/**
* @summary Decodes an ASN.1 element into a(n) OrganizationName
* @function
* @param {_Element} el The element being decoded.
* @returns {OrganizationName} The decoded data structure.
*/
function _decode_OrganizationName(el) {
return $._decodePrintableString(el);
}
exports._decode_OrganizationName = _decode_OrganizationName;
/* END_OF_SYMBOL_DEFINITION _decode_OrganizationName */
/* START_OF_SYMBOL_DEFINITION _encode_OrganizationName */
/**
* @summary Encodes a(n) OrganizationName 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 OrganizationName, encoded as an ASN.1 Element.
*/
function _encode_OrganizationName(value, elGetter) {
return $._encodePrintableString(value, elGetter);
}
exports._encode_OrganizationName = _encode_OrganizationName;
/* END_OF_SYMBOL_DEFINITION _encode_OrganizationName */
/* eslint-enable */
//# sourceMappingURL=OrganizationName.ta.js.map