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

Unified Diff: trunk/Source/modules/crypto/RsaKeyAlgorithm.cpp

Issue 296333002: Revert 174726 "[webcrypto] Remove RSA-ES support (3 of 3)" (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 7 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: trunk/Source/modules/crypto/RsaKeyAlgorithm.cpp
===================================================================
--- trunk/Source/modules/crypto/RsaKeyAlgorithm.cpp (revision 174732)
+++ trunk/Source/modules/crypto/RsaKeyAlgorithm.cpp (working copy)
@@ -49,13 +49,13 @@
unsigned RsaKeyAlgorithm::modulusLength()
{
- return m_algorithm.rsaHashedParams()->modulusLengthBits();
+ return m_algorithm.rsaParams()->modulusLengthBits();
}
Uint8Array* RsaKeyAlgorithm::publicExponent()
{
if (!m_publicExponent.get()) {
- const blink::WebVector<unsigned char>& exponent = m_algorithm.rsaHashedParams()->publicExponent();
+ const blink::WebVector<unsigned char>& exponent = m_algorithm.rsaParams()->publicExponent();
m_publicExponent = Uint8Array::create(exponent.data(), exponent.size());
}
return m_publicExponent.get();
@@ -69,7 +69,7 @@
RsaKeyAlgorithm::RsaKeyAlgorithm(const blink::WebCryptoKeyAlgorithm& algorithm)
: KeyAlgorithm(algorithm)
{
- ASSERT(algorithm.rsaHashedParams());
+ ASSERT(algorithm.rsaParams());
ScriptWrappable::init(this);
}
« no previous file with comments | « trunk/Source/modules/crypto/RsaKeyAlgorithm.h ('k') | trunk/Source/platform/exported/WebCryptoAlgorithm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698