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 COMPONENTS_WEBCRYPTO_ALGORITHMS_UTIL_H_ | 5 #ifndef COMPONENTS_WEBCRYPTO_ALGORITHMS_UTIL_H_ |
6 #define COMPONENTS_WEBCRYPTO_ALGORITHMS_UTIL_H_ | 6 #define COMPONENTS_WEBCRYPTO_ALGORITHMS_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include <openssl/base.h> | 11 #include <openssl/base.h> |
| 12 #include <stddef.h> |
| 13 #include <stdint.h> |
12 | 14 |
13 #include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h" | 15 #include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h" |
14 #include "third_party/WebKit/public/platform/WebCryptoKey.h" | 16 #include "third_party/WebKit/public/platform/WebCryptoKey.h" |
15 | 17 |
16 // This file contains miscellaneous helpers that don't belong in any of the | 18 // This file contains miscellaneous helpers that don't belong in any of the |
17 // other *_util.h | 19 // other *_util.h |
18 | 20 |
19 namespace webcrypto { | 21 namespace webcrypto { |
20 | 22 |
21 class CryptoData; | 23 class CryptoData; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 const CryptoData& data, | 89 const CryptoData& data, |
88 unsigned int tag_length_bytes, | 90 unsigned int tag_length_bytes, |
89 const CryptoData& iv, | 91 const CryptoData& iv, |
90 const CryptoData& additional_data, | 92 const CryptoData& additional_data, |
91 const EVP_AEAD* aead_alg, | 93 const EVP_AEAD* aead_alg, |
92 std::vector<uint8_t>* buffer); | 94 std::vector<uint8_t>* buffer); |
93 | 95 |
94 } // namespace webcrypto | 96 } // namespace webcrypto |
95 | 97 |
96 #endif // COMPONENTS_WEBCRYPTO_ALGORITHMS_UTIL_H_ | 98 #endif // COMPONENTS_WEBCRYPTO_ALGORITHMS_UTIL_H_ |
OLD | NEW |