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