UNPKG

@wildboar/pkcs

Version:
44 lines 1.91 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_AttributeValue = exports._decode_AttributeValue = void 0; const $ = require("asn1-ts/dist/node/functional"); /* END_OF_SYMBOL_DEFINITION AttributeValue */ /* START_OF_SYMBOL_DEFINITION _cached_decoder_for_AttributeValue */ let _cached_decoder_for_AttributeValue = null; /* END_OF_SYMBOL_DEFINITION _cached_decoder_for_AttributeValue */ /* START_OF_SYMBOL_DEFINITION _decode_AttributeValue */ /** * @summary Decodes an ASN.1 element into a(n) AttributeValue * @function * @param {_Element} el The element being decoded. * @returns {AttributeValue} The decoded data structure. */ function _decode_AttributeValue(el) { if (!_cached_decoder_for_AttributeValue) { _cached_decoder_for_AttributeValue = $._decodeAny; } return _cached_decoder_for_AttributeValue(el); } exports._decode_AttributeValue = _decode_AttributeValue; /* END_OF_SYMBOL_DEFINITION _decode_AttributeValue */ /* START_OF_SYMBOL_DEFINITION _cached_encoder_for_AttributeValue */ let _cached_encoder_for_AttributeValue = null; /* END_OF_SYMBOL_DEFINITION _cached_encoder_for_AttributeValue */ /* START_OF_SYMBOL_DEFINITION _encode_AttributeValue */ /** * @summary Encodes a(n) AttributeValue 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 AttributeValue, encoded as an ASN.1 Element. */ function _encode_AttributeValue(value, elGetter) { if (!_cached_encoder_for_AttributeValue) { _cached_encoder_for_AttributeValue = $._encodeAny; } return _cached_encoder_for_AttributeValue(value, elGetter); } exports._encode_AttributeValue = _encode_AttributeValue; /* END_OF_SYMBOL_DEFINITION _encode_AttributeValue */ /* eslint-enable */ //# sourceMappingURL=AttributeValue.ta.js.map