UNPKG

@wildboar/pkcs

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