All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] hw/virtio-crypto: add akcipher keylen validation
@ 2026-06-06  7:47 helei
  2026-06-06  7:47 ` [PATCH] hw/virtio-crypto: enforce max akcipher key length helei
  2026-06-06  8:37 ` [PATCH 0/1] hw/virtio-crypto: add akcipher keylen validation Michael S. Tsirkin
  0 siblings, 2 replies; 5+ messages in thread
From: helei @ 2026-06-06  7:47 UTC (permalink / raw)
  To: qemu-devel; +Cc: arei.gonglei, zhenwei.pi, mst, helei

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.

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

 hw/virtio/virtio-crypto.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

-- 
2.43.0



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-06-07  0:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-06  7:47 [PATCH 0/1] hw/virtio-crypto: add akcipher keylen validation helei
2026-06-06  7:47 ` [PATCH] hw/virtio-crypto: enforce max akcipher key length helei
2026-06-06  8:59   ` Manos Pitsidianakis
2026-06-06  8:37 ` [PATCH 0/1] hw/virtio-crypto: add akcipher keylen validation Michael S. Tsirkin
2026-06-07  0:15   ` helei

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.