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