@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
49 lines • 3.12 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_RecipientEncryptedKeys = exports._decode_RecipientEncryptedKeys = exports._encode_RecipientEncryptedKey = exports._decode_RecipientEncryptedKey = exports.RecipientEncryptedKey = void 0;
const $ = require("asn1-ts/dist/node/functional");
const RecipientEncryptedKey_ta_1 = require("../CryptographicMessageSyntax/RecipientEncryptedKey.ta");
var RecipientEncryptedKey_ta_2 = require("../CryptographicMessageSyntax/RecipientEncryptedKey.ta");
Object.defineProperty(exports, "RecipientEncryptedKey", { enumerable: true, get: function () { return RecipientEncryptedKey_ta_2.RecipientEncryptedKey; } });
Object.defineProperty(exports, "_decode_RecipientEncryptedKey", { enumerable: true, get: function () { return RecipientEncryptedKey_ta_2._decode_RecipientEncryptedKey; } });
Object.defineProperty(exports, "_encode_RecipientEncryptedKey", { enumerable: true, get: function () { return RecipientEncryptedKey_ta_2._encode_RecipientEncryptedKey; } });
/* END_OF_SYMBOL_DEFINITION RecipientEncryptedKeys */
/* START_OF_SYMBOL_DEFINITION _cached_decoder_for_RecipientEncryptedKeys */
let _cached_decoder_for_RecipientEncryptedKeys = null;
/* END_OF_SYMBOL_DEFINITION _cached_decoder_for_RecipientEncryptedKeys */
/* START_OF_SYMBOL_DEFINITION _decode_RecipientEncryptedKeys */
/**
* @summary Decodes an ASN.1 element into a(n) RecipientEncryptedKeys
* @function
* @param {_Element} el The element being decoded.
* @returns {RecipientEncryptedKeys} The decoded data structure.
*/
function _decode_RecipientEncryptedKeys(el) {
if (!_cached_decoder_for_RecipientEncryptedKeys) {
_cached_decoder_for_RecipientEncryptedKeys = $._decodeSequenceOf(() => RecipientEncryptedKey_ta_1._decode_RecipientEncryptedKey);
}
return _cached_decoder_for_RecipientEncryptedKeys(el);
}
exports._decode_RecipientEncryptedKeys = _decode_RecipientEncryptedKeys;
/* END_OF_SYMBOL_DEFINITION _decode_RecipientEncryptedKeys */
/* START_OF_SYMBOL_DEFINITION _cached_encoder_for_RecipientEncryptedKeys */
let _cached_encoder_for_RecipientEncryptedKeys = null;
/* END_OF_SYMBOL_DEFINITION _cached_encoder_for_RecipientEncryptedKeys */
/* START_OF_SYMBOL_DEFINITION _encode_RecipientEncryptedKeys */
/**
* @summary Encodes a(n) RecipientEncryptedKeys 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 RecipientEncryptedKeys, encoded as an ASN.1 Element.
*/
function _encode_RecipientEncryptedKeys(value, elGetter) {
if (!_cached_encoder_for_RecipientEncryptedKeys) {
_cached_encoder_for_RecipientEncryptedKeys = $._encodeSequenceOf(() => RecipientEncryptedKey_ta_1._encode_RecipientEncryptedKey, $.BER);
}
return _cached_encoder_for_RecipientEncryptedKeys(value, elGetter);
}
exports._encode_RecipientEncryptedKeys = _encode_RecipientEncryptedKeys;
/* END_OF_SYMBOL_DEFINITION _encode_RecipientEncryptedKeys */
/* eslint-enable */
//# sourceMappingURL=RecipientEncryptedKeys.ta.js.map