diff options
author | Randall Spangler <rspangler@chromium.org> | 2016-10-18 12:00:07 -0700 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2016-11-06 02:33:02 +0000 |
commit | 46a382d6136f2fd206fd8c95180dbb816c9ad5ce (patch) | |
tree | d97739fd8373f7b3a0844fc5dc854caa9919aae3 /utility/verify_data.c | |
parent | a03a164a76a97f3f6a60ddf18c466b38f8a77400 (diff) | |
download | vboot-46a382d6136f2fd206fd8c95180dbb816c9ad5ce.tar.gz |
vboot: Remove vboot1 cryptolib padding source
The old vboot1 cryptolib hard-coded many of its padding arrays in a
padding.c file. Use the equivalent vboot2 apis instead.
This change is almost exclusively on the host and test side; the only
firmware impact is on a single line of debug output.
BUG=chromium:611535
BRANCH=none
TEST=make runtests; emerge-kevin coreboot depthcharge
Change-Id: If689ffd92f0255847bea2424950da4547b2c0df3
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/400902
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'utility/verify_data.c')
-rw-r--r-- | utility/verify_data.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utility/verify_data.c b/utility/verify_data.c index d68f8909..d160809b 100644 --- a/utility/verify_data.c +++ b/utility/verify_data.c @@ -24,8 +24,7 @@ #include "2rsa.h" #include "cryptolib.h" #include "file_keys.h" -#include "host_key.h" -#include "host_misc.h" +#include "host_common.h" #include "vb2_common.h" /* ANSI Color coding sequences. */ @@ -83,12 +82,13 @@ int main(int argc, char* argv[]) "where <algorithm> depends on the signature algorithm" " used:\n"); for(i = 0; i < VB2_ALG_COUNT; i++) - fprintf(stderr, "\t%d for %s\n", i, algo_strings[i]); + fprintf(stderr, "\t%d for %s\n", i, + vb2_get_crypto_algorithm_name(i)); return -1; } int algorithm = atoi(argv[1]); - if (algorithm >= kNumAlgorithms) { + if (algorithm >= VB2_ALG_COUNT) { fprintf(stderr, "Invalid algorithm %d\n", algorithm); goto error; } |