| 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
|
|
|