@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
44 lines • 2.12 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_KeyWrapAlgorithm = exports._decode_KeyWrapAlgorithm = void 0;
const AlgorithmIdentifier_ta_1 = require("@wildboar/x500/src/lib/modules/AuthenticationFramework/AlgorithmIdentifier.ta");
/* END_OF_SYMBOL_DEFINITION KeyWrapAlgorithm */
/* START_OF_SYMBOL_DEFINITION _cached_decoder_for_KeyWrapAlgorithm */
let _cached_decoder_for_KeyWrapAlgorithm = null;
/* END_OF_SYMBOL_DEFINITION _cached_decoder_for_KeyWrapAlgorithm */
/* START_OF_SYMBOL_DEFINITION _decode_KeyWrapAlgorithm */
/**
* @summary Decodes an ASN.1 element into a(n) KeyWrapAlgorithm
* @function
* @param {_Element} el The element being decoded.
* @returns {KeyWrapAlgorithm} The decoded data structure.
*/
function _decode_KeyWrapAlgorithm(el) {
if (!_cached_decoder_for_KeyWrapAlgorithm) {
_cached_decoder_for_KeyWrapAlgorithm = AlgorithmIdentifier_ta_1._decode_AlgorithmIdentifier;
}
return _cached_decoder_for_KeyWrapAlgorithm(el);
}
exports._decode_KeyWrapAlgorithm = _decode_KeyWrapAlgorithm;
/* END_OF_SYMBOL_DEFINITION _decode_KeyWrapAlgorithm */
/* START_OF_SYMBOL_DEFINITION _cached_encoder_for_KeyWrapAlgorithm */
let _cached_encoder_for_KeyWrapAlgorithm = null;
/* END_OF_SYMBOL_DEFINITION _cached_encoder_for_KeyWrapAlgorithm */
/* START_OF_SYMBOL_DEFINITION _encode_KeyWrapAlgorithm */
/**
* @summary Encodes a(n) KeyWrapAlgorithm 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 KeyWrapAlgorithm, encoded as an ASN.1 Element.
*/
function _encode_KeyWrapAlgorithm(value, elGetter) {
if (!_cached_encoder_for_KeyWrapAlgorithm) {
_cached_encoder_for_KeyWrapAlgorithm = AlgorithmIdentifier_ta_1._encode_AlgorithmIdentifier;
}
return _cached_encoder_for_KeyWrapAlgorithm(value, elGetter);
}
exports._encode_KeyWrapAlgorithm = _encode_KeyWrapAlgorithm;
/* END_OF_SYMBOL_DEFINITION _encode_KeyWrapAlgorithm */
/* eslint-enable */
//# sourceMappingURL=KeyWrapAlgorithm.ta.js.map