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

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

Issue 284973002: [webcrypto] Remove RSA-ES support (3 of 3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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: Source/modules/crypto/RsaKeyAlgorithm.cpp
diff --git a/Source/modules/crypto/RsaKeyAlgorithm.cpp b/Source/modules/crypto/RsaKeyAlgorithm.cpp
index e0e22fd244d921df001da9d0f688082d2f9aee3a..301101a9502265ac80b303fd309ebb3c1e6e0c3e 100644
--- a/Source/modules/crypto/RsaKeyAlgorithm.cpp
+++ b/Source/modules/crypto/RsaKeyAlgorithm.cpp
@@ -49,13 +49,13 @@ RsaKeyAlgorithm* RsaKeyAlgorithm::create(const blink::WebCryptoKeyAlgorithm& alg
unsigned RsaKeyAlgorithm::modulusLength()
{
- return m_algorithm.rsaParams()->modulusLengthBits();
+ return m_algorithm.rsaHashedParams()->modulusLengthBits();
}
Uint8Array* RsaKeyAlgorithm::publicExponent()
{
if (!m_publicExponent.get()) {
- const blink::WebVector<unsigned char>& exponent = m_algorithm.rsaParams()->publicExponent();
+ const blink::WebVector<unsigned char>& exponent = m_algorithm.rsaHashedParams()->publicExponent();
m_publicExponent = Uint8Array::create(exponent.data(), exponent.size());
}
return m_publicExponent.get();
@@ -69,7 +69,7 @@ void RsaKeyAlgorithm::trace(Visitor* visitor)
RsaKeyAlgorithm::RsaKeyAlgorithm(const blink::WebCryptoKeyAlgorithm& algorithm)
: KeyAlgorithm(algorithm)
{
- ASSERT(algorithm.rsaParams());
+ ASSERT(algorithm.rsaHashedParams());
ScriptWrappable::init(this);
}

Powered by Google App Engine
This is Rietveld 408576698