@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
60 lines • 3.07 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_CertificationRequestInfo_version = exports._decode_CertificationRequestInfo_version = exports.v1 = exports.CertificationRequestInfo_version_v1 = void 0;
const $ = require("asn1-ts/dist/node/functional");
/* END_OF_SYMBOL_DEFINITION CertificationRequestInfo_version */
/* START_OF_SYMBOL_DEFINITION CertificationRequestInfo_version_v1 */
/**
* @summary CertificationRequestInfo_version_v1
* @constant
* @type {number}
*/
exports.CertificationRequestInfo_version_v1 = 0; /* LONG_NAMED_INTEGER_VALUE */
/* END_OF_SYMBOL_DEFINITION CertificationRequestInfo_version_v1 */
/* START_OF_SYMBOL_DEFINITION v1 */
/**
* @summary CertificationRequestInfo_version_v1
* @constant
* @type {number}
*/
exports.v1 = exports.CertificationRequestInfo_version_v1; /* SHORT_NAMED_INTEGER_VALUE */
/* END_OF_SYMBOL_DEFINITION v1 */
/* START_OF_SYMBOL_DEFINITION _cached_decoder_for_CertificationRequestInfo_version */
let _cached_decoder_for_CertificationRequestInfo_version = null;
/* END_OF_SYMBOL_DEFINITION _cached_decoder_for_CertificationRequestInfo_version */
/* START_OF_SYMBOL_DEFINITION _decode_CertificationRequestInfo_version */
/**
* @summary Decodes an ASN.1 element into a(n) CertificationRequestInfo_version
* @function
* @param {_Element} el The element being decoded.
* @returns {CertificationRequestInfo_version} The decoded data structure.
*/
function _decode_CertificationRequestInfo_version(el) {
if (!_cached_decoder_for_CertificationRequestInfo_version) {
_cached_decoder_for_CertificationRequestInfo_version = $._decodeInteger;
}
return _cached_decoder_for_CertificationRequestInfo_version(el);
}
exports._decode_CertificationRequestInfo_version = _decode_CertificationRequestInfo_version;
/* END_OF_SYMBOL_DEFINITION _decode_CertificationRequestInfo_version */
/* START_OF_SYMBOL_DEFINITION _cached_encoder_for_CertificationRequestInfo_version */
let _cached_encoder_for_CertificationRequestInfo_version = null;
/* END_OF_SYMBOL_DEFINITION _cached_encoder_for_CertificationRequestInfo_version */
/* START_OF_SYMBOL_DEFINITION _encode_CertificationRequestInfo_version */
/**
* @summary Encodes a(n) CertificationRequestInfo_version 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 CertificationRequestInfo_version, encoded as an ASN.1 Element.
*/
function _encode_CertificationRequestInfo_version(value, elGetter) {
if (!_cached_encoder_for_CertificationRequestInfo_version) {
_cached_encoder_for_CertificationRequestInfo_version = $._encodeInteger;
}
return _cached_encoder_for_CertificationRequestInfo_version(value, elGetter);
}
exports._encode_CertificationRequestInfo_version = _encode_CertificationRequestInfo_version;
/* END_OF_SYMBOL_DEFINITION _encode_CertificationRequestInfo_version */
/* eslint-enable */
//# sourceMappingURL=CertificationRequestInfo-version.ta.js.map