@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
156 lines • 5.79 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_Operations = exports._decode_Operations = exports.generate_key = exports.Operations_generate_key = exports.hash = exports.Operations_hash = exports.decipher = exports.Operations_decipher = exports.encipher = exports.Operations_encipher = exports.verify_signature = exports.Operations_verify_signature = exports.verify_checksum = exports.Operations_verify_checksum = exports.compute_signature = exports.Operations_compute_signature = exports.compute_checksum = exports.Operations_compute_checksum = void 0;
const $ = require("asn1-ts/dist/node/functional");
/* END_OF_SYMBOL_DEFINITION Operations */
/* START_OF_SYMBOL_DEFINITION Operations_compute_checksum */
/**
* @summary Operations_compute_checksum
* @constant
*/
exports.Operations_compute_checksum = 0; /* LONG_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION Operations_compute_checksum */
/* START_OF_SYMBOL_DEFINITION compute_checksum */
/**
* @summary compute_checksum
* @constant
*/
exports.compute_checksum = exports.Operations_compute_checksum; /* SHORT_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION compute_checksum */
/* START_OF_SYMBOL_DEFINITION Operations_compute_signature */
/**
* @summary Operations_compute_signature
* @constant
*/
exports.Operations_compute_signature = 1; /* LONG_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION Operations_compute_signature */
/* START_OF_SYMBOL_DEFINITION compute_signature */
/**
* @summary compute_signature
* @constant
*/
exports.compute_signature = exports.Operations_compute_signature; /* SHORT_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION compute_signature */
/* START_OF_SYMBOL_DEFINITION Operations_verify_checksum */
/**
* @summary Operations_verify_checksum
* @constant
*/
exports.Operations_verify_checksum = 2; /* LONG_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION Operations_verify_checksum */
/* START_OF_SYMBOL_DEFINITION verify_checksum */
/**
* @summary verify_checksum
* @constant
*/
exports.verify_checksum = exports.Operations_verify_checksum; /* SHORT_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION verify_checksum */
/* START_OF_SYMBOL_DEFINITION Operations_verify_signature */
/**
* @summary Operations_verify_signature
* @constant
*/
exports.Operations_verify_signature = 3; /* LONG_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION Operations_verify_signature */
/* START_OF_SYMBOL_DEFINITION verify_signature */
/**
* @summary verify_signature
* @constant
*/
exports.verify_signature = exports.Operations_verify_signature; /* SHORT_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION verify_signature */
/* START_OF_SYMBOL_DEFINITION Operations_encipher */
/**
* @summary Operations_encipher
* @constant
*/
exports.Operations_encipher = 4; /* LONG_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION Operations_encipher */
/* START_OF_SYMBOL_DEFINITION encipher */
/**
* @summary encipher
* @constant
*/
exports.encipher = exports.Operations_encipher; /* SHORT_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION encipher */
/* START_OF_SYMBOL_DEFINITION Operations_decipher */
/**
* @summary Operations_decipher
* @constant
*/
exports.Operations_decipher = 5; /* LONG_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION Operations_decipher */
/* START_OF_SYMBOL_DEFINITION decipher */
/**
* @summary decipher
* @constant
*/
exports.decipher = exports.Operations_decipher; /* SHORT_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION decipher */
/* START_OF_SYMBOL_DEFINITION Operations_hash */
/**
* @summary Operations_hash
* @constant
*/
exports.Operations_hash = 6; /* LONG_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION Operations_hash */
/* START_OF_SYMBOL_DEFINITION hash */
/**
* @summary hash
* @constant
*/
exports.hash = exports.Operations_hash; /* SHORT_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION hash */
/* START_OF_SYMBOL_DEFINITION Operations_generate_key */
/**
* @summary Operations_generate_key
* @constant
*/
exports.Operations_generate_key = 7; /* LONG_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION Operations_generate_key */
/* START_OF_SYMBOL_DEFINITION generate_key */
/**
* @summary generate_key
* @constant
*/
exports.generate_key = exports.Operations_generate_key; /* SHORT_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION generate_key */
/* START_OF_SYMBOL_DEFINITION _cached_decoder_for_Operations */
let _cached_decoder_for_Operations = null;
/* END_OF_SYMBOL_DEFINITION _cached_decoder_for_Operations */
/* START_OF_SYMBOL_DEFINITION _decode_Operations */
/**
* @summary Decodes an ASN.1 element into a(n) Operations
* @function
* @param {_Element} el The element being decoded.
* @returns {Operations} The decoded data structure.
*/
function _decode_Operations(el) {
if (!_cached_decoder_for_Operations) {
_cached_decoder_for_Operations = $._decodeBitString;
}
return _cached_decoder_for_Operations(el);
}
exports._decode_Operations = _decode_Operations;
/* END_OF_SYMBOL_DEFINITION _decode_Operations */
/* START_OF_SYMBOL_DEFINITION _cached_encoder_for_Operations */
let _cached_encoder_for_Operations = null;
/* END_OF_SYMBOL_DEFINITION _cached_encoder_for_Operations */
/* START_OF_SYMBOL_DEFINITION _encode_Operations */
/**
* @summary Encodes a(n) Operations 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 Operations, encoded as an ASN.1 Element.
*/
function _encode_Operations(value, elGetter) {
if (!_cached_encoder_for_Operations) {
_cached_encoder_for_Operations = $._encodeBitString;
}
return _cached_encoder_for_Operations(value, elGetter);
}
exports._encode_Operations = _encode_Operations;
/* END_OF_SYMBOL_DEFINITION _encode_Operations */
/* eslint-enable */
//# sourceMappingURL=Operations.ta.js.map