summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib
diff options
context:
space:
mode:
authortb <>2018-09-02 17:20:31 +0000
committertb <>2018-09-02 17:20:31 +0000
commitd23674fa7bf171c2eb3f71954bbddb5ac8d1f0ec (patch)
tree33c780ca3be4916eff529d97ddc782b338a32305 /src/lib/libc/stdlib
parent9200435a5b6465d7acbe3e3c950e8d6438edab09 (diff)
downloadopenbsd-d23674fa7bf171c2eb3f71954bbddb5ac8d1f0ec.tar.gz
openbsd-d23674fa7bf171c2eb3f71954bbddb5ac8d1f0ec.tar.bz2
openbsd-d23674fa7bf171c2eb3f71954bbddb5ac8d1f0ec.zip
Elliptic curve arithmetic only makes sense between points that belong to
the same curve. Some Wycheproof tests violate this assumption, making ECDH_compute_key() compute and return garbage. Check that pub_key lies on the curve of the private key so that the calculations make sense. Most paths that get here have this checked (in particular those from OpenSSH and libssl), but one might get here after using d2i_* or manual computation. discussed with & ok jsing; "good catch!" markus
Diffstat (limited to 'src/lib/libc/stdlib')
0 files changed, 0 insertions, 0 deletions