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 /tests/vboot_common_tests.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 'tests/vboot_common_tests.c')
-rw-r--r-- | tests/vboot_common_tests.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/vboot_common_tests.c b/tests/vboot_common_tests.c index d5494d42..8e005260 100644 --- a/tests/vboot_common_tests.c +++ b/tests/vboot_common_tests.c @@ -9,6 +9,7 @@ #include <stdio.h> #include <stdlib.h> +#include "host_common.h" #include "test_common.h" #include "utility.h" #include "vboot_common.h" @@ -154,7 +155,7 @@ static void PublicKeyTest(void) PublicKeyInit(k, (uint8_t*)(k + 1), 2 * sizeof(VbPublicKey)); TEST_EQ(k->key_offset, sizeof(VbPublicKey), "PublicKeyInit key_offset"); TEST_EQ(k->key_size, 2 * sizeof(VbPublicKey), "PublicKeyInit key_size"); - TEST_EQ(k->algorithm, kNumAlgorithms, "PublicKeyInit algorithm"); + TEST_EQ(k->algorithm, VB2_ALG_COUNT, "PublicKeyInit algorithm"); TEST_EQ(k->key_version, 0, "PublicKeyInit key_version"); /* Set algorithm and version, so we can tell if they get copied */ |