]> git.ipfire.org Git - thirdparty/openssl.git/commit
Optimization of ossl_ec_key_public_check()
authorTomas Mraz <tomas@openssl.org>
Mon, 8 Jul 2024 16:01:34 +0000 (18:01 +0200)
committerTomas Mraz <tomas@openssl.org>
Tue, 16 Jul 2024 13:36:46 +0000 (15:36 +0200)
commitb916940752e4de5922553b1cf482687dfc653f7a
tree1221a5a4c72d13ccd1e025c3f4a75eed3a01592d
parent01753c09bbfdffcefd555b4c21e50e68af346129
Optimization of ossl_ec_key_public_check()

We can do just the quick check if cofactor == 1 as the
fact that the point is on the curve already implies
that order * point = infinity.

Fixes #21833

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/24816)
crypto/ec/ec_key.c