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); |
} |