| OLD | NEW |
| 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 /* Copyright (c) 2010 The Chromium OS 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 * Utility functions for message digest functions. | 5 * Utility functions for message digest functions. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "cryptolib.h" | 8 #include "cryptolib.h" |
| 9 #include "utility.h" | 9 #include "utility.h" |
| 10 | 10 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 SHA1, /* RSA 4096 */ | 78 SHA1, /* RSA 4096 */ |
| 79 SHA256, | 79 SHA256, |
| 80 SHA512, | 80 SHA512, |
| 81 SHA1, /* RSA 8192 */ | 81 SHA1, /* RSA 8192 */ |
| 82 SHA256, | 82 SHA256, |
| 83 SHA512, | 83 SHA512, |
| 84 }; | 84 }; |
| 85 /* Call the appropriate hash function. */ | 85 /* Call the appropriate hash function. */ |
| 86 return hash[sig_algorithm](buf, len, digest); | 86 return hash[sig_algorithm](buf, len, digest); |
| 87 } | 87 } |
| OLD | NEW |