Index: Source/modules/crypto/AesKeyGenParams.cpp |
diff --git a/Source/modules/crypto/WorkerCrypto.cpp b/Source/modules/crypto/AesKeyGenParams.cpp |
similarity index 83% |
copy from Source/modules/crypto/WorkerCrypto.cpp |
copy to Source/modules/crypto/AesKeyGenParams.cpp |
index d77d0978de73288917dc7bb1fd259245715e5ff4..2fa560c367bfe2b5e97508575a6e366355cea57f 100644 |
--- a/Source/modules/crypto/WorkerCrypto.cpp |
+++ b/Source/modules/crypto/AesKeyGenParams.cpp |
@@ -29,13 +29,21 @@ |
*/ |
#include "config.h" |
-#include "modules/crypto/WorkerCrypto.h" |
+#include "modules/crypto/AesKeyGenParams.h" |
+ |
+#include "public/platform/WebCryptoAlgorithmParams.h" |
namespace WebCore { |
-WorkerCrypto::WorkerCrypto() |
+unsigned short AesKeyGenParams::length() const |
{ |
- ScriptWrappable::init(this); |
+ return m_algorithm.aesKeyGenParams()->length(); |
} |
+AesKeyGenParams::AesKeyGenParams(const WebKit::WebCryptoAlgorithm& algorithm) |
+ : Algorithm(algorithm) |
+{ |
+ ScriptWrappable::init(this); |
} |
+ |
+} // namespace WebCore |