Bug 125345

Summary: Define SHA1 hash size in SHA1.h and use it at various places.
Product: WebKit Reporter: Laszlo Vidacs <lvidacs.u-szeged>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Severity: Normal CC: commit-queue, fpizlo, ggaren, lvidacs.u-szeged, pnormand
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Description Flags
Patch none

Description Laszlo Vidacs 2013-12-06 06:32:05 PST
SHA1 size is used at various places but usually defined as a local variable. A common constant in SHA1.h used by all parties would be a better solution.
Comment 1 Laszlo Vidacs 2013-12-06 06:45:34 PST
Created attachment 218593 [details]
Comment 2 Anders Carlsson 2013-12-06 08:49:21 PST
Comment on attachment 218593 [details]

I like this change, but could you also make computeHash take an std::array<uint8_t, hashSize>. There's no need for it to take a Vector.
Comment 3 WebKit Commit Bot 2013-12-06 10:51:40 PST
Comment on attachment 218593 [details]

Clearing flags on attachment: 218593

Committed r160228: <http://trac.webkit.org/changeset/160228>
Comment 4 WebKit Commit Bot 2013-12-06 10:56:36 PST
All reviewed patches have been landed.  Closing bug.