]> Cypherpunks repositories - gostls13.git/commit
crypto/sha1: fix AVX2 variant on AMD64
authorIlya Tocar <ilya.tocar@intel.com>
Tue, 17 May 2016 17:55:55 +0000 (20:55 +0300)
committerIlya Tocar <ilya.tocar@intel.com>
Thu, 26 May 2016 11:34:32 +0000 (11:34 +0000)
commit805eaeef33a52778ba6ee624389c2cbfe6896f6f
treebf6f8391978decd89a28c99ea7dc0b5ffbc1916d
parent8a1dc3244725c2afd170025fc616df840b464a99
crypto/sha1: fix AVX2 variant on AMD64

AVX2 variant reads next blocks while calculating current block.
Avoid reading past the end of data, by switching back to original,
for last blocks.

Fixes #15617.

Change-Id: I04fa2d83f1b47995117c77b4a3d403a7dff594d4
Reviewed-on: https://go-review.googlesource.com/23138
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Ilya Tocar <ilya.tocar@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/crypto/sha1/issue15617_test.go [new file with mode: 0644]
src/crypto/sha1/sha1_test.go
src/crypto/sha1/sha1block_amd64.go