| /linux/Documentation/block/ |
| H A D | inline-encryption.rst | 81 hardware-wrapped); the actual bytes of the key; the size of the key; the 307 Hardware-wrapped keys 337 Hardware-wrapped keys are a feature of inline encryption hardware that is 384 made their hardware support *hardware-wrapped keys*. Hardware-wrapped keys 389 (We refer to them as "hardware-wrapped keys" rather than simply "wrapped keys" 390 to add some clarity in cases where there could be other types of wrapped keys, 393 The key which wraps (encrypts) hardware-wrapped keys is a hardware-internal key 396 wrapped form of the key is what is initially unlocked, but it is erased from 397 memory as soon as it is converted into an ephemerally-wrapped key. In-use 398 hardware-wrapped keys are always ephemerally-wrapped, not long-term wrapped. [all …]
|
| /linux/drivers/soc/qcom/ |
| H A D | ice.c | 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. [all …]
|
| /linux/tools/perf/arch/arm64/util/ |
| H A D | arm-spe.c | 40 bool *wrapped; member 498 bool *wrapped; in arm_spe_alloc_wrapped_array() local 508 * Make ptr->wrapped as big as idx. in arm_spe_alloc_wrapped_array() 515 wrapped = reallocarray(ptr->wrapped, new_cnt, sizeof(bool)); in arm_spe_alloc_wrapped_array() 516 if (!wrapped) in arm_spe_alloc_wrapped_array() 523 wrapped[i] = false; in arm_spe_alloc_wrapped_array() 526 ptr->wrapped = wrapped; in arm_spe_alloc_wrapped_array() 541 * wrapped around. Otherwise, continue to detect if head might have wrapped. in arm_spe_buffer_has_wrapped() 554 * head has numerically wrapped around. To find we need to check if we have data at the in arm_spe_buffer_has_wrapped() 573 * numerically wrapped around at least once. in arm_spe_buffer_has_wrapped() [all …]
|
| /linux/include/linux/ |
| H A D | blk-crypto-profile.h | 62 * @derive_sw_secret: Derive the software secret from a hardware-wrapped 63 * key in ephemerally-wrapped form. 76 * @import_key: Create a hardware-wrapped key by importing a raw key. 81 * On success, must write the new key in long-term wrapped form to 90 * @generate_key: Generate a hardware-wrapped key. 95 * On success, must write the new key in long-term wrapped form to 103 * @prepare_key: Prepare a hardware-wrapped key to be used. 105 * Prepare a hardware-wrapped key to be used by converting it from 106 * long-term wrapped form to ephemerally-wrapped form. This only needs 109 * On success, must write the key in ephemerally-wrapped form to
|
| H A D | blk-crypto.h | 34 * Hardware-wrapped keys. These keys are only present in kernel memory 35 * in ephemerally-wrapped form, and they can only be unwrapped by 36 * dedicated hardware. For details, see the "Hardware-wrapped keys" 46 * The maximum hardware-wrapped key size depends on the hardware's key wrapping 61 * Size of the "software secret" which can be derived from a hardware-wrapped 79 * @key_type: the type of this key -- either raw or hardware-wrapped 94 * crypto mode, but the size of a hardware-wrapped key can vary.
|
| /linux/rust/kernel/ |
| H A D | revocable.rs | 21 /// [`RevocableGuard`] are dropped), the wrapped object is also dropped. 73 // SAFETY: `Revocable` is `Send` if the wrapped object is also `Send`. This is because while the 75 // this isn't supported by the wrapped object. 78 // SAFETY: `Revocable` is `Sync` if the wrapped object is both `Send` and `Sync`. We require `Send` 79 // from the wrapped object as well because of `Revocable::revoke`, which can trigger the `Drop` 80 // implementation of the wrapped object from an arbitrary thread. 92 /// Tries to access the revocable wrapped object. 110 /// Tries to access the revocable wrapped object. 128 /// Tries to access the wrapped object and run a closure on it while the guard is held. 136 /// the result of the closure wrapped in [`Some`]. If the closure returns a [`Result`] then the [all …]
|
| /linux/drivers/net/ethernet/huawei/hinic/ |
| H A D | hinic_hw_cmdq.c | 177 static void cmdq_prepare_wqe_ctrl(struct hinic_cmdq_wqe *wqe, int wrapped, in cmdq_prepare_wqe_ctrl() argument 216 HINIC_CMDQ_WQE_HEADER_SET(wrapped, TOGGLED_WRAPPED); in cmdq_prepare_wqe_ctrl() 246 struct hinic_cmdq_buf *buf_out, int wrapped, in cmdq_set_lcmd_wqe() argument 264 cmdq_prepare_wqe_ctrl(wqe, wrapped, ack_type, mod, cmd, in cmdq_set_lcmd_wqe() 274 struct hinic_cmdq_buf *buf_out, int wrapped, in cmdq_set_direct_wqe() argument 295 cmdq_prepare_wqe_ctrl(wqe, wrapped, ack_type, mod, cmd, prod_idx, in cmdq_set_direct_wqe() 342 int errcode, wrapped, num_wqebbs; in cmdq_sync_cmd_direct_resp() local 359 wrapped = cmdq->wrapped; in cmdq_sync_cmd_direct_resp() 364 cmdq->wrapped = !cmdq->wrapped; in cmdq_sync_cmd_direct_resp() 374 wrapped, HINIC_CMD_ACK_TYPE_CMDQ, mod, cmd, in cmdq_sync_cmd_direct_resp() [all …]
|
| H A D | hinic_hw_eqs.c | 201 HINIC_EQ_CI_CLEAR(val, WRAPPED) & in eq_update_ci() 206 HINIC_EQ_CI_SET(eq->wrapped, WRAPPED) | in eq_update_ci() 236 /* HW toggles the wrapped bit, when it adds eq element */ in aeq_irq_handler() 237 if (HINIC_EQ_ELEM_DESC_GET(aeqe_desc, WRAPPED) == eq->wrapped) in aeq_irq_handler() 272 eq->wrapped = !eq->wrapped; in aeq_irq_handler() 326 /* HW toggles the wrapped bit, when it adds eq element event */ in ceq_irq_handler() 327 if (HINIC_EQ_ELEM_DESC_GET(ceqe, WRAPPED) == eq->wrapped) in ceq_irq_handler() 336 eq->wrapped = !eq->wrapped; in ceq_irq_handler() 669 init_val = HINIC_EQ_ELEM_DESC_SET(eq->wrapped, WRAPPED); in alloc_eq_pages() 740 eq->wrapped = 0; in init_eq() [all …]
|
| /linux/include/uapi/linux/ |
| H A D | blk-crypto.h | 12 /* Long-term wrapped key blob (output) */ 19 /* Long-term wrapped key blob (output) */ 26 /* Long-term wrapped key blob (input) */ 29 /* Ephemerally-wrapped key blob (output) */
|
| H A D | psp-sev.h | 238 * @vlek_wrapped_version: version of wrapped VLEK hashstick (Must be 0h) 240 * @vlek_wrapped_address: address of a wrapped VLEK hashstick 251 * struct sev_user_data_snp_vlek_wrapped_vlek_hashstick - Wrapped VLEK data
|
| /linux/Documentation/filesystems/ |
| H A D | fscrypt.rst | 105 Unless `hardware-wrapped keys`_ are used, an attacker who gains the 112 However, if hardware-wrapped keys are used, then the fscrypt master 164 However, if `hardware-wrapped keys`_ are used, such attackers will be 198 hardware-wrapped keys. The use of hardware-wrapped keys modifies the 199 key hierarchy slightly. For details, see `Hardware-wrapped keys`_. 277 Key derivation was chosen over key wrapping because wrapped keys would 283 the master keys may be wrapped in userspace, e.g. as is done by the 925 hardware-wrapped key. See `Hardware-wrapped keys`_. This flag 932 will contain a wrapped key, not a raw key. 956 - ``EBADMSG``: invalid hardware-wrapped key [all …]
|
| /linux/tools/perf/arch/x86/util/ |
| H A D | intel-bts.c | 36 bool wrapped; member 371 bool wrapped; in intel_bts_find_snapshot() local 383 wrapped = btsr->snapshot_refs[idx].wrapped; in intel_bts_find_snapshot() 384 if (!wrapped && intel_bts_first_wrap((u64 *)data, mm->len)) { in intel_bts_find_snapshot() 385 btsr->snapshot_refs[idx].wrapped = true; in intel_bts_find_snapshot() 386 wrapped = true; in intel_bts_find_snapshot() 395 if (wrapped) { in intel_bts_find_snapshot() 408 __func__, wrapped ? "" : "not ", (size_t)*old, (size_t)*head); in intel_bts_find_snapshot()
|
| H A D | intel-pt.c | 48 bool wrapped; member 1084 bool wrapped; in intel_pt_wrapped() local 1086 wrapped = intel_pt_compare_ref(ref->ref_buf, ref->ref_offset, in intel_pt_wrapped() 1093 return wrapped; in intel_pt_wrapped() 1119 bool wrapped; in intel_pt_find_snapshot() local 1141 wrapped = intel_pt_wrapped(ptr, idx, mm, data, *head); in intel_pt_find_snapshot() 1143 wrapped = ptr->snapshot_refs[idx].wrapped; in intel_pt_find_snapshot() 1144 if (!wrapped && intel_pt_first_wrap((u64 *)data, mm->len)) { in intel_pt_find_snapshot() 1145 ptr->snapshot_refs[idx].wrapped = true; in intel_pt_find_snapshot() 1146 wrapped = true; in intel_pt_find_snapshot() [all …]
|
| /linux/tools/perf/util/intel-pt-decoder/ |
| H A D | intel-pt-log.c | 31 bool wrapped; member 114 b->wrapped = true; in log_buf__write() 172 fflush(f); /* Could update b->head and b->wrapped */ in log_buf__dump() 174 if (b->wrapped) { in log_buf__dump() 182 b->wrapped = false; in log_buf__dump()
|
| /linux/include/linux/platform_data/x86/ |
| H A D | nvidia-wmi-ec-backlight.h | 23 * enum wmi_brightness_mode - Operation mode for WMI-wrapped method 53 * struct wmi_brightness_args - arguments for the WMI-wrapped ACPI method 65 * wrapped by WMI. The value passed in to @val or returned by @ret will be a
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | pio_copy.c | 102 /* at this point we have wrapped if we are going to wrap */ in pio_copy() 333 /* at this point we have wrapped if we are going to wrap */ in seg_pio_copy_start() 446 * the else. If we have wrapped, we cannot still be within the in mid_copy_mix() 448 * we cannot have wrapped. We do the wrap check first as that in mid_copy_mix() 451 /* adjust if we have wrapped */ in mid_copy_mix() 619 * true, hence the else. If we have wrapped, we in seg_pio_copy_mid() 622 * cannot have wrapped. We do the wrap check first in seg_pio_copy_mid() 625 /* adjust if we've wrapped */ in seg_pio_copy_mid() 673 * else. If we have wrapped, we cannot still be within the first in seg_pio_copy_end() 675 * cannot have wrapped. We do the wrap check first as that is in seg_pio_copy_end() [all …]
|
| /linux/drivers/net/fddi/skfp/ |
| H A D | hwt.c | 223 int wrapped ; in hwt_wait_time() local 244 wrapped = 0 ; in hwt_wait_time() 246 if (!wrapped) { in hwt_wait_time() 249 wrapped = 1 ; in hwt_wait_time() 254 wrapped = 0 ; in hwt_wait_time()
|
| /linux/block/ |
| H A D | blk-crypto-profile.c | 468 * blk_crypto_derive_sw_secret() - Derive software secret from wrapped key 469 * @bdev: a block device that supports hardware-wrapped keys 470 * @eph_key: a hardware-wrapped key in ephemerally-wrapped form 474 * Given a hardware-wrapped key in ephemerally-wrapped form (the same form that 481 * hardware-wrapped keys, -EBADMSG if the key isn't a valid 482 * ephemerally-wrapped key, or another -errno code.
|
| H A D | blk-crypto.c | 186 /* If the DUN wrapped through 0, don't treat it as contiguous. */ in bio_crypt_dun_is_contiguous() 330 * @key_type: type of the key -- either raw or hardware-wrapped 417 * Return: 0 on success; -EOPNOTSUPP if the key is wrapped but the hardware does 418 * not support wrapped keys; -ENOPKG if the key is a raw key but the 429 pr_warn_ratelimited("%pg: no support for wrapped keys\n", bdev); in blk_crypto_start_using_key()
|
| /linux/sound/pci/cs46xx/ |
| H A D | dsp_spos.h | 176 u8 wrapped; in _wrap_all_bits() local 179 wrapped = in _wrap_all_bits() 189 return wrapped; in _wrap_all_bits()
|
| /linux/arch/hexagon/kernel/ |
| H A D | irq_cpu.c | 56 * into different systems/platforms, it is typically wrapped by 63 * The first-level interrupt controller is wrapped by the VM, which
|
| /linux/drivers/gpu/drm/bridge/ |
| H A D | panel.c | 240 * @panel: The drm_panel being wrapped. Must be non-NULL. 273 * @panel: The drm_panel being wrapped. Must be non-NULL. 371 * @panel: The drm_panel being wrapped. Must be non-NULL. 391 * @panel: The drm_panel being wrapped. Must be non-NULL. 438 * @panel: The drm_panel being wrapped. Must be non-NULL.
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-driver-typec-displayport | 10 with the active one wrapped in square brackets. 32 listed as space separated list with the active one wrapped in
|
| /linux/kernel/irq/ |
| H A D | timings.c | 276 * used as we wrapped. The index begins from zero when we did not 407 * 'count' will depends if the circular buffer wrapped or not in __irq_timings_next_event() 518 * - know if the index in the table wrapped up: 521 * last busy/idle cycle, the index wrapped up and we have to 559 * otherwise the array size is used as we wrapped. The index in irq_timings_next_event() 855 * Compute the first elements values after the index wrapped in irq_timings_test_irqts() 904 * full, full, wrapped with the cursor at the boundaries, in irq_timings_irqts_selftest() 905 * wrapped several times, etc ... in irq_timings_irqts_selftest()
|
| /linux/arch/powerpc/platforms/powernv/ |
| H A D | opal-msglog.c | 52 /* When the buffer has wrapped, read from the out_pos marker to the end in memcons_copy() 53 * of the buffer, and then read the remaining data as in the un-wrapped in memcons_copy()
|