/external/vboot_reference/tests/ |
D | vboot_common_tests.c | 22 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 …]
|
D | vboot_common2_tests.c | 19 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()
|
D | vboot_common3_tests.c | 30 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()
|
D | vb20_common3_tests.c | 32 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()
|
D | vboot_firmware_tests.c | 42 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()
|
D | verify_kernel.c | 63 VbPublicKey *kernkey; in main()
|
/external/vboot_reference/host/lib/ |
D | host_key.c | 147 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 …]
|
D | host_keyblock.c | 15 VbKeyBlockHeader* KeyBlockCreate(const VbPublicKey* data_key, in KeyBlockCreate() 75 VbKeyBlockHeader* KeyBlockCreate_external(const VbPublicKey* data_key, in KeyBlockCreate_external()
|
D | host_common.c | 19 const VbPublicKey *kernel_subkey, in CreateFirmwarePreamble()
|
D | util_misc.c | 21 void PrintPubKeySha1Sum(VbPublicKey *key) in PrintPubKeySha1Sum()
|
/external/vboot_reference/firmware/lib/include/ |
D | vboot_common.h | 59 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/ |
D | host_key.h | 44 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);
|
D | host_keyblock.h | 21 VbKeyBlockHeader* KeyBlockCreate_external(const VbPublicKey* data_key, 30 VbKeyBlockHeader* KeyBlockCreate(const VbPublicKey* data_key,
|
D | util_misc.h | 15 void PrintPubKeySha1Sum(VbPublicKey* key);
|
D | host_common.h | 35 const VbPublicKey *kernel_subkey,
|
/external/vboot_reference/firmware/lib/ |
D | region-fw.c | 21 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()
|
D | vboot_common.c | 33 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/ |
D | vboot_struct.h | 14 typedef struct VbPublicKey { struct 23 } __attribute__((packed)) VbPublicKey; argument 87 VbPublicKey data_key; 121 VbPublicKey kernel_subkey; 163 VbPublicKey kernel_subkey; 475 VbPublicKey kernel_subkey;
|
D | gbb_access.h | 17 struct VbPublicKey; 39 struct VbPublicKey **keyp); 50 struct VbPublicKey **keyp);
|
/external/vboot_reference/futility/ |
D | cmd_show.c | 37 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 …]
|
D | cmd_vbutil_firmware.c | 85 VbPublicKey *kernel_subkey; in Vblock() 178 VbPublicKey *data_key; in Verify() 179 VbPublicKey *sign_key; in Verify() 180 VbPublicKey *kernel_subkey; in Verify()
|
D | cmd_vbutil_keyblock.c | 85 VbPublicKey *data_key; in Pack() 156 VbPublicKey *data_key; in Unpack() 157 VbPublicKey *sign_key = NULL; in Unpack()
|
D | cmd_vbutil_key.c | 73 VbPublicKey *pubkey; in Pack() 108 VbPublicKey *pubkey; in Unpack()
|
D | vb1_helper.c | 492 VbPublicKey *signpub_key, in VerifyKernelBlob() 496 VbPublicKey *data_key; in VerifyKernelBlob() 721 VbPublicKey *pubkey = (VbPublicKey *)buf; in recognize_vblock1()
|
D | vb1_helper.h | 38 VbPublicKey *signpub_key,
|