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