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

Unified Diff: crypto/hmac.cc

Issue 11419270: Use size_t as the type of key_length and digest_length arguments of HMAC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix compilation errors Created 8 years, 1 month 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 | « crypto/hmac.h ('k') | crypto/hmac_nss.cc » ('j') | crypto/hmac_openssl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/hmac.cc
===================================================================
--- crypto/hmac.cc (revision 170598)
+++ crypto/hmac.cc (working copy)
@@ -47,7 +47,7 @@
size_t digest_length = DigestLength();
scoped_array<unsigned char> computed_digest(
new unsigned char[digest_length]);
- if (!Sign(data, computed_digest.get(), static_cast<int>(digest_length)))
+ if (!Sign(data, computed_digest.get(), digest_length))
return false;
return SecureMemEqual(digest.data(), computed_digest.get(),
« no previous file with comments | « crypto/hmac.h ('k') | crypto/hmac_nss.cc » ('j') | crypto/hmac_openssl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698