| 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 "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 bool extractable, | 92 bool extractable, |
| 93 WebKit::WebCryptoKeyUsageMask usage_mask, | 93 WebKit::WebCryptoKeyUsageMask usage_mask, |
| 94 WebKit::WebCryptoKey* key); | 94 WebKit::WebCryptoKey* key); |
| 95 bool GenerateKeyPairInternal( |
| 96 const WebKit::WebCryptoAlgorithm& algorithm, |
| 97 bool extractable, |
| 98 WebKit::WebCryptoKeyUsageMask usage_mask, |
| 99 WebKit::WebCryptoKey* public_key, |
| 100 WebKit::WebCryptoKey* private_key); |
| 95 bool ImportKeyInternal( | 101 bool ImportKeyInternal( |
| 96 WebKit::WebCryptoKeyFormat format, | 102 WebKit::WebCryptoKeyFormat format, |
| 97 const unsigned char* key_data, | 103 const unsigned char* key_data, |
| 98 unsigned key_data_size, | 104 unsigned key_data_size, |
| 99 const WebKit::WebCryptoAlgorithm& algorithm_or_null, | 105 const WebKit::WebCryptoAlgorithm& algorithm_or_null, |
| 100 bool extractable, | 106 bool extractable, |
| 101 WebKit::WebCryptoKeyUsageMask usage_mask, | 107 WebKit::WebCryptoKeyUsageMask usage_mask, |
| 102 WebKit::WebCryptoKey* key); | 108 WebKit::WebCryptoKey* key); |
| 103 bool SignInternal( | 109 bool SignInternal( |
| 104 const WebKit::WebCryptoAlgorithm& algorithm, | 110 const WebKit::WebCryptoAlgorithm& algorithm, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 115 unsigned data_size, | 121 unsigned data_size, |
| 116 bool* signature_match); | 122 bool* signature_match); |
| 117 | 123 |
| 118 private: | 124 private: |
| 119 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl); | 125 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl); |
| 120 }; | 126 }; |
| 121 | 127 |
| 122 } // namespace content | 128 } // namespace content |
| 123 | 129 |
| 124 #endif // CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_IMPL_H_ | 130 #endif // CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_IMPL_H_ |
| OLD | NEW |