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

Unified Diff: crypto/hmac_win.cc

Issue 9695058: Don't enforce the old HMAC key size requirement in FIPS 198 Sec. 3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | « crypto/hmac.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/hmac_win.cc
===================================================================
--- crypto/hmac_win.cc (revision 125777)
+++ crypto/hmac_win.cc (working copy)
@@ -104,8 +104,6 @@
}
if (hash_alg_ == SHA256) {
- if (key_length < SHA256_LENGTH / 2)
- return false; // Key is too short.
plat_->raw_key_.assign(key, key + key_length);
return true;
}
« no previous file with comments | « crypto/hmac.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698