]> Cypherpunks repositories - gostls13.git/commit
crypto/ecdsa: correct code comment.
authorAdam Langley <agl@golang.org>
Fri, 30 Sep 2016 21:48:11 +0000 (14:48 -0700)
committerAdam Langley <agl@golang.org>
Sun, 2 Oct 2016 19:38:37 +0000 (19:38 +0000)
commit998419575fb34dd5228cfdb353a73184e29db8da
treefc63cda20ecccb1c791d4b50bb52fdc19a0fd395
parent49aa1d791be26de71ba7ed02d6c6cd1dd0092b71
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>
src/crypto/ecdsa/ecdsa.go