Home GnuPG

mpi:ec: Remove runtime check in ec_mod.

Description

mpi:ec: Remove runtime check in ec_mod.

* mpi/ec-inline.h (mpi_nbits_more_than): Remove.
* mpi/ec-nist.c (_gcry_mpi_ec_nist192_mod): Remove
runtime check for the size of W.
(_gcry_mpi_ec_nist224_mod): Likewise.
(_gcry_mpi_ec_nist256_mod): Likewise.
(_gcry_mpi_ec_nist384_mod): Likewise.
(_gcry_mpi_ec_nist521_mod): Likewise.
(ec_secp256k1_mod): Likewise.

It is precondition for those routines.

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Thu, Mar 27, 12:45 AM
Parents
rC058c2fab9aa8: t-mpi-point: fix test failing in FIPS mode
Branches
Unknown
Tags
Unknown