Home
last modified time | relevance | path

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

12

/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()
/external/autotest/server/site_tests/firmware_UpdateFirmwareDataKeyVersion/files/
Dcommon.sh59 local key_version=${3:-1}
62 echo "creating $base keypair (version = $key_version)..."
76 --version "${key_version}" \
/external/autotest/server/site_tests/firmware_UpdateKernelSubkeyVersion/files/
Dcommon.sh59 local key_version=${3:-1}
62 echo "creating $base keypair (version = $key_version)..."
76 --version "${key_version}" \
/external/autotest/server/site_tests/firmware_UpdateKernelDataKeyVersion/files/
Dcommon.sh59 local key_version=${3:-1}
62 echo "creating $base keypair (version = $key_version)..."
76 --version "${key_version}" \
/external/avb/test/
Davb_atx_validate_unittest.cc212 uint64_t key_version) override { in set_key_version() argument
213 ops_.set_key_version(rollback_index_location, key_version); in set_key_version()
342 metadata_.product_intermediate_key_certificate.signed_data.key_version); in TEST_F()
344 metadata_.product_signing_key_certificate.signed_data.key_version); in TEST_F()
478 metadata_.product_intermediate_key_certificate.signed_data.key_version ^= 1; in TEST_F()
510 metadata_.product_intermediate_key_certificate.signed_data.key_version + in TEST_F()
555 metadata_.product_signing_key_certificate.signed_data.key_version ^= 1; in TEST_F()
588 metadata_.product_signing_key_certificate.signed_data.key_version + in TEST_F()
774 .key_version ^= 1; in TEST_F()
813 .key_version + in TEST_F()
[all …]
Dfake_avb_ops.h115 uint64_t key_version) = 0;
292 uint64_t key_version) override;
447 uint64_t key_version) override { in set_key_version() argument
448 ops_.set_key_version(rollback_index_location, key_version); in set_key_version()
Davb_atx_slot_verify_unittest.cc91 uint64_t key_version) override { in set_key_version() argument
93 return ops_.set_key_version(rollback_index_location, key_version); in set_key_version()
/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()
/external/avb/examples/things/
Davb_atx_slot_verify.c62 uint64_t key_version) { in save_key_version_to_context() argument
67 context->key_version_value[offset] = key_version; in save_key_version_to_context()
/external/avb/libavb_atx/
Davb_atx_validate.c109 if (certificate->signed_data.key_version < minimum_key_version) { in verify_certificate()
279 metadata.product_intermediate_key_certificate.signed_data.key_version); in avb_atx_validate_vbmeta_public_key()
283 metadata.product_signing_key_certificate.signed_data.key_version); in avb_atx_validate_vbmeta_public_key()
Davb_atx_ops.h68 uint64_t key_version);
Davb_atx_types.h61 uint64_t key_version; member
/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()
/external/vboot_reference/firmware/lib20/include/
Dvb2_struct.h35 uint32_t key_version; member

12