OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_ | 5 #ifndef CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_ |
6 #define CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_ | 6 #define CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 | 153 |
154 // Called on the target Blink thread. | 154 // Called on the target Blink thread. |
155 CONTENT_EXPORT bool DeserializeKeyForClone( | 155 CONTENT_EXPORT bool DeserializeKeyForClone( |
156 const blink::WebCryptoKeyAlgorithm& algorithm, | 156 const blink::WebCryptoKeyAlgorithm& algorithm, |
157 blink::WebCryptoKeyType type, | 157 blink::WebCryptoKeyType type, |
158 bool extractable, | 158 bool extractable, |
159 blink::WebCryptoKeyUsageMask usage_mask, | 159 blink::WebCryptoKeyUsageMask usage_mask, |
160 const CryptoData& key_data, | 160 const CryptoData& key_data, |
161 blink::WebCryptoKey* key); | 161 blink::WebCryptoKey* key); |
162 | 162 |
| 163 namespace platform { |
| 164 class SymKey; |
| 165 class PublicKey; |
| 166 class PrivateKey; |
| 167 } |
| 168 |
| 169 Status ToPlatformSymKey(const blink::WebCryptoKey& key, platform::SymKey** out); |
| 170 |
| 171 Status ToPlatformPublicKey(const blink::WebCryptoKey& key, |
| 172 platform::PublicKey** out); |
| 173 |
| 174 Status ToPlatformPrivateKey(const blink::WebCryptoKey& key, |
| 175 platform::PrivateKey** out); |
| 176 |
163 } // namespace webcrypto | 177 } // namespace webcrypto |
164 | 178 |
165 } // namespace content | 179 } // namespace content |
166 | 180 |
167 #endif // CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_ | 181 #endif // CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_ |
OLD | NEW |