pkcs-ts
Version:
PKCS #1 through #15 (Except #11) - Private and Public Keys, Certificates, and More
27 lines • 1.81 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_UnprotectedAttributes = exports._decode_UnprotectedAttributes = exports._encode_Attribute = exports._decode_Attribute = exports.Attribute = void 0;
const tslib_1 = require("tslib");
const $ = tslib_1.__importStar(require("asn1-ts/dist/node/functional"));
const Attribute_ta_1 = require("../CryptographicMessageSyntax/Attribute.ta");
var Attribute_ta_2 = require("../CryptographicMessageSyntax/Attribute.ta");
Object.defineProperty(exports, "Attribute", { enumerable: true, get: function () { return Attribute_ta_2.Attribute; } });
Object.defineProperty(exports, "_decode_Attribute", { enumerable: true, get: function () { return Attribute_ta_2._decode_Attribute; } });
Object.defineProperty(exports, "_encode_Attribute", { enumerable: true, get: function () { return Attribute_ta_2._encode_Attribute; } });
let _cached_decoder_for_UnprotectedAttributes = null;
function _decode_UnprotectedAttributes(el) {
if (!_cached_decoder_for_UnprotectedAttributes) {
_cached_decoder_for_UnprotectedAttributes = $._decodeSetOf(() => Attribute_ta_1._decode_Attribute);
}
return _cached_decoder_for_UnprotectedAttributes(el);
}
exports._decode_UnprotectedAttributes = _decode_UnprotectedAttributes;
let _cached_encoder_for_UnprotectedAttributes = null;
function _encode_UnprotectedAttributes(value, elGetter) {
if (!_cached_encoder_for_UnprotectedAttributes) {
_cached_encoder_for_UnprotectedAttributes = $._encodeSetOf(() => Attribute_ta_1._encode_Attribute, $.BER);
}
return _cached_encoder_for_UnprotectedAttributes(value, elGetter);
}
exports._encode_UnprotectedAttributes = _encode_UnprotectedAttributes;
//# sourceMappingURL=UnprotectedAttributes.ta.js.map