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

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

Issue 1574005: 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 * Tests if firmware image library deals with very large firmware. This 5 * Tests if firmware image library deals with very large firmware. This
6 * is a quick and dirty test for detecting integer overflow issues. 6 * is a quick and dirty test for detecting integer overflow issues.
7 */ 7 */
8 8
9 #include <stdio.h> 9 #include <stdio.h>
10 #include <stdlib.h> 10 #include <stdlib.h>
11 11
12 #include "cryptolib.h"
12 #include "file_keys.h" 13 #include "file_keys.h"
13 #include "kernel_image.h" 14 #include "kernel_image.h"
14 #include "rsa_utility.h"
15 #include "test_common.h" 15 #include "test_common.h"
16 #include "utility.h" 16 #include "utility.h"
17 17
18 /* Choose a kernel size greater than the range of 32-bits unsigned. */ 18 /* Choose a kernel size greater than the range of 32-bits unsigned. */
19 #define BIG_KERNEL_SIZE UINT64_C(0x100000000) 19 #define BIG_KERNEL_SIZE UINT64_C(0x100000000)
20 20
21 #define FIRMWARE_KEY_BASE_NAME "testkeys/key_rsa2048" 21 #define FIRMWARE_KEY_BASE_NAME "testkeys/key_rsa2048"
22 #define KERNEL_KEY_BASE_NAME "testkeys/key_rsa1024" 22 #define KERNEL_KEY_BASE_NAME "testkeys/key_rsa1024"
23 23
24 const char* kFirmwareKeyPublicFile = FIRMWARE_KEY_BASE_NAME ".keyb"; 24 const char* kFirmwareKeyPublicFile = FIRMWARE_KEY_BASE_NAME ".keyb";
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 } 67 }
68 68
69 int main(int argc, char* argv[1]) 69 int main(int argc, char* argv[1])
70 { 70 {
71 int error_code = 0; 71 int error_code = 0;
72 error_code = BigKernelTest(); 72 error_code = BigKernelTest();
73 if (!gTestSuccess) 73 if (!gTestSuccess)
74 error_code = 255; 74 error_code = 255;
75 return error_code; 75 return error_code;
76 } 76 }
OLDNEW
« no previous file with comments | « src/platform/vboot_reference/tests/big_firmware_tests.c ('k') | src/platform/vboot_reference/tests/firmware_image_tests.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698