| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 124 |
| 125 CONTENT_EXPORT Status | 125 CONTENT_EXPORT Status |
| 126 VerifySignature(const blink::WebCryptoAlgorithm& algorithm, | 126 VerifySignature(const blink::WebCryptoAlgorithm& algorithm, |
| 127 const blink::WebCryptoKey& key, | 127 const blink::WebCryptoKey& key, |
| 128 const CryptoData& signature, | 128 const CryptoData& signature, |
| 129 const CryptoData& data, | 129 const CryptoData& data, |
| 130 bool* signature_match); | 130 bool* signature_match); |
| 131 | 131 |
| 132 CONTENT_EXPORT Status | 132 CONTENT_EXPORT Status |
| 133 WrapKey(blink::WebCryptoKeyFormat format, | 133 WrapKey(blink::WebCryptoKeyFormat format, |
| 134 const blink::WebCryptoKey& key_to_wrap, |
| 134 const blink::WebCryptoKey& wrapping_key, | 135 const blink::WebCryptoKey& wrapping_key, |
| 135 const blink::WebCryptoKey& key_to_wrap, | |
| 136 const blink::WebCryptoAlgorithm& wrapping_algorithm, | 136 const blink::WebCryptoAlgorithm& wrapping_algorithm, |
| 137 std::vector<uint8>* buffer); | 137 std::vector<uint8>* buffer); |
| 138 | 138 |
| 139 CONTENT_EXPORT Status | 139 CONTENT_EXPORT Status |
| 140 UnwrapKey(blink::WebCryptoKeyFormat format, | 140 UnwrapKey(blink::WebCryptoKeyFormat format, |
| 141 const CryptoData& wrapped_key_data, | 141 const CryptoData& wrapped_key_data, |
| 142 const blink::WebCryptoKey& wrapping_key, | 142 const blink::WebCryptoKey& wrapping_key, |
| 143 const blink::WebCryptoAlgorithm& wrapping_algorithm, | 143 const blink::WebCryptoAlgorithm& wrapping_algorithm, |
| 144 const blink::WebCryptoAlgorithm& algorithm, | 144 const blink::WebCryptoAlgorithm& algorithm, |
| 145 bool extractable, | 145 bool extractable, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 157 bool extractable, | 157 bool extractable, |
| 158 blink::WebCryptoKeyUsageMask usage_mask, | 158 blink::WebCryptoKeyUsageMask usage_mask, |
| 159 const CryptoData& key_data, | 159 const CryptoData& key_data, |
| 160 blink::WebCryptoKey* key); | 160 blink::WebCryptoKey* key); |
| 161 | 161 |
| 162 } // namespace webcrypto | 162 } // namespace webcrypto |
| 163 | 163 |
| 164 } // namespace content | 164 } // namespace content |
| 165 | 165 |
| 166 #endif // CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_ | 166 #endif // CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_ |
| OLD | NEW |