import { ASN1Element as _Element, OPTIONAL } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { CMSVersion } from "../CMSSigncryption/CMSVersion.ta.mjs"; import { SignatureInformation } from "../CMSSigncryption/SignatureInformation.ta.mjs"; import { SigncryptedDataAlgorithmIdentifier } from "../CMSSigncryption/SigncryptedDataAlgorithmIdentifier.ta.mjs"; import { SigncrypterIDs } from "../CMSSigncryption/SigncrypterIDs.ta.mjs"; import { SigncryptionValue } from "../CMSSigncryption/SigncryptionValue.ta.mjs"; import { UnSigncryptedAttributes } from "../CMSSigncryption/UnSigncryptedAttributes.ta.mjs"; /** * @summary Signcrypter * @description * * ### ASN.1 Definition: * * ```asn1 * Signcrypter ::= SEQUENCE { * version CMSVersion, * side SigncrypterIDs, * signcryptedDataAlgorithm SigncryptedDataAlgorithmIdentifier, * signcryptionValue SigncryptionValue, * signatureInformation SignatureInformation OPTIONAL, * unsigncryptedAttributes UnSigncryptedAttributes OPTIONAL * } * ``` * */ export declare class Signcrypter { /** * @summary `version`. * @public * @readonly */ readonly version: CMSVersion; /** * @summary `side`. * @public * @readonly */ readonly side: SigncrypterIDs; /** * @summary `signcryptedDataAlgorithm`. * @public * @readonly */ readonly signcryptedDataAlgorithm: SigncryptedDataAlgorithmIdentifier; /** * @summary `signcryptionValue`. * @public * @readonly */ readonly signcryptionValue: SigncryptionValue; /** * @summary `signatureInformation`. * @public * @readonly */ readonly signatureInformation?: OPTIONAL; /** * @summary `unsigncryptedAttributes`. * @public * @readonly */ readonly unsigncryptedAttributes?: OPTIONAL; constructor( /** * @summary `version`. * @public * @readonly */ version: CMSVersion, /** * @summary `side`. * @public * @readonly */ side: SigncrypterIDs, /** * @summary `signcryptedDataAlgorithm`. * @public * @readonly */ signcryptedDataAlgorithm: SigncryptedDataAlgorithmIdentifier, /** * @summary `signcryptionValue`. * @public * @readonly */ signcryptionValue: SigncryptionValue, /** * @summary `signatureInformation`. * @public * @readonly */ signatureInformation?: OPTIONAL, /** * @summary `unsigncryptedAttributes`. * @public * @readonly */ unsigncryptedAttributes?: OPTIONAL); /** * @summary Restructures an object into a Signcrypter * @description * * This takes an `object` and converts it to a `Signcrypter`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `Signcrypter`. * @returns {Signcrypter} */ static _from_object(_o: { [_K in keyof Signcrypter]: Signcrypter[_K]; }): Signcrypter; } /** * @summary The Leading Root Component Types of Signcrypter * @description * * This is an array of `ComponentSpec`s that define how to decode the leading root component type list of a SET or SEQUENCE. * * @constant */ export declare const _root_component_type_list_1_spec_for_Signcrypter: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of Signcrypter * @description * * This is an array of `ComponentSpec`s that define how to decode the trailing root component type list of a SET or SEQUENCE. * * @constant */ export declare const _root_component_type_list_2_spec_for_Signcrypter: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of Signcrypter * @description * * This is an array of `ComponentSpec`s that define how to decode the extension addition component type list of a SET or SEQUENCE. * * @constant */ export declare const _extension_additions_list_spec_for_Signcrypter: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) Signcrypter * @function * @param {_Element} el The element being decoded. * @returns {Signcrypter} The decoded data structure. */ export declare function _decode_Signcrypter(el: _Element): Signcrypter; /** * @summary Encodes a(n) Signcrypter into an ASN.1 Element. * @function * @param value The element being encoded. * @param elGetter A function that can be used to get new ASN.1 elements. * @returns {_Element} The Signcrypter, encoded as an ASN.1 Element. */ export declare function _encode_Signcrypter(value: Signcrypter, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=Signcrypter.ta.d.mts.map