Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Side by Side Diff: src/platform/vboot_reference/tests/kernel_splicing_tests.c

Issue 1593002: Revert "VBoot Reference: Refactor Part 2 - Crypto Libraries" (Closed)
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 * Splicing tests for the kernel image verification library. 5 * Splicing tests for the kernel image verification library.
6 */ 6 */
7 7
8 #include <stdio.h> 8 #include <stdio.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 10
11 #include "cryptolib.h"
12 #include "file_keys.h" 11 #include "file_keys.h"
13 #include "kernel_image.h" 12 #include "kernel_image.h"
13 #include "padding.h"
14 #include "rsa_utility.h"
14 #include "test_common.h" 15 #include "test_common.h"
15 #include "utility.h" 16 #include "utility.h"
16 17
17 #define FIRMWARE_KEY_BASE_NAME "testkeys/key_rsa2048" 18 #define FIRMWARE_KEY_BASE_NAME "testkeys/key_rsa2048"
18 #define KERNEL_KEY_BASE_NAME "testkeys/key_rsa1024" 19 #define KERNEL_KEY_BASE_NAME "testkeys/key_rsa1024"
19 20
20 const char* kFirmwareKeyPublicFile = FIRMWARE_KEY_BASE_NAME ".keyb"; 21 const char* kFirmwareKeyPublicFile = FIRMWARE_KEY_BASE_NAME ".keyb";
21 const char* kFirmwareKeyFile = FIRMWARE_KEY_BASE_NAME ".pem"; 22 const char* kFirmwareKeyFile = FIRMWARE_KEY_BASE_NAME ".pem";
22 const char* kKernelKeyPublicFile = KERNEL_KEY_BASE_NAME ".keyb"; 23 const char* kKernelKeyPublicFile = KERNEL_KEY_BASE_NAME ".keyb";
23 const char* kKernelKeyFile = KERNEL_KEY_BASE_NAME ".pem"; 24 const char* kKernelKeyFile = KERNEL_KEY_BASE_NAME ".pem";
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 76 }
76 77
77 int main(int argc, char* argv[]) 78 int main(int argc, char* argv[])
78 { 79 {
79 int error_code = 0; 80 int error_code = 0;
80 VerifyKernelSplicingTest(); 81 VerifyKernelSplicingTest();
81 if (!gTestSuccess) 82 if (!gTestSuccess)
82 error_code = 255; 83 error_code = 255;
83 return error_code; 84 return error_code;
84 } 85 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698