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

Side by Side Diff: crypto/secure_hash_openssl.cc

Issue 11299235: Fix nits in SecureHash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Include <openssl/crypto.h> for OPENSSL_cleanse Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « crypto/secure_hash_default.cc ('k') | no next file » | 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/ssl.h> 7 #include <openssl/crypto.h>
8 #include <openssl/sha.h>
8 9
9 #include "base/basictypes.h" 10 #include "base/basictypes.h"
10 #include "base/logging.h" 11 #include "base/logging.h"
11 #include "base/pickle.h" 12 #include "base/pickle.h"
12 #include "crypto/openssl_util.h" 13 #include "crypto/openssl_util.h"
13 14
14 namespace crypto { 15 namespace crypto {
15 16
16 namespace { 17 namespace {
17 18
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 switch (algorithm) { 93 switch (algorithm) {
93 case SHA256: 94 case SHA256:
94 return new SecureHashSHA256OpenSSL(); 95 return new SecureHashSHA256OpenSSL();
95 default: 96 default:
96 NOTIMPLEMENTED(); 97 NOTIMPLEMENTED();
97 return NULL; 98 return NULL;
98 } 99 }
99 } 100 }
100 101
101 } // namespace crypto 102 } // namespace crypto
OLDNEW
« no previous file with comments | « crypto/secure_hash_default.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698