Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539)
else if (!OSSL_PARAM_get_utf8_ptr(param_mgf, &mgfname))
return 0;
- /* TODO Revisit this if / when a new MGF algorithm appears */
if (strcasecmp(param_mgf->data,
ossl_rsa_mgf_nid2name(default_maskgenalg_nid)) != 0)
return 0;
}
#ifndef FIPS_MODULE
- /*
- * calculate m_i in multi-prime case
- *
- * TODO:
- * 1. squash the following two loops and calculate |m_i| there.
- * 2. remove cc and reuse |c|.
- * 3. remove |dmq1| and |dmp1| in previous block and use |di|.
- *
- * If these things are done, the code will be more readable.
- */
if (ex_primes > 0) {
BIGNUM *di = BN_new(), *cc = BN_new();