1
0
mirror of https://github.com/golang/go synced 2024-11-08 12:36:13 -07:00
go/src/crypto/ecdsa
Adam Langley 998419575f crypto/ecdsa: correct code comment.
The code comment mixed up max and min. In this case, min is correct
because this entropy is only used to make the signature scheme
probabilistic. (I.e. if it were fixed then the scheme would still be
secure except that key.Sign(foo) would always give the same result for a
fixed key and foo.)

For this purpose, 256-bits is plenty.

Fixes #16819.

Change-Id: I309bb312b775cf0c4b7463c980ba4b19ad412c36
Reviewed-on: https://go-review.googlesource.com/30153
Run-TryBot: Adam Langley <agl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-10-02 19:38:37 +00:00
..
testdata
ecdsa_test.go math/big: add assembly implementation of arith for ppc64{le} 2016-08-29 21:03:21 +00:00
ecdsa.go crypto/ecdsa: correct code comment. 2016-10-02 19:38:37 +00:00