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

Unified Diff: Source/modules/crypto/Key.h

Issue 22849026: WebCrypto: Check for HmacKeyParams when seeing if a Key can be used for an Algorithm. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase onto master Created 7 years, 4 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 | « LayoutTests/crypto/sign-verify-expected.txt ('k') | Source/modules/crypto/Key.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/Key.h
diff --git a/Source/modules/crypto/Key.h b/Source/modules/crypto/Key.h
index 4ea03f9bc0d2857c41dd3c1a9e93c375dfbe957a..77f3da11161f83111f4a73fc3499061eec2f5318 100644
--- a/Source/modules/crypto/Key.h
+++ b/Source/modules/crypto/Key.h
@@ -32,6 +32,7 @@
#define Key_h
#include "bindings/v8/ScriptWrappable.h"
+#include "modules/crypto/NormalizeAlgorithm.h"
#include "public/platform/WebCryptoKey.h"
#include "wtf/Forward.h"
#include "wtf/PassRefPtr.h"
@@ -55,6 +56,8 @@ public:
const WebKit::WebCryptoKey& key() const { return m_key; }
+ bool canBeUsedForAlgorithm(const WebKit::WebCryptoAlgorithm&, AlgorithmOperation, ExceptionState&) const;
+
static bool parseFormat(const String&, WebKit::WebCryptoKeyFormat&);
// Parses KeyUsage strings to a WebCryptoKeyUsageMask. If any element is
« no previous file with comments | « LayoutTests/crypto/sign-verify-expected.txt ('k') | Source/modules/crypto/Key.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698