| 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 <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 Loading... |
| 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 |
| OLD | NEW |