Skip to content

hw/virtio-crypto: enforce max akcipher key length

helei qemu-devel 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/21 patch 0 repliesNew
  2. v2 posting 1/21 patch 1 replySuperseded
  3. v11 patch 1 replySuperseded

Changes in v2 from the cover letter

- dropped the hardcoded limit mirroring the linux kernel.
- enforced the global max_size boundary specifically for akcipher session creation

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1hw/virtio-crypto: enforce max akcipher key lengthhw/virtio/virtio-crypto.c+6 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH RESEND v2 0/1] hw/virtio-crypto: enforce max akcipher key length

The virtio-crypto spec does not dictate a maximum length limit for asymmetric cipher (akcipher) keys. We added a hard limit which mirrors the linux kernels's internal limit for akcipher keys (see keyctl framework and the add_key syscall).
Maybe we should update the virtio-spec and add a max_akcipher_key_len field for virtio crypto devices.

v2:
- dropped the hardcoded limit mirroring the linux kernel.
- enforced the global max_size boundary specifically for akcipher session creation

helei (1):
hw/virtio-crypto: enforce max akcipher key length

 hw/virtio/virtio-crypto.c | 6 ++++++
 1 file changed, 6 insertions(+)
Signature · 1 line
2.43.0