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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 unsigned data_size, | 119 unsigned data_size, |
120 bool* signature_match); | 120 bool* signature_match); |
121 | 121 |
122 bool ImportKeyJwk( | 122 bool ImportKeyJwk( |
123 const unsigned char* key_data, | 123 const unsigned char* key_data, |
124 unsigned key_data_size, | 124 unsigned key_data_size, |
125 const blink::WebCryptoAlgorithm& algorithm_or_null, | 125 const blink::WebCryptoAlgorithm& algorithm_or_null, |
126 bool extractable, | 126 bool extractable, |
127 blink::WebCryptoKeyUsageMask usage_mask, | 127 blink::WebCryptoKeyUsageMask usage_mask, |
128 blink::WebCryptoKey* key); | 128 blink::WebCryptoKey* key); |
| 129 bool ImportRsaPublicKeyInternal( |
| 130 const unsigned char* modulus_data, |
| 131 unsigned modulus_size, |
| 132 const unsigned char* exponent_data, |
| 133 unsigned exponent_size, |
| 134 const blink::WebCryptoAlgorithm& algorithm, |
| 135 bool extractable, |
| 136 blink::WebCryptoKeyUsageMask usage_mask, |
| 137 blink::WebCryptoKey* key); |
129 | 138 |
130 private: | 139 private: |
131 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl); | 140 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl); |
132 }; | 141 }; |
133 | 142 |
134 } // namespace content | 143 } // namespace content |
135 | 144 |
136 #endif // CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_IMPL_H_ | 145 #endif // CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_IMPL_H_ |
OLD | NEW |