Lines Matching full:wrapped
91 "Support wrapped keys instead of raw keys, if available on the platform");
141 * advertise support for raw keys or wrapped keys, HWKM cannot be used in qcom_ice_check_supported()
148 dev_info(dev, "Using HWKM. Supporting wrapped keys only.\n"); in qcom_ice_check_supported()
236 * When ICE is in HWKM mode, it only supports wrapped keys. in qcom_ice_hwkm_init()
316 dev_err_ratelimited(dev, "Got wrapped key when not using HWKM\n"); in qcom_ice_program_wrapped_key()
327 /* Call into TrustZone to program the wrapped key using HWKM. */ in qcom_ice_program_wrapped_key()
415 * qcom_ice_derive_sw_secret() - Derive software secret from wrapped key
417 * @eph_key: an ephemerally-wrapped key
421 * Use HWKM to derive the "software secret" from a hardware-wrapped key that is
422 * given in ephemerally-wrapped form.
424 * Return: 0 on success; -EBADMSG if the given ephemerally-wrapped key is
441 * qcom_ice_generate_key() - Generate a wrapped key for inline encryption
443 * @lt_key: output buffer for the long-term wrapped key
445 * Use HWKM to generate a new key and return it as a long-term wrapped key.
447 * Return: the size of the resulting wrapped key on success; -errno on failure.
463 * qcom_ice_prepare_key() - Prepare a wrapped key for inline encryption
465 * @lt_key: a long-term wrapped key
467 * @eph_key: output buffer for the ephemerally-wrapped key
469 * Use HWKM to re-wrap a long-term wrapped key with the per-boot ephemeral key.
471 * Return: the size of the resulting wrapped key on success; -EBADMSG if the
472 * given long-term wrapped key is invalid; or another -errno value.
496 * @lt_key: output buffer for the long-term wrapped key
498 * Use HWKM to import a raw key and return it as a long-term wrapped key.
500 * Return: the size of the resulting wrapped key on success; -errno on failure.