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

Side by Side Diff: crypto/secure_hash_default.cc

Issue 1539353003: Switch to standard integer types in crypto/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 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/secure_hash.h ('k') | crypto/secure_hash_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 <stddef.h>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "base/pickle.h" 10 #include "base/pickle.h"
9 #include "crypto/third_party/nss/chromium-blapi.h" 11 #include "crypto/third_party/nss/chromium-blapi.h"
10 #include "crypto/third_party/nss/chromium-sha256.h" 12 #include "crypto/third_party/nss/chromium-sha256.h"
11 13
12 namespace crypto { 14 namespace crypto {
13 15
14 namespace { 16 namespace {
15 17
16 const char kSHA256Descriptor[] = "NSS"; 18 const char kSHA256Descriptor[] = "NSS";
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 switch (algorithm) { 87 switch (algorithm) {
86 case SHA256: 88 case SHA256:
87 return new SecureHashSHA256NSS(); 89 return new SecureHashSHA256NSS();
88 default: 90 default:
89 NOTIMPLEMENTED(); 91 NOTIMPLEMENTED();
90 return NULL; 92 return NULL;
91 } 93 }
92 } 94 }
93 95
94 } // namespace crypto 96 } // namespace crypto
OLDNEW
« no previous file with comments | « crypto/secure_hash.h ('k') | crypto/secure_hash_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698