Chromium Code Reviews| Index: net/cert/cert_verify_proc_builtin.cc |
| diff --git a/net/cert/cert_verify_proc_builtin.cc b/net/cert/cert_verify_proc_builtin.cc |
| index 2ed89b649df10cb610d1a0d5d2de4bacffd5fee0..d27c0c17d43acd5bc9d14624e67c58fa98635e5c 100644 |
| --- a/net/cert/cert_verify_proc_builtin.cc |
| +++ b/net/cert/cert_verify_proc_builtin.cc |
| @@ -92,11 +92,6 @@ void AddIntermediatesToIssuerSource(X509Certificate* x509_cert, |
| // Appends the SHA1 and SHA256 hashes of |spki_bytes| to |*hashes|. |
|
davidben
2017/06/26 20:15:56
Nit: No longer accurate.
palmer
2017/06/26 21:32:59
Fixed.
|
| void AppendPublicKeyHashes(const der::Input& spki_bytes, |
| HashValueVector* hashes) { |
| - HashValue sha1(HASH_VALUE_SHA1); |
| - base::SHA1HashBytes(spki_bytes.UnsafeData(), spki_bytes.Length(), |
| - sha1.data()); |
| - hashes->push_back(sha1); |
| - |
| HashValue sha256(HASH_VALUE_SHA256); |
| crypto::SHA256HashString(spki_bytes.AsStringPiece(), sha256.data(), |
| crypto::kSHA256Length); |