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

Unified Diff: Source/modules/crypto/RsaKeyGenParams.h

Issue 21759002: WebCrypto: Add algorithm normalization rules for RSASSA-PKCS1-v1_5. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase onto master Created 7 years, 5 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/NormalizeAlgorithm.cpp ('k') | Source/modules/crypto/RsaKeyGenParams.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/RsaKeyGenParams.h
diff --git a/Source/modules/crypto/AesKeyGenParams.h b/Source/modules/crypto/RsaKeyGenParams.h
similarity index 80%
copy from Source/modules/crypto/AesKeyGenParams.h
copy to Source/modules/crypto/RsaKeyGenParams.h
index f72711452f07ab5fa832079965802e5bb1051d49..016e5aaa007ff59554fce30ea3611521f0dfc041 100644
--- a/Source/modules/crypto/AesKeyGenParams.h
+++ b/Source/modules/crypto/RsaKeyGenParams.h
@@ -28,22 +28,26 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AesKeyGenParams_h
-#define AesKeyGenParams_h
+#ifndef RsaKeyGenParams_h
+#define RsaKeyGenParams_h
#include "modules/crypto/Algorithm.h"
#include "public/platform/WebCryptoAlgorithm.h"
+#include "wtf/Uint8Array.h"
namespace WebCore {
-class AesKeyGenParams : public Algorithm {
+class RsaKeyGenParams : public Algorithm {
public:
- static PassRefPtr<AesKeyGenParams> create(const WebKit::WebCryptoAlgorithm& algorithm) { return adoptRef(new AesKeyGenParams(algorithm)); }
+ static PassRefPtr<RsaKeyGenParams> create(const WebKit::WebCryptoAlgorithm& algorithm) { return adoptRef(new RsaKeyGenParams(algorithm)); }
- unsigned short length() const;
+ unsigned modulusLength() const;
+ Uint8Array* publicExponent();
private:
- explicit AesKeyGenParams(const WebKit::WebCryptoAlgorithm&);
+ explicit RsaKeyGenParams(const WebKit::WebCryptoAlgorithm&);
+
+ RefPtr<Uint8Array> m_publicExponent;
};
} // namespace WebCore
« no previous file with comments | « Source/modules/crypto/NormalizeAlgorithm.cpp ('k') | Source/modules/crypto/RsaKeyGenParams.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698