Home
last modified time | relevance | path

Searched refs:key_version (Results 1 – 24 of 24) sorted by relevance

/external/vboot_reference/firmware/lib/
Dvboot_firmware.c96 uint64_t key_version; in LoadFirmware() local
144 key_version = key_block->data_key.key_version; in LoadFirmware()
146 if (key_version < (shared->fw_version_tpm >> 16)) { in LoadFirmware()
151 if (key_version > 0xFFFF) { in LoadFirmware()
185 combined_version = (uint32_t)((key_version << 16) | in LoadFirmware()
Dvboot_kernel.c149 uint64_t key_version; in LoadKernel() local
244 key_version = key_block->data_key.key_version; in LoadKernel()
246 if (key_version < (shared->kernel_version_tpm >> 16)) { in LoadKernel()
252 if (key_version > 0xFFFF) { in LoadKernel()
296 (key_version << 16) | in LoadKernel()
Dvboot_common.c108 key->key_version = 0; in PublicKeyInit()
118 dest->key_version = src->key_version; in PublicKeyCopy()
/external/vboot_reference/firmware/lib20/
Dmisc.c83 if (kb->data_key.key_version > 0xffff) in vb2_load_fw_keyblock()
85 if (!rv && kb->data_key.key_version < (sd->fw_version_secdata >> 16)) in vb2_load_fw_keyblock()
92 sd->fw_version = kb->data_key.key_version << 16; in vb2_load_fw_keyblock()
102 packed_key->key_version = kb->data_key.key_version; in vb2_load_fw_keyblock()
/external/vboot_reference/tests/
Dvboot_common_tests.c158 k[2].key_version = 67; in PublicKeyTest()
164 TEST_EQ(k->key_version, 0, "PublicKeyInit key_version"); in PublicKeyTest()
168 k->key_version = 21; in PublicKeyTest()
184 TEST_EQ(k->key_version, j->key_version, "PublicKeyCopy key_version"); in PublicKeyTest()
Dvb20_misc_tests.c99 kb->data_key.key_version = 2; in reset_common_data()
197 TEST_EQ(k->key_version, 2, "data key version"); in verify_keyblock_tests()
259 kb->data_key.key_version = 0x10000; in verify_keyblock_tests()
265 kb->data_key.key_version = 1; in verify_keyblock_tests()
Dvboot_kernel_tests.c163 kbh.data_key.key_version = 2; in ResetMocks()
664 kbh.data_key.key_version = 1; in LoadKernelTest()
669 kbh.data_key.key_version = 0x10000; in LoadKernelTest()
674 kbh.data_key.key_version = 3; in LoadKernelTest()
679 kbh.data_key.key_version = 3; in LoadKernelTest()
687 kbh.data_key.key_version = 1; in LoadKernelTest()
692 kbh.data_key.key_version = 1; in LoadKernelTest()
Dvb21_misc_tests.c106 dk->key_version = 2; in reset_common_data()
205 TEST_EQ(k->key_version, 2, "data key version"); in load_keyblock_tests()
267 dk->key_version = 0x10000; in load_keyblock_tests()
273 dk->key_version = 1; in load_keyblock_tests()
Dvboot_firmware_tests.c63 vblock[i].data_key.key_version = 2; in ResetMocks()
254 vblock[1].data_key.key_version = 1; /* Simulate rollback */ in LoadFirmwareTest()
268 vblock[0].data_key.key_version = 0x10003; /* Version > 0xFFFF is invalid */ in LoadFirmwareTest()
281 vblock[0].data_key.key_version = 1; /* Simulate rollback */ in LoadFirmwareTest()
Dvb21_host_key_tests.c224 TEST_EQ(pkey->key_version, key->version, " version"); in public_key_tests()
/external/vboot_reference/scripts/keygeneration/
Dcommon.sh60 local key_version=${3:-1}
63 echo "creating $base keypair (version = $key_version)..."
77 --version "${key_version}" \
Dkeyset_version_check.sh33 key_version() { function
/external/vboot_reference/firmware/lib21/
Dmisc.c118 if (packed_key->key_version > 0xffff) in vb2_load_fw_keyblock()
120 if (!rv && packed_key->key_version < (sd->fw_version_secdata >> 16)) in vb2_load_fw_keyblock()
127 sd->fw_version = packed_key->key_version << 16; in vb2_load_fw_keyblock()
Dpacked_key.c97 key->version = pkey->key_version; in vb2_unpack_key()
/external/vboot_reference/host/lib/
Dhost_key.c154 key->key_version = version; in PublicKeyAlloc()
213 if (key->key_version > 0xFFFF) { in PublicKeyLooksOkay()
/external/vboot_reference/futility/
Dcmd_vbutil_firmware.c234 printf(" Data key version: %" PRIu64 "\n", data_key->key_version); in Verify()
267 kernel_subkey->key_version); in Verify()
Dvb1_helper.c528 printf(" Data key version: %" PRIu64 "\n", data_key->key_version); in VerifyKernelBlob()
550 if (data_key->key_version < (min_version >> 16)) { in VerifyKernelBlob()
553 data_key->key_version, (min_version >> 16)); in VerifyKernelBlob()
Dcmd_show.c52 printf("%sKey Version: %" PRIu64 "\n", sp, pubkey->key_version); in show_key()
86 printf(" Data key version: %" PRIu64 "\n", data_key->key_version); in show_keyblock()
359 kernel_subkey->key_version); in futil_cb_show_fw_preamble()
Dcmd_vbutil_key.c122 printf("Key Version: %" PRIu64 "\n", pubkey->key_version); in Unpack()
Dcmd_vbutil_keyblock.c206 printf("Data key version: %" PRIu64 "\n", data_key->key_version); in Unpack()
/external/vboot_reference/firmware/lib20/include/
Dvb2_struct.h35 uint32_t key_version; member
/external/vboot_reference/firmware/lib21/include/
Dvb2_struct.h138 uint32_t key_version; member
/external/vboot_reference/firmware/include/
Dvboot_struct.h22 uint64_t key_version; member
/external/vboot_reference/host/lib21/
Dhost_key.c484 key.key_version = pubk->version; in vb2_public_key_pack()