commit | db7d12313a59cd5b727192a287195e2cdfa40049 | [log] [tgz] |
---|---|---|
author | Alberto Donizetti <alb.donizetti@gmail.com> | Mon Apr 30 11:18:29 2018 +0200 |
committer | Han-Wen Nienhuys <hanwen@google.com> | Mon Apr 30 11:26:54 2018 +0000 |
tree | d6b3ba425df3cdeeb352ffc956a47f7c39075052 | |
parent | b49d69b5da943f7ef3c9cf91c8777c1f78a0cc3c [diff] |
ssh/agent: remove len check in Unlock Unlock compares the length of the passphrase with the given one before calling subtle.ConstantTimeCompare. This is redundant, since ConstantTimeCompare already perform a lengths check before doing anything. Remove the check from Unlock. Updates golang/go#25173 Change-Id: Ib5fec3a94392bddf2996f5c6bf5a414529e86f2f Reviewed-on: https://go-review.googlesource.com/110068 Run-TryBot: Alberto Donizetti <alb.donizetti@gmail.com> Reviewed-by: Han-Wen Nienhuys <hanwen@google.com>
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.