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

Unified Diff: public/platform/WebCryptoAlgorithm.h

Issue 26426002: [webcrypto] Add parameters for AES-GCM and RSA-OAEP to blink API. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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/NormalizeAlgorithm.cpp ('k') | public/platform/WebCryptoAlgorithmParams.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebCryptoAlgorithm.h
diff --git a/public/platform/WebCryptoAlgorithm.h b/public/platform/WebCryptoAlgorithm.h
index f52465bd7c73dce7d95774e93cf4f6b8e74259fb..9d89e9accf04ea391059d9817f45dc70225f9d26 100644
--- a/public/platform/WebCryptoAlgorithm.h
+++ b/public/platform/WebCryptoAlgorithm.h
@@ -50,6 +50,8 @@ enum WebCryptoAlgorithmId {
WebCryptoAlgorithmIdSha256,
WebCryptoAlgorithmIdSha384,
WebCryptoAlgorithmIdSha512,
+ WebCryptoAlgorithmIdAesGcm,
+ WebCryptoAlgorithmIdRsaOaep,
#if BLINK_IMPLEMENTATION
NumberOfWebCryptoAlgorithmId,
#endif
@@ -63,6 +65,8 @@ enum WebCryptoAlgorithmParamsType {
WebCryptoAlgorithmParamsTypeHmacKeyParams,
WebCryptoAlgorithmParamsTypeRsaSsaParams,
WebCryptoAlgorithmParamsTypeRsaKeyGenParams,
+ WebCryptoAlgorithmParamsTypeAesGcmParams,
+ WebCryptoAlgorithmParamsTypeRsaOaepParams,
};
class WebCryptoAesCbcParams;
@@ -71,6 +75,8 @@ class WebCryptoHmacParams;
class WebCryptoHmacKeyParams;
class WebCryptoRsaSsaParams;
class WebCryptoRsaKeyGenParams;
+class WebCryptoAesGcmParams;
+class WebCryptoRsaOaepParams;
class WebCryptoAlgorithmParams;
class WebCryptoAlgorithmPrivate;
@@ -109,6 +115,8 @@ public:
BLINK_EXPORT const WebCryptoHmacKeyParams* hmacKeyParams() const;
BLINK_EXPORT const WebCryptoRsaSsaParams* rsaSsaParams() const;
BLINK_EXPORT const WebCryptoRsaKeyGenParams* rsaKeyGenParams() const;
+ BLINK_EXPORT const WebCryptoAesGcmParams* aesGcmParams() const;
+ BLINK_EXPORT const WebCryptoRsaOaepParams* rsaOaepParams() const;
private:
BLINK_EXPORT void assign(const WebCryptoAlgorithm& other);
« no previous file with comments | « Source/modules/crypto/NormalizeAlgorithm.cpp ('k') | public/platform/WebCryptoAlgorithmParams.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698