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> |
| 9 |
8 #include "base/strings/string_piece.h" | 10 #include "base/strings/string_piece.h" |
9 #include "crypto/crypto_export.h" | 11 #include "crypto/crypto_export.h" |
10 | 12 |
11 struct evp_aead_st; | 13 struct evp_aead_st; |
12 | 14 |
13 namespace crypto { | 15 namespace crypto { |
14 | 16 |
15 // This class exposes the AES-128-CTR-HMAC-SHA256 AEAD, currently only | 17 // This class exposes the AES-128-CTR-HMAC-SHA256 AEAD, currently only |
16 // for OpenSSL builds. | 18 // for OpenSSL builds. |
17 class CRYPTO_EXPORT Aead { | 19 class CRYPTO_EXPORT Aead { |
(...skipping 21 matching lines...) Expand all Loading... |
39 size_t NonceLength() const; | 41 size_t NonceLength() const; |
40 | 42 |
41 private: | 43 private: |
42 const std::string* key_; | 44 const std::string* key_; |
43 const evp_aead_st* aead_; | 45 const evp_aead_st* aead_; |
44 }; | 46 }; |
45 | 47 |
46 } // namespace crypto | 48 } // namespace crypto |
47 | 49 |
48 #endif // CRYPTO_ENCRYPTOR_H_ | 50 #endif // CRYPTO_ENCRYPTOR_H_ |
OLD | NEW |