diff options
| author | Filippo Valsorda <filippo@golang.org> | 2023-06-12 18:58:50 +0200 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-06-13 16:14:23 +0000 |
| commit | 886fba5871268c2dccba2675fea5aafacab59189 (patch) | |
| tree | 768e6e93bcf3b6434c25d515508354f57ece96a3 /src/database/sql | |
| parent | bce7aec3cdca8580585095007e9b7cea11a8812f (diff) | |
| download | go-886fba5871268c2dccba2675fea5aafacab59189.tar.xz | |
crypto/ecdsa: properly truncate P-521 hashes
Before, if a hash was exactly 66 bytes long, we weren't truncating it
for use with P-521, because the byte length was not overflowing.
However, the bit length could still overflow.
Fixes #60741
Change-Id: I37a0ee210add0eb566e6dc1c141e83e992983eb6
Reviewed-on: https://go-review.googlesource.com/c/go/+/502478
Auto-Submit: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Diffstat (limited to 'src/database/sql')
0 files changed, 0 insertions, 0 deletions
