CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2024/11/02 03:21:04

Modified files:
        lib/libcrypto/ec: ecp_oct.c 

Log message:
Rewrite/clean up ec_GFp_simple_set_compressed_coordinates()

The biggest change here is that the computation is now performed in the
Montgomery domain if we have a Montgomery curve. This avoids constant
checking whether need to use plain field operations or whether we can
use curve-specific ones.

Use a few better variable names and stop attempting to figure out whether
the operation failed due to an error in BN_mod_sqrt() or a bad point. All
in all this only shaves off 10 lines, but it is astounding what a few tweaks
can do to code that looked like Rome in 455 AD.

with/ok jsing

Reply via email to