qcom_scm_prepare_ice_key(9)
π qcom_scm_prepare_ice_key(9) π
okay bestie, welcome to the Kernel API Manual page for qcom_scm_prepare_ice_key(9). This baddie is all about re-wrapping a key with the per-boot ephemeral key, and honestly? iconic. Let's get into the lore. β¨
πΈ NAME πΈ
qcom_scm_prepare_ice_key β Re-wrap a key with the per-boot ephemeral key.
β¨ SYNOPSIS β¨
int qcom_scm_prepare_ice_key (const u8 *lt_key , size_t lt_key_size , u8
*eph_key , size_t eph_key_size );
π ARGUMENTS π
lt_keyβ a long-term wrapped key. That's the key coming in, bestie. πlt_key_sizeβ size oflt_keyin bytes. Count 'em exactly.eph_keyβ output buffer for the ephemerally-wrapped key. This is where the re-wrapped result lands. πeph_key_sizeβ size ofeph_keyin bytes. Must be the exact wrapped key size used by the SoC. No vibes-based sizing, no rounding, literally the exact wrapped key size used by the SoC. π
π DESCRIPTION π
Given a long-term wrapped key, re-wrap it with the per-boot ephemeral key for added protection. The resulting key will only be valid for the current boot. So it's giving one-boot-only exclusivity β cute for security, tragic for reusing that key later. ππ
π₯ RETURN π₯
0 on success; -errno on failure. That's the whole mood. Slay. π
π¦ SEE ALSO π¦
go touch grass in these, bestie:
- Kernel file
./drivers/firmware/qcom/qcom_scm.c struct qcom_scm_qseecom_resp(9)qcom_scm_call(9)qcom_scm_call_atomic(9)qcom_scm_set_warm_boot_addr(9)qcom_scm_set_cold_boot_addr(9)qcom_scm_cpu_power_down(9)qcom_scm_is_pas_available(9)qcom_scm_restore_sec_cfg_available(9)qcom_scm_assign_mem(9)qcom_scm_ocmem_lock_available(9)qcom_scm_ocmem_lock(9)qcom_scm_ocmem_unlock(9)qcom_scm_ice_available(9)qcom_scm_ice_invalidate_key(9)qcom_scm_ice_set_key(9)qcom_scm_derive_sw_secret(9)qcom_scm_generate_ice_key(9)qcom_scm_import_ice_key(9)qcom_scm_hdcp_available(9)qcom_scm_hdcp_req(9)qcom_scm_qseecom_call(9)qcom_scm_qseecom_get_version(9)qcom_scm_qseecom_app_get_id(9)qcom_scm_qseecom_app_send(9)qcom_scm_qtee_invoke_smc(9)qcom_scm_qtee_callback_response(9)qcom_scm_is_available(9)
okay bye bestie π β source/version: ./drivers/firmware/qcom; date: October 2026. Periodt. π«Ά
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms