summaryrefslogtreecommitdiffstats
path: root/crypto/hmac_win.cc
diff options
context:
space:
mode:
authorwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-14 17:41:46 +0000
committerwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-14 17:41:46 +0000
commit5739bd508c74200592a3e3a4e60e7061ed9d0d48 (patch)
tree22f5b6d57be558421dcaec9662c45f21e9866f2a /crypto/hmac_win.cc
parente3edb86ed52552886f08358af4355b2d22c07ab8 (diff)
downloadchromium_src-5739bd508c74200592a3e3a4e60e7061ed9d0d48.zip
chromium_src-5739bd508c74200592a3e3a4e60e7061ed9d0d48.tar.gz
chromium_src-5739bd508c74200592a3e3a4e60e7061ed9d0d48.tar.bz2
Don't enforce the old HMAC key size requirement in FIPS 198 Sec. 3.
This requirement has been removed in FIPS 198-1. R=rsleevi@chromium.org BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9695058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126674 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'crypto/hmac_win.cc')
-rw-r--r--crypto/hmac_win.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/crypto/hmac_win.cc b/crypto/hmac_win.cc
index 9109429..ffd08ce8 100644
--- a/crypto/hmac_win.cc
+++ b/crypto/hmac_win.cc
@@ -104,8 +104,6 @@ bool HMAC::Init(const unsigned char* key, int key_length) {
}
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;
}