| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |