qcom_ice_import_key(9)
π qcom_ice_import_key(9) π
okay so bestie, welcome to the Kernel API Manual page for qcom_ice_import_key(9) β yes that's the whole title, yes it's a lot, stay with me π«Ά
β¨ NAME β¨
qcom_ice_import_key β Import a raw key for inline encryption π
πΈ SYNOPSIS πΈ
int qcom_ice_import_key (struct qcom_ice *ice , const u8 *raw_key ,
size_t raw_key_size , u8 lt_key[BLK_CRYPTO_MAX_HW_WRAPPED_KEY_SIZE] );
like, that's the whole signature, no cap β¨
π ARGUMENTS π
iceβ ICE driver data π that's your driver's whole situation, the context basicallyraw_keyβ the raw key to import π the actual key, in the raw, coming in hotraw_key_sizeβ size ofraw_keyin bytes, fr fr you gotta tell it how big the key islt_keyβ output buffer for the long-term wrapped key π this is where the result goes, it's an output buffer so likeβ¦ it gets filled in
π¦ DESCRIPTION π¦
Use HWKM to import a raw key and return it as a long-term wrapped key β that's the whole vibe: raw key goes in, long-term wrapped key comes out. iconic behavior honestly.
π₯ RETURN π₯
the size of the resulting wrapped key on success; -errno on failure π so on the good path you get a size (a number, a positive one, we love that), and on the bad path you get a negative errno, as one does π
π 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_prepare_key(9)of_qcom_ice_get(9)devm_of_qcom_ice_get(9)
like a whole little friend group of functions, go read them too π§
and that's the page!! this little icon lives in ./drivers/soc/qcom, and the version stamp says October 2026 β mwah, bye bestie π
ππ
π¦ 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