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

Unified Diff: public/platform/WebCryptoKeyAlgorithm.h

Issue 195543002: [webcrypto] Implement structured clone of keys (blink-side). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update serialized-script-value.html for version bump 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 | « public/platform/WebCryptoKey.h ('k') | public/web/WebSerializedScriptValueVersion.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebCryptoKeyAlgorithm.h
diff --git a/public/platform/WebCryptoKeyAlgorithm.h b/public/platform/WebCryptoKeyAlgorithm.h
index d35e71561d9c68c62c65385d66d6a11f7ca2c025..38e2393c29efb5f6223145b201415649f731bcfe 100644
--- a/public/platform/WebCryptoKeyAlgorithm.h
+++ b/public/platform/WebCryptoKeyAlgorithm.h
@@ -56,8 +56,14 @@ public:
BLINK_PLATFORM_EXPORT WebCryptoKeyAlgorithm(WebCryptoAlgorithmId, PassOwnPtr<WebCryptoKeyAlgorithmParams>);
#endif
+ // FIXME: Delete this in favor of the create*() functions.
BLINK_PLATFORM_EXPORT static WebCryptoKeyAlgorithm adoptParamsAndCreate(WebCryptoAlgorithmId, WebCryptoKeyAlgorithmParams*);
+ BLINK_PLATFORM_EXPORT static WebCryptoKeyAlgorithm createAes(WebCryptoAlgorithmId, unsigned short keyLengthBits);
+ BLINK_PLATFORM_EXPORT static WebCryptoKeyAlgorithm createHmac(WebCryptoAlgorithmId hash, unsigned keyLengthBits);
+ BLINK_PLATFORM_EXPORT static WebCryptoKeyAlgorithm createRsa(WebCryptoAlgorithmId, unsigned modulusLengthBits, const unsigned char* publicExponent, unsigned publicExponentSize);
+ BLINK_PLATFORM_EXPORT static WebCryptoKeyAlgorithm createRsaHashed(WebCryptoAlgorithmId, unsigned modulusLengthBits, const unsigned char* publicExponent, unsigned publicExponentSize, WebCryptoAlgorithmId hash);
+
~WebCryptoKeyAlgorithm() { reset(); }
WebCryptoKeyAlgorithm(const WebCryptoKeyAlgorithm& other) { assign(other); }
« no previous file with comments | « public/platform/WebCryptoKey.h ('k') | public/web/WebSerializedScriptValueVersion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698