Home
last modified time | relevance | path

Searched refs:kernel_subkey (Results 1 – 25 of 30) sorted by relevance

12

/external/vboot_reference/futility/
Dcmd_vbutil_firmware.c85 VbPublicKey *kernel_subkey; in Vblock() local
122 kernel_subkey = PublicKeyRead(kernelkey_file); in Vblock()
123 if (!kernel_subkey) { in Vblock()
145 kernel_subkey, in Vblock()
180 VbPublicKey *kernel_subkey; in Verify() local
261 kernel_subkey = &preamble->kernel_subkey; in Verify()
263 kernel_subkey->algorithm, in Verify()
264 (kernel_subkey->algorithm < kNumAlgorithms ? in Verify()
265 algo_strings[kernel_subkey->algorithm] : "(invalid)")); in Verify()
267 kernel_subkey->key_version); in Verify()
[all …]
Dcmd_sign.c41 VbPublicKey *kernel_subkey; member
348 option.kernel_subkey, in futil_cb_sign_raw_firmware()
395 option.kernel_subkey, in write_new_preamble()
733 option.kernel_subkey = PublicKeyRead(optarg); in do_sign()
734 if (!option.kernel_subkey) { in do_sign()
911 else if (option.kernel_subkey || option.fv_specified) in do_sign()
964 errorcnt += no_opt_if(!option.kernel_subkey, "kernelkey"); in do_sign()
975 errorcnt += no_opt_if(!option.kernel_subkey, "kernelkey"); in do_sign()
1072 if (option.kernel_subkey) in do_sign()
1073 free(option.kernel_subkey); in do_sign()
Dcmd_show.c351 VbPublicKey *kernel_subkey = &preamble->kernel_subkey; in futil_cb_show_fw_preamble() local
353 kernel_subkey->algorithm, in futil_cb_show_fw_preamble()
354 (kernel_subkey->algorithm < kNumAlgorithms ? in futil_cb_show_fw_preamble()
355 algo_strings[kernel_subkey->algorithm] : "(invalid)")); in futil_cb_show_fw_preamble()
356 if (kernel_subkey->algorithm >= kNumAlgorithms) in futil_cb_show_fw_preamble()
359 kernel_subkey->key_version); in futil_cb_show_fw_preamble()
361 PrintPubKeySha1Sum(kernel_subkey); in futil_cb_show_fw_preamble()
/external/vboot_reference/host/lib/
Dhost_common.c19 const VbPublicKey *kernel_subkey, in CreateFirmwarePreamble() argument
26 kernel_subkey->key_size + in CreateFirmwarePreamble()
41 body_sig_dest = kernel_subkey_dest + kernel_subkey->key_size; in CreateFirmwarePreamble()
51 PublicKeyInit(&h->kernel_subkey, kernel_subkey_dest, in CreateFirmwarePreamble()
52 kernel_subkey->key_size); in CreateFirmwarePreamble()
53 PublicKeyCopy(&h->kernel_subkey, kernel_subkey); in CreateFirmwarePreamble()
/external/vboot_reference/tests/futility/
Dtest_show_kernel.sh31 --signprivate ${DEVKEYS}/kernel_subkey.vbprivk
48 --publickey ${DEVKEYS}/kernel_subkey.vbpubk \
57 --publickey ${DEVKEYS}/kernel_subkey.vbpubk \
68 --publickey ${DEVKEYS}/kernel_subkey.vbpubk \
Dtest_sign_kernel.sh83 --signpubkey ${DEVKEYS}/kernel_subkey.vbpubk > ${TMP}.verify3
98 --signpubkey ${DEVKEYS}/kernel_subkey.vbpubk > ${TMP}.verify4
119 --signpubkey ${DEVKEYS}/kernel_subkey.vbpubk > ${TMP}.verify5
187 --publickey ${DEVKEYS}/kernel_subkey.vbpubk \
212 --publickey ${DEVKEYS}/kernel_subkey.vbpubk \
245 --signpubkey ${DEVKEYS}/kernel_subkey.vbpubk > ${TMP}.verify6.old
263 --signpubkey ${DEVKEYS}/kernel_subkey.vbpubk > ${TMP}.verify6.new1
288 --signpubkey ${DEVKEYS}/kernel_subkey.vbpubk > ${TMP}.verify6.new2
Dtest_sign_fw_main.sh23 --kernelkey ${KEYDIR}/kernel_subkey.vbpubk \
35 --kernelkey ${KEYDIR}/kernel_subkey.vbpubk \
Dtest_sign_firmware.sh81 -k ${KEYDIR}/kernel_subkey.vbpubk \
152 -k ${KEYDIR}/kernel_subkey.vbpubk \
170 -k ${KEYDIR}/kernel_subkey.vbpubk \
Dtest_show_vs_verify.sh59 --publickey ${DEVKEYS}/kernel_subkey.vbpubk
67 --publickey ${DEVKEYS}/kernel_subkey.vbpubk ; then false ; fi
/external/vboot_reference/tests/
Dload_kernel_tests.sh38 --signprivate ${SCRIPT_DIR}/devkeys/kernel_subkey.vbprivk
56 --signpubkey ${SCRIPT_DIR}/devkeys/kernel_subkey.vbpubk
73 ${SCRIPT_DIR}/devkeys/kernel_subkey.vbpubk
Dvboot_firmware_tests.c71 PublicKeyInit(&mpreamble[i].kernel_subkey, in ResetMocks()
73 mpreamble[i].kernel_subkey.algorithm = 7 + i; in ResetMocks()
345 TEST_EQ(shared->kernel_subkey.algorithm, 7, "Copy kernel subkey"); in LoadFirmwareTest()
358 TEST_EQ(shared->kernel_subkey.algorithm, 7, "Copy kernel subkey"); in LoadFirmwareTest()
370 TEST_EQ(shared->kernel_subkey.algorithm, 8, "Copy kernel subkey"); in LoadFirmwareTest()
388 TEST_EQ(shared->kernel_subkey.algorithm, 7, "Copy kernel subkey"); in LoadFirmwareTest()
438 mpreamble[0].kernel_subkey.key_size = VB_SHARED_DATA_MIN_SIZE + 1; in LoadFirmwareTest()
Dvboot_common3_tests.c168 const VbPublicKey *kernel_subkey) in VerifyFirmwarePreambleTest() argument
179 hdr = CreateFirmwarePreamble(0x1234, kernel_subkey, body_sig, in VerifyFirmwarePreambleTest()
235 GetPublicKeyData(&h->kernel_subkey)[0] ^= 0x34; in VerifyFirmwarePreambleTest()
242 h->kernel_subkey.key_offset = 0; in VerifyFirmwarePreambleTest()
243 h->kernel_subkey.key_size = 0; in VerifyFirmwarePreambleTest()
251 h->kernel_subkey.key_offset = hsize; in VerifyFirmwarePreambleTest()
Dvb20_common3_tests.c174 const VbPublicKey *kernel_subkey) in test_verify_fw_preamble() argument
194 CreateFirmwarePreamble(0x1234, kernel_subkey, body_sig, in test_verify_fw_preamble()
266 ((uint8_t *)vb2_packed_key_data(&h->kernel_subkey))[0] ^= 0x34; in test_verify_fw_preamble()
274 h->kernel_subkey.key_offset = 0; in test_verify_fw_preamble()
275 h->kernel_subkey.key_size = 0; in test_verify_fw_preamble()
284 h->kernel_subkey.key_offset = hsize; in test_verify_fw_preamble()
/external/vboot_reference/firmware/lib/
Dvboot_kernel.c38 VbPublicKey* kernel_subkey = NULL; in LoadKernel() local
108 retval = VbGbbReadRecoveryKey(cparams, &kernel_subkey); in LoadKernel()
114 kernel_subkey = &shared->kernel_subkey; in LoadKernel()
194 kernel_subkey, 0)) { in LoadKernel()
219 kernel_subkey, 1)) { in LoadKernel()
542 VbExFree(kernel_subkey); in LoadKernel()
/external/vboot_reference/scripts/keygeneration/
Dincrement_kernel_subkey.sh38 make_pair kernel_subkey ${KERNEL_SUBKEY_ALGOID} ${new_firm_ver}
39 make_keyblock kernel $KERNEL_KEYBLOCK_MODE kernel_data_key kernel_subkey
Dincrement_kernel_subkey_and_key.sh42 make_pair kernel_subkey ${KERNEL_SUBKEY_ALGOID} ${new_firm_ver}
44 make_keyblock kernel ${KERNEL_KEYBLOCK_MODE} kernel_data_key kernel_subkey
Dcreate_new_keys.sh102 make_pair kernel_subkey ${KERNEL_SUBKEY_ALGOID} ${ksubkey_version}
125 make_keyblock kernel ${KERNEL_KEYBLOCK_MODE} kernel_data_key kernel_subkey
Dcommon.sh170 mv --no-clobber kernel_subkey.{vbprivk,"v${subkey_ver}.vbprivk"}
171 mv --no-clobber kernel_subkey.{vbpubk,"v${subkey_ver}.vbpubk"}
Dincrement_kernel_data_key.sh39 make_keyblock kernel ${KERNEL_KEYBLOCK_MODE} kernel_data_key kernel_subkey
/external/vboot_reference/firmware/include/
Dvboot_struct.h121 VbPublicKey kernel_subkey; member
163 VbPublicKey kernel_subkey; member
475 VbPublicKey kernel_subkey; member
/external/autotest/server/site_tests/firmware_UpdateKernelSubkeyVersion/files/
Dcommon.sh169 mv --no-clobber kernel_subkey.{vbprivk,"v${subkey_ver}.vbprivk"}
170 mv --no-clobber kernel_subkey.{vbpubk,"v${subkey_ver}.vbpubk"}
/external/autotest/server/site_tests/firmware_UpdateFirmwareDataKeyVersion/files/
Dcommon.sh169 mv --no-clobber kernel_subkey.{vbprivk,"v${subkey_ver}.vbprivk"}
170 mv --no-clobber kernel_subkey.{vbpubk,"v${subkey_ver}.vbpubk"}
/external/autotest/server/site_tests/firmware_UpdateKernelDataKeyVersion/files/
Dcommon.sh169 mv --no-clobber kernel_subkey.{vbprivk,"v${subkey_ver}.vbprivk"}
170 mv --no-clobber kernel_subkey.{vbpubk,"v${subkey_ver}.vbpubk"}
/external/vboot_reference/host/lib/include/
Dhost_common.h35 const VbPublicKey *kernel_subkey,
/external/vboot_reference/firmware/lib20/include/
Dvb2_struct.h162 struct vb2_packed_key kernel_subkey; member

12