| 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 #include "crypto/aead_openssl.h" | 5 #include "crypto/aead_openssl.h" |
| 6 | 6 |
| 7 #if defined(USE_OPENSSL) | |
| 8 | |
| 9 #include <openssl/aes.h> | 7 #include <openssl/aes.h> |
| 10 #include <openssl/evp.h> | 8 #include <openssl/evp.h> |
| 11 #include <stddef.h> | 9 #include <stddef.h> |
| 12 #include <stdint.h> | 10 #include <stdint.h> |
| 13 #include <string> | 11 #include <string> |
| 14 | 12 |
| 15 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
| 16 #include "crypto/openssl_util.h" | 14 #include "crypto/openssl_util.h" |
| 17 | 15 |
| 18 namespace crypto { | 16 namespace crypto { |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 114 |
| 117 size_t Aead::KeyLength() const { | 115 size_t Aead::KeyLength() const { |
| 118 return EVP_AEAD_key_length(aead_); | 116 return EVP_AEAD_key_length(aead_); |
| 119 } | 117 } |
| 120 | 118 |
| 121 size_t Aead::NonceLength() const { | 119 size_t Aead::NonceLength() const { |
| 122 return EVP_AEAD_nonce_length(aead_); | 120 return EVP_AEAD_nonce_length(aead_); |
| 123 } | 121 } |
| 124 | 122 |
| 125 } // namespace | 123 } // namespace |
| 126 | |
| 127 #endif | |
| OLD | NEW |