commit | 22d7a77e9e5f409e934ed268692e56707cd169e5 | [log] [tgz] |
---|---|---|
author | Conrado P. L. Gouvea <conradoplg@gmail.com> | Fri Apr 19 13:04:53 2019 -0300 |
committer | Filippo Valsorda <filippo@golang.org> | Mon May 13 17:29:03 2019 +0000 |
tree | f58b91b63b0830cd976c6e6538a56eb696ddaf5e | |
parent | cbcb750295291b33242907a04be40e80801d0cfc [diff] |
sha3: fix bug in cSHAKE Clone() Clone() made a copy of the Keccak state after invoking clone(), which is not supported, since the "buf" slice in the Keccak state must point to the "storage" array, and if the state is copied directly it will keep pointing to the storage returned by clone(). Fix it by embedding a pointer to the Keccak state instead of the state itself. Change-Id: I7d392963ec65d784a360f6c12a7935a9a9a788b5 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/173018 Reviewed-by: Filippo Valsorda <filippo@golang.org> Run-TryBot: Filippo Valsorda <filippo@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This repository holds supplementary Go cryptography libraries.
The easiest way to install is to run go get -u golang.org/x/crypto/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/crypto
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the crypto repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/crypto:” in the subject line, so it is easy to find.
Note that contributions to the cryptography package receive additional scrutiny due to their sensitive nature. Patches may take longer than normal to receive feedback.