qcom_ice_import_key(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 basically
  • raw_key β€” the raw key to import πŸ”‘ the actual key, in the raw, coming in hot
  • raw_key_size β€” size of raw_key in bytes, fr fr you gotta tell it how big the key is
  • lt_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 πŸ’œ

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