UNPKG

@wildboar/pkcs

Version:
44 lines 1.87 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_EncryptedKey = exports._decode_EncryptedKey = void 0; const $ = require("asn1-ts/dist/node/functional"); /* END_OF_SYMBOL_DEFINITION EncryptedKey */ /* START_OF_SYMBOL_DEFINITION _cached_decoder_for_EncryptedKey */ let _cached_decoder_for_EncryptedKey = null; /* END_OF_SYMBOL_DEFINITION _cached_decoder_for_EncryptedKey */ /* START_OF_SYMBOL_DEFINITION _decode_EncryptedKey */ /** * @summary Decodes an ASN.1 element into a(n) EncryptedKey * @function * @param {_Element} el The element being decoded. * @returns {EncryptedKey} The decoded data structure. */ function _decode_EncryptedKey(el) { if (!_cached_decoder_for_EncryptedKey) { _cached_decoder_for_EncryptedKey = $._decodeOctetString; } return _cached_decoder_for_EncryptedKey(el); } exports._decode_EncryptedKey = _decode_EncryptedKey; /* END_OF_SYMBOL_DEFINITION _decode_EncryptedKey */ /* START_OF_SYMBOL_DEFINITION _cached_encoder_for_EncryptedKey */ let _cached_encoder_for_EncryptedKey = null; /* END_OF_SYMBOL_DEFINITION _cached_encoder_for_EncryptedKey */ /* START_OF_SYMBOL_DEFINITION _encode_EncryptedKey */ /** * @summary Encodes a(n) EncryptedKey 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 EncryptedKey, encoded as an ASN.1 Element. */ function _encode_EncryptedKey(value, elGetter) { if (!_cached_encoder_for_EncryptedKey) { _cached_encoder_for_EncryptedKey = $._encodeOctetString; } return _cached_encoder_for_EncryptedKey(value, elGetter); } exports._encode_EncryptedKey = _encode_EncryptedKey; /* END_OF_SYMBOL_DEFINITION _encode_EncryptedKey */ /* eslint-enable */ //# sourceMappingURL=EncryptedKey.ta.js.map