]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.12] crypto/rc4: remove false guarantees from Reset docs and depre...
authorFilippo Valsorda <filippo@golang.org>
Wed, 13 Feb 2019 08:37:57 +0000 (03:37 -0500)
committerFilippo Valsorda <filippo@golang.org>
Fri, 22 Feb 2019 18:31:50 +0000 (18:31 +0000)
commitda1f5d376a74dc75b641ae0beb4b98519d57c59a
tree47133f3bdeb0dac1c634947b377c274276bfe204
parent35e6a10c903ad642fa5aaefccf04329e46649da9
[release-branch.go1.12] crypto/rc4: remove false guarantees from Reset docs and deprecate it

Nothing in Go can truly guarantee a key will be gone from memory (see
#21865), so remove that claim. That makes Reset useless, because
unlike most Reset methods it doesn't restore the original value state,
so deprecate it.

Change-Id: I6bb0f7f94c7e6dd4c5ac19761bc8e5df1f9ec618
Reviewed-on: https://go-review.googlesource.com/c/162297
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
(cherry picked from commit b35dacaac57b039205d9b07ea24098e2c3fcb12e)
Reviewed-on: https://go-review.googlesource.com/c/163438
src/crypto/rc4/rc4.go