diff options
author | noelutz@google.com <noelutz@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-30 18:23:25 +0000 |
---|---|---|
committer | noelutz@google.com <noelutz@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-30 18:23:25 +0000 |
commit | 0d069b50d0c2f10ecddb64f92223ec7cf799698f (patch) | |
tree | d13c3480d41795fa46a1eb12e1882d0fb08066a1 /chrome/common | |
parent | 331f7d23388b2ae18caa8a31219a4f89326c31a9 (diff) | |
download | chromium_src-0d069b50d0c2f10ecddb64f92223ec7cf799698f.zip chromium_src-0d069b50d0c2f10ecddb64f92223ec7cf799698f.tar.gz chromium_src-0d069b50d0c2f10ecddb64f92223ec7cf799698f.tar.bz2 |
Change the client-side phishing detection hashing function to
mimic what we're doing on the server.
BUG=
TEST=BrowserFeatureExtractorTest
Review URL: http://codereview.chromium.org/7793012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98848 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/safe_browsing/csd.proto | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/common/safe_browsing/csd.proto b/chrome/common/safe_browsing/csd.proto index b700326..8496eb7 100644 --- a/chrome/common/safe_browsing/csd.proto +++ b/chrome/common/safe_browsing/csd.proto @@ -20,10 +20,11 @@ message ClientPhishingRequest { // client. This field is ONLY set for UMA-enabled users. optional string url = 1; - // A 5-byte SHA-256 hash prefix of the URL, in SafeBrowsing host sufffix/path - // prefix form with query parameters stripped (i.e. "www.example.com/1/2/"). + // A 5-byte SHA-256 hash prefix of the URL. Before hashing the URL is + // canonicalized, converted to a suffix-prefix expression and broadened + // (www prefix is removed and everything past the last '/' is stripped). // Unlike "url", this is sent for all users. - optional bytes suffix_prefix_hash = 10; + optional bytes hash_prefix = 10; // Score that was computed on the client. Value is between 0.0 and 1.0. // The larger the value the more likely the url is phishing. |