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

Unified Diff: crypto/sha2.cc

Issue 7823004: Convert SHA256_LENGTH from a constant-in-anonymous-enum to a static const. This defines the cons... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 4 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
« crypto/sha2.h ('K') | « crypto/sha2.h ('k') | crypto/sha2_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/sha2.cc
===================================================================
--- crypto/sha2.cc (revision 98481)
+++ crypto/sha2.cc (working copy)
@@ -17,7 +17,7 @@
}
std::string SHA256HashString(const std::string& str) {
- std::string output(SHA256_LENGTH, 0);
+ std::string output(kSHA256Length, 0);
SHA256HashString(str, string_as_array(&output), output.size());
return output;
}
« crypto/sha2.h ('K') | « crypto/sha2.h ('k') | crypto/sha2_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698