Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(516)

Side by Side Diff: crypto/aead_openssl.cc

Issue 1882433002: Removing NSS files and USE_OPENSSL flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « crypto/BUILD.gn ('k') | crypto/aead_openssl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « crypto/BUILD.gn ('k') | crypto/aead_openssl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698