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

Unified Diff: public/platform/WebCrypto.h

Issue 21561004: WebCrypto: Add crypto.subtle.verify() to the platform interfaces. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add missing file common.js Created 7 years, 5 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 | « Tools/DumpRenderTree/chromium/TestRunner/src/MockWebCrypto.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebCrypto.h
diff --git a/public/platform/WebCrypto.h b/public/platform/WebCrypto.h
index c6be198464180c75f48bae9870d395c760cbfaa0..d51edd357ed4963ca34ad089d2562f67e40714d4 100644
--- a/public/platform/WebCrypto.h
+++ b/public/platform/WebCrypto.h
@@ -89,6 +89,7 @@ public:
virtual void encrypt(const WebCryptoAlgorithm&, const WebCryptoKey&, WebCryptoOperationResult&) { WEBKIT_ASSERT_NOT_REACHED(); }
virtual void decrypt(const WebCryptoAlgorithm&, const WebCryptoKey&, WebCryptoOperationResult&) { WEBKIT_ASSERT_NOT_REACHED(); }
virtual void sign(const WebCryptoAlgorithm&, const WebCryptoKey&, WebCryptoOperationResult&) { WEBKIT_ASSERT_NOT_REACHED(); }
+ virtual void verifySignature(const WebCryptoAlgorithm&, const WebCryptoKey&, const unsigned char* signature, size_t, WebCryptoOperationResult&) { WEBKIT_ASSERT_NOT_REACHED(); }
virtual void digest(const WebCryptoAlgorithm&, WebCryptoOperationResult&) { WEBKIT_ASSERT_NOT_REACHED(); }
// The following methods begin an asynchronous single-part key operation.
@@ -155,6 +156,7 @@ public:
virtual void initializationSucceeded(WebCryptoOperation*) = 0;
virtual void completeWithError() = 0;
virtual void completeWithArrayBuffer(const WebArrayBuffer&) = 0;
+ virtual void completeWithBoolean(bool) = 0;
virtual void ref() = 0;
virtual void deref() = 0;
@@ -185,6 +187,7 @@ public:
WEBKIT_EXPORT void initializationSucceeded(WebCryptoOperation*);
WEBKIT_EXPORT void completeWithError();
WEBKIT_EXPORT void completeWithArrayBuffer(const WebArrayBuffer&);
+ WEBKIT_EXPORT void completeWithBoolean(bool);
private:
WEBKIT_EXPORT void reset();
« no previous file with comments | « Tools/DumpRenderTree/chromium/TestRunner/src/MockWebCrypto.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698