aboutsummaryrefslogtreecommitdiff
path: root/ssh/testdata
diff options
context:
space:
mode:
authorAndreas Auernhammer <aead@mail.de>2017-05-20 22:24:58 +0200
committerBrad Fitzpatrick <bradfitz@golang.org>2017-05-22 14:29:59 +0000
commit6c586e17d90a7d08bbbc4069984180dce3b04117 (patch)
tree28f8c5c2b38138510b5985f7bec14d857a611f76 /ssh/testdata
parent0fe963104e9d1877082f8fb38f816fcd97eb1d10 (diff)
downloadgo-x-crypto-6c586e17d90a7d08bbbc4069984180dce3b04117.tar.xz
bcrypt: fix C compatibility code
The bcrypt implementation must append a zero byte to the user provided key to be compatible to C implementations. This will change the user provided key if the slice has enough capacity to hold the extra zero byte. This change always allocates a new slice for the C-compatible key. Fixes golang/go#20425 Change-Id: I8dc4e840c29711daabdabe58d83643cc0103cedd Reviewed-on: https://go-review.googlesource.com/43715 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'ssh/testdata')
0 files changed, 0 insertions, 0 deletions