linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 00/10] crypto: virtio: Add ecb aes algo support
@ 2025-12-09  2:22 Bibo Mao
  2025-12-09  2:22 ` [PATCH v3 01/10] crypto: virtio: Add spinlock protection with virtqueue notification Bibo Mao
                   ` (9 more replies)
  0 siblings, 10 replies; 17+ messages in thread
From: Bibo Mao @ 2025-12-09  2:22 UTC (permalink / raw)
  To: Gonglei, Michael S . Tsirkin, Jason Wang; +Cc: kvm, linux-crypto

Here add ecb aes algo support with virtio crypto device, also it fixes
one problem when multiple processes execute cipher operation. Most of work
is code clean up, such as use common APIs for block size and iv size etc.

---
v2 ... v3:
  1. Remove NULL checking with req_data where kfree() is called, since
     NULL pointer is workable with kfree() API.
  2. In patch 7 and patch 8, req_data and IV buffer which are preallocated
     are sensitive data, memzero_explicit() is used even on error path
     handling.
  3. Remove duplicated virtqueue_kick() in new patch 2, since it is
     already called in previous __virtio_crypto_skcipher_do_req().

v1 ... v2:
  1. Add Fixes tag with patch 1.
  2. Add new patch 2 - patch 9 to add ecb aes algo support.
---
Bibo Mao (10):
  crypto: virtio: Add spinlock protection with virtqueue notification
  crypto: virtio: Remove duplicated virtqueue_kick in
    virtio_crypto_skcipher_crypt_req
  crypto: virtio: Replace package id with numa node id
  crypto: virtio: Add algo pointer in virtio_crypto_skcipher_ctx
  crypto: virtio: Use generic API aes_check_keylen()
  crypto: virtio: Remove AES specified marcro AES_BLOCK_SIZE
  crypto: virtio: Add req_data with structure virtio_crypto_sym_request
  crypto: virtio: Add IV buffer in structure virtio_crypto_sym_request
  crypto: virtio: Add skcipher support without IV
  crypto: virtio: Add ecb aes algo support

 drivers/crypto/virtio/virtio_crypto_common.h  |   2 +-
 drivers/crypto/virtio/virtio_crypto_core.c    |   5 +
 .../virtio/virtio_crypto_skcipher_algs.c      | 187 ++++++++++--------
 3 files changed, 112 insertions(+), 82 deletions(-)


base-commit: 67a454e6b1c604555c04501c77b7fedc5d98a779
-- 
2.39.3


^ permalink raw reply	[flat|nested] 17+ messages in thread
[parent not found: <20251209015951.4174743-1-maobibo@loongson.cn>]

end of thread, other threads:[~2025-12-11  1:48 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-09  2:22 [PATCH v3 00/10] crypto: virtio: Add ecb aes algo support Bibo Mao
2025-12-09  2:22 ` [PATCH v3 01/10] crypto: virtio: Add spinlock protection with virtqueue notification Bibo Mao
2025-12-09  4:32   ` Jason Wang
2025-12-09  2:22 ` [PATCH v3 02/10] crypto: virtio: Remove duplicated virtqueue_kick in virtio_crypto_skcipher_crypt_req Bibo Mao
2025-12-09  2:22 ` [PATCH v3 03/10] crypto: virtio: Replace package id with numa node id Bibo Mao
2025-12-09  2:22 ` [PATCH v3 04/10] crypto: virtio: Add algo pointer in virtio_crypto_skcipher_ctx Bibo Mao
2025-12-09  2:22 ` [PATCH v3 05/10] crypto: virtio: Use generic API aes_check_keylen() Bibo Mao
2025-12-09  2:22 ` [PATCH v3 06/10] crypto: virtio: Remove AES specified marcro AES_BLOCK_SIZE Bibo Mao
2025-12-09  2:22 ` [PATCH v3 07/10] crypto: virtio: Add req_data with structure virtio_crypto_sym_request Bibo Mao
2025-12-09  2:22 ` [PATCH v3 08/10] crypto: virtio: Add IV buffer in " Bibo Mao
2025-12-09  2:22 ` [PATCH v3 09/10] crypto: virtio: Add skcipher support without IV Bibo Mao
2025-12-09  2:22 ` [PATCH v3 10/10] crypto: virtio: Add ecb aes algo support Bibo Mao
2025-12-09 23:25   ` Eric Biggers
2025-12-10  1:36     ` Bibo Mao
2025-12-10  1:45       ` Eric Biggers
2025-12-11  1:45         ` Bibo Mao
     [not found] <20251209015951.4174743-1-maobibo@loongson.cn>
2025-12-09  1:59 ` Bibo Mao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).