UNPKG

@wildboar/pkcs

Version:
48 lines 2.61 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_Countersignature = exports._decode_Countersignature = exports._encode_SignerInfo = exports._decode_SignerInfo = exports.SignerInfo = void 0; const SignerInfo_ta_1 = require("../CryptographicMessageSyntax/SignerInfo.ta"); var SignerInfo_ta_2 = require("../CryptographicMessageSyntax/SignerInfo.ta"); Object.defineProperty(exports, "SignerInfo", { enumerable: true, get: function () { return SignerInfo_ta_2.SignerInfo; } }); Object.defineProperty(exports, "_decode_SignerInfo", { enumerable: true, get: function () { return SignerInfo_ta_2._decode_SignerInfo; } }); Object.defineProperty(exports, "_encode_SignerInfo", { enumerable: true, get: function () { return SignerInfo_ta_2._encode_SignerInfo; } }); /* END_OF_SYMBOL_DEFINITION Countersignature */ /* START_OF_SYMBOL_DEFINITION _cached_decoder_for_Countersignature */ let _cached_decoder_for_Countersignature = null; /* END_OF_SYMBOL_DEFINITION _cached_decoder_for_Countersignature */ /* START_OF_SYMBOL_DEFINITION _decode_Countersignature */ /** * @summary Decodes an ASN.1 element into a(n) Countersignature * @function * @param {_Element} el The element being decoded. * @returns {Countersignature} The decoded data structure. */ function _decode_Countersignature(el) { if (!_cached_decoder_for_Countersignature) { _cached_decoder_for_Countersignature = SignerInfo_ta_1._decode_SignerInfo; } return _cached_decoder_for_Countersignature(el); } exports._decode_Countersignature = _decode_Countersignature; /* END_OF_SYMBOL_DEFINITION _decode_Countersignature */ /* START_OF_SYMBOL_DEFINITION _cached_encoder_for_Countersignature */ let _cached_encoder_for_Countersignature = null; /* END_OF_SYMBOL_DEFINITION _cached_encoder_for_Countersignature */ /* START_OF_SYMBOL_DEFINITION _encode_Countersignature */ /** * @summary Encodes a(n) Countersignature 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 Countersignature, encoded as an ASN.1 Element. */ function _encode_Countersignature(value, elGetter) { if (!_cached_encoder_for_Countersignature) { _cached_encoder_for_Countersignature = SignerInfo_ta_1._encode_SignerInfo; } return _cached_encoder_for_Countersignature(value, elGetter); } exports._encode_Countersignature = _encode_Countersignature; /* END_OF_SYMBOL_DEFINITION _encode_Countersignature */ /* eslint-enable */ //# sourceMappingURL=Countersignature.ta.js.map