]> Cypherpunks repositories - gostls13.git/commit
crypto/elliptic: tolerate large inputs to IsOnCurve methods
authorFilippo Valsorda <filippo@golang.org>
Thu, 4 Nov 2021 20:08:08 +0000 (16:08 -0400)
committerRoland Shoemaker <roland@golang.org>
Thu, 4 Nov 2021 20:31:02 +0000 (20:31 +0000)
commit978e39e9e647d7359a41ac32992ef6ff5380be08
tree3b939d85050e834583ec967c75106400c55169f0
parent99699d14fe538f6886948ee6d3cc57f7f2a9bff7
crypto/elliptic: tolerate large inputs to IsOnCurve methods

The behavior of all Curve methods and package functions when provided an
off-curve point is undefined, except for IsOnCurve which should really
always return false, not panic.

Change-Id: I52f65df25c5af0314fef2c63d0778db72c0f1313
Reviewed-on: https://go-review.googlesource.com/c/go/+/361402
Trust: Filippo Valsorda <filippo@golang.org>
Run-TryBot: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
src/crypto/elliptic/elliptic_test.go
src/crypto/elliptic/p224.go
src/crypto/elliptic/p521.go