UNPKG

@wildboar/pkcs

Version:
38 lines (37 loc) 1.24 kB
/* eslint-disable */ import * as $ from "@wildboar/asn1/functional"; import { AlgorithmIdentifier } from "@wildboar/x500/AuthenticationFramework"; import { id_RSAES_OAEP } from "../PKCS-1/id-RSAES-OAEP.va.mjs"; import { mgf1SHA1 } from "./mgf1SHA1.va.mjs"; import { pSpecifiedEmpty } from "./pSpecifiedEmpty.va.mjs"; import { RSAES_OAEP_params, _encode_RSAES_OAEP_params, } from "./RSAES-OAEP-params.ta.mjs"; import { sha1 } from "./sha1.va.mjs"; /** * @summary rSAES_OAEP_Default_Identifier * @description * * ### ASN.1 Definition: * * ```asn1 * rSAES-OAEP-Default-Identifier RSAES-AlgorithmIdentifier ::= { * algorithm id-RSAES-OAEP, * parameters RSAES-OAEP-params : { * hashAlgorithm sha1, * maskGenAlgorithm mgf1SHA1, * pSourceAlgorithm pSpecifiedEmpty * } * } * ``` * * @constant */ export const rSAES_OAEP_Default_Identifier = AlgorithmIdentifier._from_object({ algorithm: id_RSAES_OAEP, parameters: _encode_RSAES_OAEP_params(RSAES_OAEP_params._from_object({ hashAlgorithm: sha1, maskGenAlgorithm: mgf1SHA1, pSourceAlgorithm: pSpecifiedEmpty, }), $.DER), _unrecognizedExtensionsList: undefined, }); /* eslint-enable */