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

Side by Side Diff: utility/vbutil_keyblock.c

Issue 2730011: Added vbutil_kernel. (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Created 10 years, 6 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
« no previous file with comments | « utility/vbutil_key.c ('k') | vkernel/Makefile » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
3 * found in the LICENSE file.
4 *
5 * Verified boot key block utility
6 */
7
1 #include <getopt.h> 8 #include <getopt.h>
2 #include <inttypes.h> /* For PRIu64 */ 9 #include <inttypes.h> /* For PRIu64 */
3 #include <stdio.h> 10 #include <stdio.h>
4 #include <stdlib.h> 11 #include <stdlib.h>
5 12
6 #include "cryptolib.h" 13 #include "cryptolib.h"
7 #include "host_common.h" 14 #include "host_common.h"
8 #include "vboot_common.h" 15 #include "vboot_common.h"
9 16
10 17
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 switch(mode) { 220 switch(mode) {
214 case OPT_MODE_PACK: 221 case OPT_MODE_PACK:
215 return Pack(filename, datapubkey, signprivate, algorithm, flags); 222 return Pack(filename, datapubkey, signprivate, algorithm, flags);
216 case OPT_MODE_UNPACK: 223 case OPT_MODE_UNPACK:
217 return Unpack(filename, datapubkey, signpubkey); 224 return Unpack(filename, datapubkey, signpubkey);
218 default: 225 default:
219 printf("Must specify a mode.\n"); 226 printf("Must specify a mode.\n");
220 return PrintHelp(); 227 return PrintHelp();
221 } 228 }
222 } 229 }
OLDNEW
« no previous file with comments | « utility/vbutil_key.c ('k') | vkernel/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698