]> Cypherpunks repositories - gostls13.git/commit
crypto/{ecdsa,rsa}: rename argument to PrivateKey.Sign.
authorAdam Langley <agl@golang.org>
Sat, 14 Oct 2017 18:43:17 +0000 (11:43 -0700)
committerAdam Langley <agl@golang.org>
Sun, 29 Oct 2017 19:45:11 +0000 (19:45 +0000)
commit507ca082d116c19cbe5cbdd457e6b37d851d2341
treebc0890fb2516bff8a59d835b572cc85ce540bfcb
parent5a4b6bce37ed85b1d26a00b215d2401d90de6b76
crypto/{ecdsa,rsa}: rename argument to PrivateKey.Sign.

The crypto.Signer interface takes pre-hased messages for ECDSA and RSA,
but the argument in the implementations was called “msg”, not “digest”,
which is confusing.

This change renames them to help clarify the intended use.

Change-Id: Ie2fb8753ca5280e493810d211c7c66223f94af88
Reviewed-on: https://go-review.googlesource.com/70950
Reviewed-by: Filippo Valsorda <hi@filippo.io>
src/crypto/ecdsa/ecdsa.go
src/crypto/rsa/rsa.go