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

Unified Diff: Source/modules/crypto/RsaSsaParams.cpp

Issue 21759002: WebCrypto: Add algorithm normalization rules for RSASSA-PKCS1-v1_5. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase onto master 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 | « Source/modules/crypto/RsaSsaParams.h ('k') | Source/modules/crypto/RsaSsaParams.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/RsaSsaParams.cpp
diff --git a/Source/modules/crypto/HmacParams.cpp b/Source/modules/crypto/RsaSsaParams.cpp
similarity index 87%
copy from Source/modules/crypto/HmacParams.cpp
copy to Source/modules/crypto/RsaSsaParams.cpp
index c5bd9cf90c2b64c24f596f0687a29570f683a7b6..89e6aca12afad5fc31e068c25328295afca719b5 100644
--- a/Source/modules/crypto/HmacParams.cpp
+++ b/Source/modules/crypto/RsaSsaParams.cpp
@@ -29,22 +29,23 @@
*/
#include "config.h"
-#include "modules/crypto/HmacParams.h"
+#include "modules/crypto/RsaSsaParams.h"
#include "public/platform/WebCryptoAlgorithmParams.h"
namespace WebCore {
-Algorithm* HmacParams::hash()
+Algorithm* RsaSsaParams::hash()
{
if (!m_hash)
- m_hash = Algorithm::create(m_algorithm.hmacParams()->hash());
+ m_hash = Algorithm::create(m_algorithm.rsaSsaParams()->hash());
return m_hash.get();
}
-HmacParams::HmacParams(const WebKit::WebCryptoAlgorithm& algorithm)
+RsaSsaParams::RsaSsaParams(const WebKit::WebCryptoAlgorithm& algorithm)
: Algorithm(algorithm)
{
+ ASSERT(algorithm.rsaSsaParams());
ScriptWrappable::init(this);
}
« no previous file with comments | « Source/modules/crypto/RsaSsaParams.h ('k') | Source/modules/crypto/RsaSsaParams.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698