| 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 | 5 |
| 6 /* Routines for verifying a file's signature. Useful in testing the core | 6 /* Routines for verifying a file's signature. Useful in testing the core |
| 7 * RSA verification implementation. | 7 * RSA verification implementation. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 #include <fcntl.h> | 10 #include <fcntl.h> |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 else | 112 else |
| 113 fprintf(stderr, "Signature Verification FAILED!\n"); | 113 fprintf(stderr, "Signature Verification FAILED!\n"); |
| 114 | 114 |
| 115 failure: | 115 failure: |
| 116 free(key); | 116 free(key); |
| 117 free(signature); | 117 free(signature); |
| 118 free(digest); | 118 free(digest); |
| 119 | 119 |
| 120 return 0; | 120 return 0; |
| 121 } | 121 } |
| OLD | NEW |