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

12

/external/vboot_reference/host/lib/include/
H A 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);
H A Dutil_misc.h14 /* Prints the sha1sum of the given VbPublicKey to stdout. */
15 void PrintPubKeySha1Sum(VbPublicKey* key);
19 * but also the part of VbPublicKey and struct vb2_packed_key that is
H A Dhost_keyblock.h21 VbKeyBlockHeader* KeyBlockCreate_external(const VbPublicKey* data_key,
30 VbKeyBlockHeader* KeyBlockCreate(const VbPublicKey* data_key,
H A Dhost_common.h35 const VbPublicKey *kernel_subkey,
/external/vboot_reference/firmware/lib/
H A Dregion-fw.c21 VbPublicKey **keyp)
23 VbPublicKey hdr, *key;
28 sizeof(VbPublicKey), &hdr);
47 VbError_t VbGbbReadRootKey(VbCommonParams *cparams, VbPublicKey **keyp)
52 VbError_t VbGbbReadRecoveryKey(VbCommonParams *cparams, VbPublicKey **keyp)
H A Dvboot_common.c33 uint8_t *GetPublicKeyData(VbPublicKey *key)
38 const uint8_t *GetPublicKeyDataC(const VbPublicKey *key)
88 const VbPublicKey *key)
91 key, sizeof(VbPublicKey),
103 void PublicKeyInit(VbPublicKey *key, uint8_t *key_data, uint64_t key_size)
111 int PublicKeyCopy(VbPublicKey *dest, const VbPublicKey *src)
123 RSAPublicKey *PublicKeyToRSA(const VbPublicKey *key)
188 const VbPublicKey *key, int hash_only)
515 int VbSharedDataSetKernelKey(VbSharedDataHeader *header, const VbPublicKey *sr
[all...]
/external/vboot_reference/firmware/include/
H A Dgbb_access.h17 struct VbPublicKey;
39 struct VbPublicKey **keyp);
50 struct VbPublicKey **keyp);
H A Dvboot_struct.h14 typedef struct VbPublicKey { struct
23 } __attribute__((packed)) VbPublicKey; typedef in typeref:struct:VbPublicKey
87 VbPublicKey data_key;
121 VbPublicKey kernel_subkey;
163 VbPublicKey kernel_subkey;
475 VbPublicKey kernel_subkey;
/external/vboot_reference/firmware/lib/include/
H A 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/tests/
H A Dvboot_common_tests.c22 TEST_EQ(EXPECTED_VBPUBLICKEY_SIZE, sizeof(VbPublicKey),
23 "sizeof(VbPublicKey)");
71 VbPublicKey k = {sizeof(k), 2, 3, 4};
79 VbPublicKey k = {123, 2, 3, 4};
116 VbPublicKey k = {sizeof(k), 128, 0, 0};
126 VbPublicKey k = {100, 4, 0, 0};
151 VbPublicKey k[3];
152 VbPublicKey j[5];
160 PublicKeyInit(k, (uint8_t*)(k + 1), 2 * sizeof(VbPublicKey));
161 TEST_EQ(k->key_offset, sizeof(VbPublicKey), "PublicKeyIni
[all...]
H A Dvboot_common2_tests.c19 static void VerifyPublicKeyToRSA(const VbPublicKey *orig_key)
22 VbPublicKey *key = PublicKeyAlloc(orig_key->key_size, 0, 0);
43 static void VerifyDataTest(const VbPublicKey *public_key,
79 static void VerifyDigestTest(const VbPublicKey *public_key,
118 static void VerifyKernelPreambleTest(const VbPublicKey *public_key,
218 VbPublicKey *public_key = NULL;
H A Dvboot_common3_tests.c30 static void KeyBlockVerifyTest(const VbPublicKey *public_key,
32 const VbPublicKey *data_key)
166 static void VerifyFirmwarePreambleTest(const VbPublicKey *public_key,
168 const VbPublicKey *kernel_subkey)
285 VbPublicKey *signing_public_key = NULL;
286 VbPublicKey *data_public_key = NULL;
H A Dvb20_common3_tests.c32 static void test_verify_keyblock(const VbPublicKey *public_key,
34 const VbPublicKey *data_key)
172 static void test_verify_fw_preamble(const VbPublicKey *public_key,
174 const VbPublicKey *kernel_subkey)
311 VbPublicKey *signing_public_key = NULL;
312 VbPublicKey *data_public_key = NULL;
H A Dvboot_firmware_tests.c42 VbPublicKey *root_key;
86 root_key = (VbPublicKey *)(gbb_data + gbb->rootkey_offset);
107 const VbPublicKey *key, int hash_only) {
133 RSAPublicKey* PublicKeyToRSA(const VbPublicKey* key) {
H A Dverify_kernel.c63 VbPublicKey *kernkey;
/external/vboot_reference/host/lib/
H A Dhost_key.c147 VbPublicKey* PublicKeyAlloc(uint64_t key_size, uint64_t algorithm,
149 VbPublicKey* key = (VbPublicKey*)malloc(sizeof(VbPublicKey) + key_size);
156 key->key_offset = sizeof(VbPublicKey);
160 VbPublicKey* PublicKeyReadKeyb(const char* filename, uint64_t algorithm,
162 VbPublicKey* key;
200 int PublicKeyLooksOkay(VbPublicKey *key, uint64_t file_size)
206 VBDEBUG(("PublicKeyRead() not a VbPublicKey\n"));
229 VbPublicKey* PublicKeyRea
[all...]
H A Dhost_keyblock.c15 VbKeyBlockHeader* KeyBlockCreate(const VbPublicKey* data_key,
75 VbKeyBlockHeader* KeyBlockCreate_external(const VbPublicKey* data_key,
H A Dhost_common.c19 const VbPublicKey *kernel_subkey,
H A Dutil_misc.c21 void PrintPubKeySha1Sum(VbPublicKey *key)
/external/vboot_reference/futility/
H A Dcmd_show.c37 VbPublicKey *k;
47 static void show_key(VbPublicKey *pubkey, const char *sp)
81 VbPublicKey *data_key = &key_block->data_key;
94 VbPublicKey *pubkey = (VbPublicKey *)state->my_area->buf;
131 VbPublicKey *pubkey;
174 pubkey = (VbPublicKey *)(buf + gbb->rootkey_offset);
188 pubkey = (VbPublicKey *)(buf + gbb->recovery_key_offset);
228 VbPublicKey *sign_key = option.k;
280 VbPublicKey *sign_ke
[all...]
H A Dcmd_vbutil_firmware.c85 VbPublicKey *kernel_subkey;
178 VbPublicKey *data_key;
179 VbPublicKey *sign_key;
180 VbPublicKey *kernel_subkey;
H A Dvb1_helper.h38 VbPublicKey *signpub_key,
H A Dcmd_vbutil_key.c73 VbPublicKey *pubkey;
108 VbPublicKey *pubkey;
H A Dcmd_vbutil_keyblock.c85 VbPublicKey *data_key;
156 VbPublicKey *data_key;
157 VbPublicKey *sign_key = NULL;
H A Dvb1_helper.c492 VbPublicKey *signpub_key,
496 VbPublicKey *data_key;
721 VbPublicKey *pubkey = (VbPublicKey *)buf;
746 /* Maybe just a VbPublicKey? */

Completed in 1649 milliseconds

12