qcom_ice_prepare_key(9)
π§ qcom_ice_prepare_key(9) β like, the Kernel API Manual one, bestie
okay so bestie, gather round, because we're about to talk about qcom_ice_prepare_key and honestly? it's giving crypto glow-up energy. β¨ this is the page from the Kernel API Manual and yes we're doing the whole thing, no skips, no cap. π
π NAME π
qcom_ice_prepare_key β prepare a wrapped key for inline encryption. that's it, that's the whole vibe. it takes a key that's already wrapped and wraps it again. iconic behaviour honestly π¦
β¨ SYNOPSIS β¨
int qcom_ice_prepare_key (struct qcom_ice *ice , const u8 *lt_key ,
size_t lt_key_size , u8 eph_key[BLK_CRYPTO_MAX_HW_WRAPPED_KEY_SIZE] );
literally copy it exactly, don't @ me, this is the signature and she is not up for editing π₯
π ARGUMENTS π
iceβ the ICE driver data. ur main character struct, the whole context of the operation π«Άlt_keyβ a long-term wrapped key. the original key, pre-glowing-up.lt_key_sizeβ size oflt_key, in bytes. we measure things around here πeph_keyβ the output buffer for the ephemerally-wrapped key. yes it'su8 eph_key[BLK_CRYPTO_MAX_HW_WRAPPED_KEY_SIZE], yes that's the whole type, no we're not shortening it π
πΈ DESCRIPTION πΈ
so the actual tea: this one uses HWKM to re-wrap a long-term wrapped key with the per-boot ephemeral key.
that's the entire plot. key goes in long-term-wrapped, comes out ephemeral-wrapped. HWKM does the heavy lifting. no notes, she ate π
π RETURN π
- on success? you get the size of the resulting wrapped key. slay π
- if the long-term wrapped key you handed over is invalid? you get
-EBADMSG. not the vibe. π - anything else? another
-errnovalue, because the kernel loves a plot twist π
π SEE ALSO π
- Kernel file
./drivers/soc/qcom/ice.c qcom_ice_get_supported_key_type(9)qcom_ice_derive_sw_secret(9)qcom_ice_generate_key(9)qcom_ice_import_key(9)of_qcom_ice_get(9)devm_of_qcom_ice_get(9)
the whole squad fr fr, go read them too π§
and that's the page, bestie! π brought to you by ./drivers/soc/qcom, dated October 2026 β yes, the future, we're ahead of schedule π mwah, study ur ICE key wrapping, ily, bye! π¦β¨
π¦ 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