Index: public/platform/WebCryptoKeyAlgorithmParams.h |
diff --git a/public/platform/WebCryptoKeyAlgorithmParams.h b/public/platform/WebCryptoKeyAlgorithmParams.h |
index 0e96d563dd8bc20169b3bd044390093ea283555b..befacea640f9d8b0996a698e64bec1f5f8825dd8 100644 |
--- a/public/platform/WebCryptoKeyAlgorithmParams.h |
+++ b/public/platform/WebCryptoKeyAlgorithmParams.h |
@@ -44,7 +44,6 @@ enum WebCryptoKeyAlgorithmParamsType { |
WebCryptoKeyAlgorithmParamsTypeNone, |
WebCryptoKeyAlgorithmParamsTypeHmac, |
WebCryptoKeyAlgorithmParamsTypeAes, |
- WebCryptoKeyAlgorithmParamsTypeRsa, |
WebCryptoKeyAlgorithmParamsTypeRsaHashed |
}; |
@@ -106,11 +105,12 @@ private: |
unsigned m_lengthBits; |
}; |
-class WebCryptoRsaKeyAlgorithmParams : public WebCryptoKeyAlgorithmParams { |
+class WebCryptoRsaHashedKeyAlgorithmParams : public WebCryptoKeyAlgorithmParams { |
public: |
- WebCryptoRsaKeyAlgorithmParams(unsigned modulusLengthBits, const unsigned char* publicExponent, unsigned publicExponentSize) |
+ WebCryptoRsaHashedKeyAlgorithmParams(unsigned modulusLengthBits, const unsigned char* publicExponent, unsigned publicExponentSize, const WebCryptoAlgorithm& hash) |
: m_modulusLengthBits(modulusLengthBits) |
, m_publicExponent(publicExponent, publicExponentSize) |
+ , m_hash(hash) |
{ |
} |
@@ -124,24 +124,6 @@ public: |
return m_publicExponent; |
} |
- virtual WebCryptoKeyAlgorithmParamsType type() const |
- { |
- return WebCryptoKeyAlgorithmParamsTypeRsa; |
- } |
- |
-private: |
- unsigned m_modulusLengthBits; |
- WebVector<unsigned char> m_publicExponent; |
-}; |
- |
-class WebCryptoRsaHashedKeyAlgorithmParams : public WebCryptoRsaKeyAlgorithmParams { |
-public: |
- WebCryptoRsaHashedKeyAlgorithmParams(unsigned modulusLengthBits, const unsigned char* publicExponent, unsigned publicExponentSize, const WebCryptoAlgorithm& hash) |
- : WebCryptoRsaKeyAlgorithmParams(modulusLengthBits, publicExponent, publicExponentSize) |
- , m_hash(hash) |
- { |
- } |
- |
const WebCryptoAlgorithm& hash() const |
{ |
return m_hash; |
@@ -153,6 +135,8 @@ public: |
} |
private: |
+ unsigned m_modulusLengthBits; |
+ WebVector<unsigned char> m_publicExponent; |
WebCryptoAlgorithm m_hash; |
}; |