@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
72 lines • 3.03 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_CommonObjectFlags = exports._decode_CommonObjectFlags = exports.modifiable = exports.CommonObjectFlags_modifiable = exports.private_ = exports.CommonObjectFlags_private_ = void 0;
const $ = require("asn1-ts/dist/node/functional");
/* END_OF_SYMBOL_DEFINITION CommonObjectFlags */
/* START_OF_SYMBOL_DEFINITION CommonObjectFlags_private_ */
/**
* @summary CommonObjectFlags_private_
* @constant
*/
exports.CommonObjectFlags_private_ = 0; /* LONG_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION CommonObjectFlags_private_ */
/* START_OF_SYMBOL_DEFINITION private_ */
/**
* @summary private_
* @constant
*/
exports.private_ = exports.CommonObjectFlags_private_; /* SHORT_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION private_ */
/* START_OF_SYMBOL_DEFINITION CommonObjectFlags_modifiable */
/**
* @summary CommonObjectFlags_modifiable
* @constant
*/
exports.CommonObjectFlags_modifiable = 1; /* LONG_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION CommonObjectFlags_modifiable */
/* START_OF_SYMBOL_DEFINITION modifiable */
/**
* @summary modifiable
* @constant
*/
exports.modifiable = exports.CommonObjectFlags_modifiable; /* SHORT_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION modifiable */
/* START_OF_SYMBOL_DEFINITION _cached_decoder_for_CommonObjectFlags */
let _cached_decoder_for_CommonObjectFlags = null;
/* END_OF_SYMBOL_DEFINITION _cached_decoder_for_CommonObjectFlags */
/* START_OF_SYMBOL_DEFINITION _decode_CommonObjectFlags */
/**
* @summary Decodes an ASN.1 element into a(n) CommonObjectFlags
* @function
* @param {_Element} el The element being decoded.
* @returns {CommonObjectFlags} The decoded data structure.
*/
function _decode_CommonObjectFlags(el) {
if (!_cached_decoder_for_CommonObjectFlags) {
_cached_decoder_for_CommonObjectFlags = $._decodeBitString;
}
return _cached_decoder_for_CommonObjectFlags(el);
}
exports._decode_CommonObjectFlags = _decode_CommonObjectFlags;
/* END_OF_SYMBOL_DEFINITION _decode_CommonObjectFlags */
/* START_OF_SYMBOL_DEFINITION _cached_encoder_for_CommonObjectFlags */
let _cached_encoder_for_CommonObjectFlags = null;
/* END_OF_SYMBOL_DEFINITION _cached_encoder_for_CommonObjectFlags */
/* START_OF_SYMBOL_DEFINITION _encode_CommonObjectFlags */
/**
* @summary Encodes a(n) CommonObjectFlags 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 CommonObjectFlags, encoded as an ASN.1 Element.
*/
function _encode_CommonObjectFlags(value, elGetter) {
if (!_cached_encoder_for_CommonObjectFlags) {
_cached_encoder_for_CommonObjectFlags = $._encodeBitString;
}
return _cached_encoder_for_CommonObjectFlags(value, elGetter);
}
exports._encode_CommonObjectFlags = _encode_CommonObjectFlags;
/* END_OF_SYMBOL_DEFINITION _encode_CommonObjectFlags */
/* eslint-enable */
//# sourceMappingURL=CommonObjectFlags.ta.js.map