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

Side by Side Diff: crypto/secure_hash_openssl.cc

Issue 1312203002: Include BoringSSL headers from third_party/ in crypto. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 1 month 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/scoped_openssl_types.h ('k') | crypto/signature_creator_openssl.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/secure_hash.h" 5 #include "crypto/secure_hash.h"
6 6
7 #include <openssl/mem.h>
8 #include <openssl/sha.h>
9
10 #include "base/basictypes.h" 7 #include "base/basictypes.h"
11 #include "base/logging.h" 8 #include "base/logging.h"
12 #include "base/pickle.h" 9 #include "base/pickle.h"
13 #include "crypto/openssl_util.h" 10 #include "crypto/openssl_util.h"
11 #include "third_party/boringssl/src/include/openssl/mem.h"
12 #include "third_party/boringssl/src/include/openssl/sha.h"
14 13
15 namespace crypto { 14 namespace crypto {
16 15
17 namespace { 16 namespace {
18 17
19 const char kSHA256Descriptor[] = "OpenSSL"; 18 const char kSHA256Descriptor[] = "OpenSSL";
20 19
21 class SecureHashSHA256OpenSSL : public SecureHash { 20 class SecureHashSHA256OpenSSL : public SecureHash {
22 public: 21 public:
23 static const int kSecureHashVersion = 1; 22 static const int kSecureHashVersion = 1;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 switch (algorithm) { 92 switch (algorithm) {
94 case SHA256: 93 case SHA256:
95 return new SecureHashSHA256OpenSSL(); 94 return new SecureHashSHA256OpenSSL();
96 default: 95 default:
97 NOTIMPLEMENTED(); 96 NOTIMPLEMENTED();
98 return NULL; 97 return NULL;
99 } 98 }
100 } 99 }
101 100
102 } // namespace crypto 101 } // namespace crypto
OLDNEW
« no previous file with comments | « crypto/scoped_openssl_types.h ('k') | crypto/signature_creator_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698