Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1516)

Unified Diff: Source/wtf/SHA1.h

Issue 139193002: Declaration of sha1HashSize variable in proper file (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Giving more descriptive name to constant Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/websockets/WebSocketHandshake.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/SHA1.h
diff --git a/Source/wtf/SHA1.h b/Source/wtf/SHA1.h
index d73de9815cb82a2af68caf3a6a46122e4e1ab8fd..590605edb661ff7ddaeb2e1e75c7ae60d8c53b15 100644
--- a/Source/wtf/SHA1.h
+++ b/Source/wtf/SHA1.h
@@ -57,8 +57,10 @@ public:
}
void addBytes(const uint8_t* input, size_t length);
+ static const size_t outputSizeBytes = 20;
+
// computeHash has a side effect of resetting the state of the object.
- void computeHash(Vector<uint8_t, 20>&);
+ void computeHash(Vector<uint8_t, outputSizeBytes>&);
private:
void finalize();
« no previous file with comments | « Source/modules/websockets/WebSocketHandshake.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698