summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/err
diff options
context:
space:
mode:
authortb <>2024-11-02 09:21:04 +0000
committertb <>2024-11-02 09:21:04 +0000
commit48bac334008e8da0a46268db5e831bad09c7a1ed (patch)
tree21c0cdcf944a9def5acf5c52f126ad2b8e696828 /src/lib/libcrypto/err
parent31a7069580c5c1283d698f07f552c4dd435a4c2b (diff)
downloadopenbsd-48bac334008e8da0a46268db5e831bad09c7a1ed.tar.gz
openbsd-48bac334008e8da0a46268db5e831bad09c7a1ed.tar.bz2
openbsd-48bac334008e8da0a46268db5e831bad09c7a1ed.zip
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
Diffstat (limited to 'src/lib/libcrypto/err')
0 files changed, 0 insertions, 0 deletions