Index: content/child/webcrypto/openssl/sym_key_openssl.h |
diff --git a/content/child/webcrypto/jwk.h b/content/child/webcrypto/openssl/sym_key_openssl.h |
similarity index 31% |
copy from content/child/webcrypto/jwk.h |
copy to content/child/webcrypto/openssl/sym_key_openssl.h |
index c9191888256d957f56c00da4bebe970307cca9c3..e952dee884ab8bce4f29fd85e2a2d5a5f38419a3 100644 |
--- a/content/child/webcrypto/jwk.h |
+++ b/content/child/webcrypto/openssl/sym_key_openssl.h |
@@ -2,15 +2,10 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef CONTENT_CHILD_WEBCRYPTO_JWK_H_ |
-#define CONTENT_CHILD_WEBCRYPTO_JWK_H_ |
+#ifndef CONTENT_CHILD_WEBCRYPTO_OPENSSL_SYM_KEY_OPENSSL_H_ |
+#define CONTENT_CHILD_WEBCRYPTO_OPENSSL_SYM_KEY_OPENSSL_H_ |
-#include <vector> |
- |
-#include "base/basictypes.h" |
-#include "third_party/WebKit/public/platform/WebArrayBuffer.h" |
#include "third_party/WebKit/public/platform/WebCrypto.h" |
-#include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" |
namespace content { |
@@ -19,16 +14,20 @@ namespace webcrypto { |
class CryptoData; |
class Status; |
-Status ImportKeyJwk(const CryptoData& key_data, |
- const blink::WebCryptoAlgorithm& algorithm, |
- bool extractable, |
- blink::WebCryptoKeyUsageMask usage_mask, |
- blink::WebCryptoKey* key); |
+Status GenerateSecretKeyOpenSsl(const blink::WebCryptoKeyAlgorithm& algorithm, |
+ bool extractable, |
+ blink::WebCryptoKeyUsageMask usage_mask, |
+ unsigned keylen_bytes, |
+ blink::WebCryptoKey* key); |
-Status ExportKeyJwk(const blink::WebCryptoKey& key, std::vector<uint8>* buffer); |
+Status ImportKeyRawOpenSsl(const CryptoData& key_data, |
+ const blink::WebCryptoKeyAlgorithm& algorithm, |
+ bool extractable, |
+ blink::WebCryptoKeyUsageMask usage_mask, |
+ blink::WebCryptoKey* key); |
} // namespace webcrypto |
} // namespace content |
-#endif // CONTENT_CHILD_WEBCRYPTO_JWK_H_ |
+#endif // CONTENT_CHILD_WEBCRYPTO_OPENSSL_SYM_KEY_OPENSSL_H_ |