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

Unified Diff: public/platform/WebCryptoAlgorithm.h

Issue 195543002: [webcrypto] Implement structured clone of keys (blink-side). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix another comment 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
Index: public/platform/WebCryptoAlgorithm.h
diff --git a/public/platform/WebCryptoAlgorithm.h b/public/platform/WebCryptoAlgorithm.h
index 06dce09285fab712864fa1dbb5bd946455cc1b00..d662456729904d9fda2d16fe1370c3d9d168ba5d 100644
--- a/public/platform/WebCryptoAlgorithm.h
+++ b/public/platform/WebCryptoAlgorithm.h
@@ -55,7 +55,7 @@ enum WebCryptoAlgorithmId {
WebCryptoAlgorithmIdAesCtr,
WebCryptoAlgorithmIdAesKw,
#if INSIDE_BLINK
- NumberOfWebCryptoAlgorithmId,
+ WebCryptoAlgorithmIdLast = WebCryptoAlgorithmIdAesKw,
#endif
};
@@ -132,6 +132,9 @@ public:
BLINK_PLATFORM_EXPORT const WebCryptoRsaHashedImportParams* rsaHashedImportParams() const;
BLINK_PLATFORM_EXPORT const WebCryptoRsaHashedKeyGenParams* rsaHashedKeyGenParams() const;
+ // Returns true if the provided algorithm ID is for a hash (in other words, SHA-*)
+ BLINK_PLATFORM_EXPORT static bool isHash(WebCryptoAlgorithmId);
+
private:
BLINK_PLATFORM_EXPORT void assign(const WebCryptoAlgorithm& other);
BLINK_PLATFORM_EXPORT void reset();

Powered by Google App Engine
This is Rietveld 408576698