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

Side by Side Diff: base/crypto/secure_hash_default.cc

Issue 6410105: run iwyu on base! Base URL: svn://svn.chromium.org/chrome/trunk/src/base
Patch Set: Created 9 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « base/crypto/rsa_private_key_mac.cc ('k') | base/crypto/signature_creator_mac.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <stddef.h>
6
5 #include "base/crypto/secure_hash.h" 7 #include "base/crypto/secure_hash.h"
6
7 #include "base/logging.h" 8 #include "base/logging.h"
8 #include "base/third_party/nss/blapi.h" 9 #include "base/third_party/nss/blapi.h"
9 #include "base/third_party/nss/sha256.h" 10 #include "base/third_party/nss/blapit.h"
10 11
11 namespace base { 12 namespace base {
12 13
13 namespace { 14 namespace {
14 15
15 class SecureHashSHA256NSS : public SecureHash { 16 class SecureHashSHA256NSS : public SecureHash {
16 public: 17 public:
17 SecureHashSHA256NSS() { 18 SecureHashSHA256NSS() {
18 SHA256_Begin(&ctx_); 19 SHA256_Begin(&ctx_);
19 } 20 }
(...skipping 20 matching lines...) Expand all
40 switch (algorithm) { 41 switch (algorithm) {
41 case SHA256: 42 case SHA256:
42 return new SecureHashSHA256NSS(); 43 return new SecureHashSHA256NSS();
43 default: 44 default:
44 NOTIMPLEMENTED(); 45 NOTIMPLEMENTED();
45 return NULL; 46 return NULL;
46 } 47 }
47 } 48 }
48 49
49 } // namespace base 50 } // namespace base
OLDNEW
« no previous file with comments | « base/crypto/rsa_private_key_mac.cc ('k') | base/crypto/signature_creator_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698