diff options
Diffstat (limited to 'tests/vboot_common2_tests.c')
-rw-r--r-- | tests/vboot_common2_tests.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/vboot_common2_tests.c b/tests/vboot_common2_tests.c index 5185debb..2c0a8949 100644 --- a/tests/vboot_common2_tests.c +++ b/tests/vboot_common2_tests.c @@ -22,7 +22,8 @@ static void VerifyPublicKeyToRSA(const VbPublicKey *orig_key) { RSAPublicKey *rsa; - VbPublicKey *key = PublicKeyAlloc(orig_key->key_size, 0, 0); + VbPublicKey *key = + (VbPublicKey *)vb2_alloc_packed_key(orig_key->key_size, 0, 0); PublicKeyCopy(key, orig_key); key->algorithm = kNumAlgorithms; @@ -235,7 +236,8 @@ int test_algorithm(int key_algorithm, const char *keys_dir) } sprintf(filename, "%s/key_rsa%d.keyb", keys_dir, rsa_len); - public_key = PublicKeyReadKeyb(filename, key_algorithm, 1); + public_key = (VbPublicKey *)vb2_read_packed_keyb(filename, + key_algorithm, 1); if (!public_key) { fprintf(stderr, "Error reading public_key: %s\n", filename); return 1; |