summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/comp
diff options
context:
space:
mode:
authortb <>2026-06-08 12:08:08 +0000
committertb <>2026-06-08 12:08:08 +0000
commit216081b6fcc8cc105c5d67cd7feba13e79c0658d (patch)
tree3d64560a4b6927f8fa95d4fb35fe874ac9bf8e69 /src/lib/libcrypto/comp
parent47439108a83a3142292d6cdb68f3f053aafc733c (diff)
downloadopenbsd-216081b6fcc8cc105c5d67cd7feba13e79c0658d.tar.gz
openbsd-216081b6fcc8cc105c5d67cd7feba13e79c0658d.tar.bz2
openbsd-216081b6fcc8cc105c5d67cd7feba13e79c0658d.zip
Add a point at infinity check to ecdh_compute_key()
While we already check that the peer's public point is on the curve and will reject the point at infinity when getting the affine coordinates, doing this earlier avoids doing work with the private key in a clearly invalid case. Suggested by Lucca Hirschi et al. [An EC_KEY_check_key() call was also suggested but this is a bit expensive and punishes callers that do that or equivalent already (e.g. ssh)] ok jsing kenjiro
Diffstat (limited to 'src/lib/libcrypto/comp')
0 files changed, 0 insertions, 0 deletions