OLD | NEW |
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> | 7 #include <openssl/mem.h> |
8 #include <openssl/sha.h> | 8 #include <openssl/sha.h> |
| 9 #include <stddef.h> |
9 | 10 |
10 #include "base/basictypes.h" | |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/pickle.h" | 12 #include "base/pickle.h" |
13 #include "crypto/openssl_util.h" | 13 #include "crypto/openssl_util.h" |
14 | 14 |
15 namespace crypto { | 15 namespace crypto { |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 const char kSHA256Descriptor[] = "OpenSSL"; | 19 const char kSHA256Descriptor[] = "OpenSSL"; |
20 | 20 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 switch (algorithm) { | 93 switch (algorithm) { |
94 case SHA256: | 94 case SHA256: |
95 return new SecureHashSHA256OpenSSL(); | 95 return new SecureHashSHA256OpenSSL(); |
96 default: | 96 default: |
97 NOTIMPLEMENTED(); | 97 NOTIMPLEMENTED(); |
98 return NULL; | 98 return NULL; |
99 } | 99 } |
100 } | 100 } |
101 | 101 |
102 } // namespace crypto | 102 } // namespace crypto |
OLD | NEW |