| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_IMPL_H_ |
| 6 #define CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_IMPL_H_ | 6 #define CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 WebKit::WebArrayBuffer* buffer); | 84 WebKit::WebArrayBuffer* buffer); |
| 85 bool DigestInternal( | 85 bool DigestInternal( |
| 86 const WebKit::WebCryptoAlgorithm& algorithm, | 86 const WebKit::WebCryptoAlgorithm& algorithm, |
| 87 const unsigned char* data, | 87 const unsigned char* data, |
| 88 unsigned data_size, | 88 unsigned data_size, |
| 89 WebKit::WebArrayBuffer* buffer); | 89 WebKit::WebArrayBuffer* buffer); |
| 90 bool GenerateKeyInternal( | 90 bool GenerateKeyInternal( |
| 91 const WebKit::WebCryptoAlgorithm& algorithm, | 91 const WebKit::WebCryptoAlgorithm& algorithm, |
| 92 scoped_ptr<WebKit::WebCryptoKeyHandle>* key, | 92 scoped_ptr<WebKit::WebCryptoKeyHandle>* key, |
| 93 WebKit::WebCryptoKeyType* type); | 93 WebKit::WebCryptoKeyType* type); |
| 94 bool GenerateKeyPairInternal( |
| 95 const WebKit::WebCryptoAlgorithm& algorithm, |
| 96 scoped_ptr<WebKit::WebCryptoKeyHandle>* public_key, |
| 97 scoped_ptr<WebKit::WebCryptoKeyHandle>* private_key); |
| 94 bool ImportKeyInternal( | 98 bool ImportKeyInternal( |
| 95 WebKit::WebCryptoKeyFormat format, | 99 WebKit::WebCryptoKeyFormat format, |
| 96 const unsigned char* key_data, | 100 const unsigned char* key_data, |
| 97 unsigned key_data_size, | 101 unsigned key_data_size, |
| 98 const WebKit::WebCryptoAlgorithm& algorithm, | 102 const WebKit::WebCryptoAlgorithm& algorithm, |
| 99 WebKit::WebCryptoKeyUsageMask usage_mask, | 103 WebKit::WebCryptoKeyUsageMask usage_mask, |
| 100 scoped_ptr<WebKit::WebCryptoKeyHandle>* handle, | 104 scoped_ptr<WebKit::WebCryptoKeyHandle>* handle, |
| 101 WebKit::WebCryptoKeyType* type); | 105 WebKit::WebCryptoKeyType* type); |
| 102 bool SignInternal( | 106 bool SignInternal( |
| 103 const WebKit::WebCryptoAlgorithm& algorithm, | 107 const WebKit::WebCryptoAlgorithm& algorithm, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 114 unsigned data_size, | 118 unsigned data_size, |
| 115 bool* signature_match); | 119 bool* signature_match); |
| 116 | 120 |
| 117 private: | 121 private: |
| 118 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl); | 122 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl); |
| 119 }; | 123 }; |
| 120 | 124 |
| 121 } // namespace content | 125 } // namespace content |
| 122 | 126 |
| 123 #endif // CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_IMPL_H_ | 127 #endif // CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_IMPL_H_ |
| OLD | NEW |