diff options
Diffstat (limited to 'vendor/golang.org/x/crypto/bcrypt')
-rw-r--r-- | vendor/golang.org/x/crypto/bcrypt/bcrypt.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/golang.org/x/crypto/bcrypt/bcrypt.go b/vendor/golang.org/x/crypto/bcrypt/bcrypt.go index 202fa8a..aeb73f8 100644 --- a/vendor/golang.org/x/crypto/bcrypt/bcrypt.go +++ b/vendor/golang.org/x/crypto/bcrypt/bcrypt.go | |||
@@ -241,11 +241,11 @@ func (p *hashed) Hash() []byte { | |||
241 | n = 3 | 241 | n = 3 |
242 | } | 242 | } |
243 | arr[n] = '$' | 243 | arr[n] = '$' |
244 | n += 1 | 244 | n++ |
245 | copy(arr[n:], []byte(fmt.Sprintf("%02d", p.cost))) | 245 | copy(arr[n:], []byte(fmt.Sprintf("%02d", p.cost))) |
246 | n += 2 | 246 | n += 2 |
247 | arr[n] = '$' | 247 | arr[n] = '$' |
248 | n += 1 | 248 | n++ |
249 | copy(arr[n:], p.salt) | 249 | copy(arr[n:], p.salt) |
250 | n += encodedSaltSize | 250 | n += encodedSaltSize |
251 | copy(arr[n:], p.hash) | 251 | copy(arr[n:], p.hash) |