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

Unified Diff: Source/modules/crypto/HmacKeyParams.cpp

Issue 109393003: [webcrypto] Refactor some of the algorithm parameter names. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Improve a comment Created 7 years 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 | « Source/modules/crypto/AesKeyGenParams.cpp ('k') | Source/modules/crypto/RsaKeyGenParams.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/HmacKeyParams.cpp
diff --git a/Source/modules/crypto/HmacKeyParams.cpp b/Source/modules/crypto/HmacKeyParams.cpp
index 2d2c5bbc453c53a5ce41c506f10a9b403b3cf12b..1db7e15e526d09e35ef22d101464c6d246651148 100644
--- a/Source/modules/crypto/HmacKeyParams.cpp
+++ b/Source/modules/crypto/HmacKeyParams.cpp
@@ -44,9 +44,8 @@ Algorithm* HmacKeyParams::hash()
unsigned HmacKeyParams::length(bool& isNull)
{
- unsigned length = 0;
- isNull = !m_algorithm.hmacKeyParams()->getLength(length);
- return length;
+ isNull = !m_algorithm.hmacKeyParams()->hasLengthBytes();
+ return m_algorithm.hmacKeyParams()->optionalLengthBytes();
}
HmacKeyParams::HmacKeyParams(const blink::WebCryptoAlgorithm& algorithm)
« no previous file with comments | « Source/modules/crypto/AesKeyGenParams.cpp ('k') | Source/modules/crypto/RsaKeyGenParams.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698