Home
last modified time | relevance | path

Searched refs:VbPublicKey (Results 1 – 25 of 33) sorted by relevance

12

/external/vboot_reference/tests/
Dvboot_common_tests.c22 TEST_EQ(EXPECTED_VBPUBLICKEY_SIZE, sizeof(VbPublicKey), in StructPackingTest()
71 VbPublicKey k = {sizeof(k), 2, 3, 4}; in VerifyHelperFunctions()
79 VbPublicKey k = {123, 2, 3, 4}; in VerifyHelperFunctions()
116 VbPublicKey k = {sizeof(k), 128, 0, 0}; in VerifyHelperFunctions()
126 VbPublicKey k = {100, 4, 0, 0}; in VerifyHelperFunctions()
151 VbPublicKey k[3]; in PublicKeyTest()
152 VbPublicKey j[5]; in PublicKeyTest()
160 PublicKeyInit(k, (uint8_t*)(k + 1), 2 * sizeof(VbPublicKey)); in PublicKeyTest()
161 TEST_EQ(k->key_offset, sizeof(VbPublicKey), "PublicKeyInit key_offset"); in PublicKeyTest()
162 TEST_EQ(k->key_size, 2 * sizeof(VbPublicKey), "PublicKeyInit key_size"); in PublicKeyTest()
[all …]
Dvboot_common2_tests.c19 static void VerifyPublicKeyToRSA(const VbPublicKey *orig_key) in VerifyPublicKeyToRSA()
22 VbPublicKey *key = PublicKeyAlloc(orig_key->key_size, 0, 0); in VerifyPublicKeyToRSA()
43 static void VerifyDataTest(const VbPublicKey *public_key, in VerifyDataTest()
79 static void VerifyDigestTest(const VbPublicKey *public_key, in VerifyDigestTest()
118 static void VerifyKernelPreambleTest(const VbPublicKey *public_key, in VerifyKernelPreambleTest()
218 VbPublicKey *public_key = NULL; in test_algorithm()
Dvboot_common3_tests.c30 static void KeyBlockVerifyTest(const VbPublicKey *public_key, in KeyBlockVerifyTest()
32 const VbPublicKey *data_key) in KeyBlockVerifyTest()
166 static void VerifyFirmwarePreambleTest(const VbPublicKey *public_key, in VerifyFirmwarePreambleTest()
168 const VbPublicKey *kernel_subkey) in VerifyFirmwarePreambleTest()
285 VbPublicKey *signing_public_key = NULL; in test_permutation()
286 VbPublicKey *data_public_key = NULL; in test_permutation()
Dvb20_common3_tests.c32 static void test_verify_keyblock(const VbPublicKey *public_key, in test_verify_keyblock()
34 const VbPublicKey *data_key) in test_verify_keyblock()
172 static void test_verify_fw_preamble(const VbPublicKey *public_key, in test_verify_fw_preamble()
174 const VbPublicKey *kernel_subkey) in test_verify_fw_preamble()
311 VbPublicKey *signing_public_key = NULL; in test_permutation()
312 VbPublicKey *data_public_key = NULL; in test_permutation()
Dvboot_firmware_tests.c42 VbPublicKey *root_key; in ResetMocks()
86 root_key = (VbPublicKey *)(gbb_data + gbb->rootkey_offset); in ResetMocks()
107 const VbPublicKey *key, int hash_only) { in KeyBlockVerify()
133 RSAPublicKey* PublicKeyToRSA(const VbPublicKey* key) { in PublicKeyToRSA()
Dverify_kernel.c63 VbPublicKey *kernkey; in main()
/external/vboot_reference/host/lib/
Dhost_key.c147 VbPublicKey* PublicKeyAlloc(uint64_t key_size, uint64_t algorithm, in PublicKeyAlloc()
149 VbPublicKey* key = (VbPublicKey*)malloc(sizeof(VbPublicKey) + key_size); in PublicKeyAlloc()
156 key->key_offset = sizeof(VbPublicKey); in PublicKeyAlloc()
160 VbPublicKey* PublicKeyReadKeyb(const char* filename, uint64_t algorithm, in PublicKeyReadKeyb()
162 VbPublicKey* key; in PublicKeyReadKeyb()
200 int PublicKeyLooksOkay(VbPublicKey *key, uint64_t file_size) in PublicKeyLooksOkay()
229 VbPublicKey* PublicKeyRead(const char* filename) { in PublicKeyRead()
230 VbPublicKey* key; in PublicKeyRead()
233 key = (VbPublicKey*)ReadFile(filename, &file_size); in PublicKeyRead()
245 int PublicKeyWrite(const char* filename, const VbPublicKey* key) { in PublicKeyWrite()
[all …]
Dhost_keyblock.c15 VbKeyBlockHeader* KeyBlockCreate(const VbPublicKey* data_key, in KeyBlockCreate()
75 VbKeyBlockHeader* KeyBlockCreate_external(const VbPublicKey* data_key, in KeyBlockCreate_external()
Dhost_common.c19 const VbPublicKey *kernel_subkey, in CreateFirmwarePreamble()
Dutil_misc.c21 void PrintPubKeySha1Sum(VbPublicKey *key) in PrintPubKeySha1Sum()
/external/vboot_reference/firmware/lib/include/
Dvboot_common.h59 uint8_t *GetPublicKeyData(VbPublicKey *key);
60 const uint8_t *GetPublicKeyDataC(const VbPublicKey *key);
75 const VbPublicKey *key);
83 void PublicKeyInit(VbPublicKey *key, uint8_t *key_data, uint64_t key_size);
90 int PublicKeyCopy(VbPublicKey *dest, const VbPublicKey *src);
98 RSAPublicKey *PublicKeyToRSA(const VbPublicKey *key);
122 const VbPublicKey *key, int hash_only);
200 const VbPublicKey *src);
/external/vboot_reference/host/lib/include/
Dhost_key.h44 VbPublicKey* PublicKeyAlloc(uint64_t key_size, uint64_t algorithm,
52 VbPublicKey* PublicKeyRead(const char* filename);
55 int PublicKeyLooksOkay(VbPublicKey *key, uint64_t file_size);
61 VbPublicKey* PublicKeyReadKeyb(const char* filename, uint64_t algorithm,
66 int PublicKeyWrite(const char* filename, const VbPublicKey* key);
Dhost_keyblock.h21 VbKeyBlockHeader* KeyBlockCreate_external(const VbPublicKey* data_key,
30 VbKeyBlockHeader* KeyBlockCreate(const VbPublicKey* data_key,
Dutil_misc.h15 void PrintPubKeySha1Sum(VbPublicKey* key);
Dhost_common.h35 const VbPublicKey *kernel_subkey,
/external/vboot_reference/firmware/lib/
Dregion-fw.c21 VbPublicKey **keyp) in VbGbbReadKey()
23 VbPublicKey hdr, *key; in VbGbbReadKey()
28 sizeof(VbPublicKey), &hdr); in VbGbbReadKey()
47 VbError_t VbGbbReadRootKey(VbCommonParams *cparams, VbPublicKey **keyp) in VbGbbReadRootKey()
52 VbError_t VbGbbReadRecoveryKey(VbCommonParams *cparams, VbPublicKey **keyp) in VbGbbReadRecoveryKey()
Dvboot_common.c33 uint8_t *GetPublicKeyData(VbPublicKey *key) in GetPublicKeyData()
38 const uint8_t *GetPublicKeyDataC(const VbPublicKey *key) in GetPublicKeyDataC()
88 const VbPublicKey *key) in VerifyPublicKeyInside()
91 key, sizeof(VbPublicKey), in VerifyPublicKeyInside()
103 void PublicKeyInit(VbPublicKey *key, uint8_t *key_data, uint64_t key_size) in PublicKeyInit()
111 int PublicKeyCopy(VbPublicKey *dest, const VbPublicKey *src) in PublicKeyCopy()
123 RSAPublicKey *PublicKeyToRSA(const VbPublicKey *key) in PublicKeyToRSA()
188 const VbPublicKey *key, int hash_only) in KeyBlockVerify()
515 int VbSharedDataSetKernelKey(VbSharedDataHeader *header, const VbPublicKey *src) in VbSharedDataSetKernelKey()
517 VbPublicKey *kdest; in VbSharedDataSetKernelKey()
/external/vboot_reference/firmware/include/
Dvboot_struct.h14 typedef struct VbPublicKey { struct
23 } __attribute__((packed)) VbPublicKey; typedef
87 VbPublicKey data_key;
121 VbPublicKey kernel_subkey;
163 VbPublicKey kernel_subkey;
475 VbPublicKey kernel_subkey;
Dgbb_access.h17 struct VbPublicKey;
39 struct VbPublicKey **keyp);
50 struct VbPublicKey **keyp);
/external/vboot_reference/futility/
Dcmd_show.c37 VbPublicKey *k;
47 static void show_key(VbPublicKey *pubkey, const char *sp) in show_key()
81 VbPublicKey *data_key = &key_block->data_key; in show_keyblock()
94 VbPublicKey *pubkey = (VbPublicKey *)state->my_area->buf; in futil_cb_show_pubkey()
131 VbPublicKey *pubkey; in futil_cb_show_gbb()
174 pubkey = (VbPublicKey *)(buf + gbb->rootkey_offset); in futil_cb_show_gbb()
188 pubkey = (VbPublicKey *)(buf + gbb->recovery_key_offset); in futil_cb_show_gbb()
228 VbPublicKey *sign_key = option.k; in futil_cb_show_keyblock()
280 VbPublicKey *sign_key = option.k; in futil_cb_show_fw_preamble()
297 sign_key = (VbPublicKey *)state->rootkey.buf; in futil_cb_show_fw_preamble()
[all …]
Dcmd_vbutil_firmware.c85 VbPublicKey *kernel_subkey; in Vblock()
178 VbPublicKey *data_key; in Verify()
179 VbPublicKey *sign_key; in Verify()
180 VbPublicKey *kernel_subkey; in Verify()
Dcmd_vbutil_keyblock.c85 VbPublicKey *data_key; in Pack()
156 VbPublicKey *data_key; in Unpack()
157 VbPublicKey *sign_key = NULL; in Unpack()
Dcmd_vbutil_key.c73 VbPublicKey *pubkey; in Pack()
108 VbPublicKey *pubkey; in Unpack()
Dvb1_helper.h38 VbPublicKey *signpub_key,
Dvb1_helper.c492 VbPublicKey *signpub_key, in VerifyKernelBlob()
496 VbPublicKey *data_key; in VerifyKernelBlob()
721 VbPublicKey *pubkey = (VbPublicKey *)buf; in recognize_vblock1()

12