UNPKG

pkcs-ts

Version:

PKCS #1 through #15 (Except #11) - Private and Public Keys, Certificates, and More

23 lines 1.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_Attributes = exports._decode_Attributes = void 0; const tslib_1 = require("tslib"); const $ = tslib_1.__importStar(require("asn1-ts/dist/node/functional")); const Attribute_ta_1 = require("x500-ts/dist/node/modules/InformationFramework/Attribute.ta"); let _cached_decoder_for_Attributes = null; function _decode_Attributes(el) { if (!_cached_decoder_for_Attributes) { _cached_decoder_for_Attributes = $._decodeSetOf(() => Attribute_ta_1._decode_Attribute); } return _cached_decoder_for_Attributes(el); } exports._decode_Attributes = _decode_Attributes; let _cached_encoder_for_Attributes = null; function _encode_Attributes(value, elGetter) { if (!_cached_encoder_for_Attributes) { _cached_encoder_for_Attributes = $._encodeSetOf(() => Attribute_ta_1._encode_Attribute, $.BER); } return _cached_encoder_for_Attributes(value, elGetter); } exports._encode_Attributes = _encode_Attributes; //# sourceMappingURL=Attributes.ta.js.map