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

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

Issue 18475002: WebCrypto: Add framework for AlgorithmIdentifier normalization. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rename verify --> verifySignature (because "verify" is a macro on Mac) Created 7 years, 6 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/AesKeyGenParams.h ('k') | Source/modules/crypto/AesKeyGenParams.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/modules/crypto/AesKeyGenParams.h ('k') | Source/modules/crypto/AesKeyGenParams.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698