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 "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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 CONTENT_EXPORT Status | 144 CONTENT_EXPORT Status |
145 UnwrapKey(blink::WebCryptoKeyFormat format, | 145 UnwrapKey(blink::WebCryptoKeyFormat format, |
146 const CryptoData& wrapped_key_data, | 146 const CryptoData& wrapped_key_data, |
147 const blink::WebCryptoKey& wrapping_key, | 147 const blink::WebCryptoKey& wrapping_key, |
148 const blink::WebCryptoAlgorithm& wrapping_algorithm, | 148 const blink::WebCryptoAlgorithm& wrapping_algorithm, |
149 const blink::WebCryptoAlgorithm& algorithm_or_null, | 149 const blink::WebCryptoAlgorithm& algorithm_or_null, |
150 bool extractable, | 150 bool extractable, |
151 blink::WebCryptoKeyUsageMask usage_mask, | 151 blink::WebCryptoKeyUsageMask usage_mask, |
152 blink::WebCryptoKey* key); | 152 blink::WebCryptoKey* key); |
153 | 153 |
| 154 CONTENT_EXPORT Status |
| 155 SerializeKeyForClone(const blink::WebCryptoKey& key, |
| 156 blink::WebVector<unsigned char>* data); |
| 157 |
| 158 CONTENT_EXPORT Status |
| 159 DeserializeKeyForClone(const blink::WebCryptoKeyAlgorithm& algorithm, |
| 160 blink::WebCryptoKeyType type, |
| 161 bool extractable, |
| 162 blink::WebCryptoKeyUsageMask usage_mask, |
| 163 const CryptoData& key_data, |
| 164 blink::WebCryptoKey* key); |
| 165 |
154 } // namespace webcrypto | 166 } // namespace webcrypto |
155 | 167 |
156 } // namespace content | 168 } // namespace content |
157 | 169 |
158 #endif // CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_ | 170 #endif // CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_ |
OLD | NEW |