OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CRYPTO_AEAD_H_ | 5 #ifndef CRYPTO_AEAD_H_ |
6 #define CRYPTO_AEAD_H_ | 6 #define CRYPTO_AEAD_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
| 10 #include <string> |
| 11 |
10 #include "base/strings/string_piece.h" | 12 #include "base/strings/string_piece.h" |
11 #include "crypto/crypto_export.h" | 13 #include "crypto/crypto_export.h" |
12 | 14 |
13 struct evp_aead_st; | 15 struct evp_aead_st; |
14 | 16 |
15 namespace crypto { | 17 namespace crypto { |
16 | 18 |
17 // This class exposes the AES-128-CTR-HMAC-SHA256 AEAD. | 19 // This class exposes the AES-128-CTR-HMAC-SHA256 AEAD. |
18 class CRYPTO_EXPORT Aead { | 20 class CRYPTO_EXPORT Aead { |
19 public: | 21 public: |
(...skipping 19 matching lines...) Expand all Loading... |
39 | 41 |
40 size_t NonceLength() const; | 42 size_t NonceLength() const; |
41 | 43 |
42 private: | 44 private: |
43 const std::string* key_; | 45 const std::string* key_; |
44 const evp_aead_st* aead_; | 46 const evp_aead_st* aead_; |
45 }; | 47 }; |
46 | 48 |
47 } // namespace crypto | 49 } // namespace crypto |
48 | 50 |
49 #endif // CRYPTO_ENCRYPTOR_H_ | 51 #endif // CRYPTO_AEAD_H_ |
OLD | NEW |