UNPKG

@wildboar/pkcs

Version:
138 lines 4.4 kB
import { ASN1Element as _Element, OPTIONAL } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { HashAlgorithm } from "../PKCS-1/HashAlgorithm.ta.mjs"; import { MaskGenAlgorithm } from "../PKCS-1/MaskGenAlgorithm.ta.mjs"; import { PSourceAlgorithm } from "../PKCS-1/PSourceAlgorithm.ta.mjs"; /** * @summary RSAES_OAEP_params * @description * * ### ASN.1 Definition: * * ```asn1 * RSAES-OAEP-params ::= SEQUENCE { * hashAlgorithm [0] HashAlgorithm DEFAULT sha1, * maskGenAlgorithm [1] MaskGenAlgorithm DEFAULT mgf1SHA1, * pSourceAlgorithm [2] PSourceAlgorithm DEFAULT pSpecifiedEmpty * } * ``` * */ export declare class RSAES_OAEP_params { /** * @summary `hashAlgorithm`. * @public * @readonly */ readonly hashAlgorithm?: OPTIONAL<HashAlgorithm>; /** * @summary `maskGenAlgorithm`. * @public * @readonly */ readonly maskGenAlgorithm?: OPTIONAL<MaskGenAlgorithm>; /** * @summary `pSourceAlgorithm`. * @public * @readonly */ readonly pSourceAlgorithm?: OPTIONAL<PSourceAlgorithm>; constructor( /** * @summary `hashAlgorithm`. * @public * @readonly */ hashAlgorithm?: OPTIONAL<HashAlgorithm>, /** * @summary `maskGenAlgorithm`. * @public * @readonly */ maskGenAlgorithm?: OPTIONAL<MaskGenAlgorithm>, /** * @summary `pSourceAlgorithm`. * @public * @readonly */ pSourceAlgorithm?: OPTIONAL<PSourceAlgorithm>); /** * @summary Restructures an object into a RSAES_OAEP_params * @description * * This takes an `object` and converts it to a `RSAES_OAEP_params`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `RSAES_OAEP_params`. * @returns {RSAES_OAEP_params} */ static _from_object(_o: { [_K in keyof RSAES_OAEP_params]: RSAES_OAEP_params[_K]; }): RSAES_OAEP_params; /** * @summary Getter that returns the default value for `hashAlgorithm`. * @public * @static * @method */ static get _default_value_for_hashAlgorithm(): HashAlgorithm; /** * @summary Getter that returns the default value for `maskGenAlgorithm`. * @public * @static * @method */ static get _default_value_for_maskGenAlgorithm(): MaskGenAlgorithm; /** * @summary Getter that returns the default value for `pSourceAlgorithm`. * @public * @static * @method */ static get _default_value_for_pSourceAlgorithm(): PSourceAlgorithm; } /** * @summary The Leading Root Component Types of RSAES_OAEP_params * @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_RSAES_OAEP_params: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of RSAES_OAEP_params * @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_RSAES_OAEP_params: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of RSAES_OAEP_params * @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_RSAES_OAEP_params: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) RSAES_OAEP_params * @function * @param {_Element} el The element being decoded. * @returns {RSAES_OAEP_params} The decoded data structure. */ export declare function _decode_RSAES_OAEP_params(el: _Element): RSAES_OAEP_params; /** * @summary Encodes a(n) RSAES_OAEP_params 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 RSAES_OAEP_params, encoded as an ASN.1 Element. */ export declare function _encode_RSAES_OAEP_params(value: RSAES_OAEP_params, elGetter: $.ASN1Encoder<RSAES_OAEP_params>): _Element; //# sourceMappingURL=RSAES-OAEP-params.ta.d.mts.map