summaryrefslogtreecommitdiffstats
path: root/crypto/hmac_win.cc
diff options
context:
space:
mode:
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;
}