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

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

Issue 204013006: [webcrypto] Add length parameter to HmacKeyAlgorithm. (blink) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « Source/modules/crypto/HmacKeyAlgorithm.h ('k') | Source/modules/crypto/HmacKeyAlgorithm.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/HmacKeyAlgorithm.cpp
diff --git a/Source/modules/crypto/HmacKeyAlgorithm.cpp b/Source/modules/crypto/HmacKeyAlgorithm.cpp
index 5d42b817f645488637f81a2878ea7372e33f32c8..db873edee535dfe717b128d4c4d8311d2193a430 100644
--- a/Source/modules/crypto/HmacKeyAlgorithm.cpp
+++ b/Source/modules/crypto/HmacKeyAlgorithm.cpp
@@ -48,6 +48,11 @@ KeyAlgorithm* HmacKeyAlgorithm::hash()
return m_hash.get();
}
+unsigned HmacKeyAlgorithm::length()
+{
+ return m_algorithm.hmacParams()->lengthBits();
+}
+
void HmacKeyAlgorithm::trace(Visitor* visitor)
{
KeyAlgorithm::trace(visitor);
« no previous file with comments | « Source/modules/crypto/HmacKeyAlgorithm.h ('k') | Source/modules/crypto/HmacKeyAlgorithm.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698