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

Unified Diff: Source/bindings/core/v8/SerializedScriptValue.cpp

Issue 657243002: [webcrypto] Add parameter parsing for RSA-PSS. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « no previous file | Source/modules/crypto/NormalizeAlgorithm.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/SerializedScriptValue.cpp
diff --git a/Source/bindings/core/v8/SerializedScriptValue.cpp b/Source/bindings/core/v8/SerializedScriptValue.cpp
index 24e7542788835be74a556a489b17dc66a217f9fb..ce0499b228f1dbc4a1ccaf0f3635aad9649e1525 100644
--- a/Source/bindings/core/v8/SerializedScriptValue.cpp
+++ b/Source/bindings/core/v8/SerializedScriptValue.cpp
@@ -275,6 +275,7 @@ enum CryptoKeyAlgorithmTag {
RsaOaepTag = 10,
AesCtrTag = 11,
AesKwTag = 12,
+ RsaPssTag = 13,
// Maximum allowed value is 2^32-1
};
@@ -779,6 +780,8 @@ private:
return doWriteUint32(AesCtrTag);
case blink::WebCryptoAlgorithmIdAesKw:
return doWriteUint32(AesKwTag);
+ case blink::WebCryptoAlgorithmIdRsaPss:
+ return doWriteUint32(RsaPssTag);
}
ASSERT_NOT_REACHED();
}
@@ -2502,6 +2505,9 @@ private:
case AesKwTag:
id = blink::WebCryptoAlgorithmIdAesKw;
return true;
+ case RsaPssTag:
+ id = blink::WebCryptoAlgorithmIdRsaPss;
+ return true;
}
return false;
« no previous file with comments | « no previous file | Source/modules/crypto/NormalizeAlgorithm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698