public inbox for io-uring@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Biggers <ebiggers@kernel.org>
To: David Howells <dhowells@redhat.com>
Cc: Jens Axboe <axboe@kernel.dk>,
	io-uring@vger.kernel.org, linux-crypto@vger.kernel.org
Subject: Re: io_uring and crypto
Date: Tue, 7 Oct 2025 17:13:31 +0000	[thread overview]
Message-ID: <20251007171331.GB2094443@google.com> (raw)
In-Reply-To: <4016104.1759857082@warthog.procyon.org.uk>

On Tue, Oct 07, 2025 at 06:11:22PM +0100, David Howells wrote:
> Hi Jens,
> 
> I was wondering if it might be possible to adapt io_uring to make crypto
> requests as io_uring primitives rather than just having io_uring call sendmsg
> and recvmsg on an AF_ALG socket.
> 
> The reason I think this might make sense is that for the certain crypto ops we
> need to pass two buffers, one input and one output (encrypt, decrypt, sign) or
> two input (verify) and this could directly translate to an async crypto
> request.
> 
> Or possibly we should have a sendrecv socket call (RPC sort of thing) and have
> io_uring drive that.
> 
> The tricky bit is that it would require two buffers and io_uring seems geared
> around one.
> 
> David

What problem are you trying to solve that can't be solved with a
userspace crypto library?

- Eric

  reply	other threads:[~2025-10-07 17:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-07 17:11 io_uring and crypto David Howells
2025-10-07 17:13 ` Eric Biggers [this message]
2025-10-07 17:27 ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251007171331.GB2094443@google.com \
    --to=ebiggers@kernel.org \
    --cc=axboe@kernel.dk \
    --cc=dhowells@redhat.com \
    --cc=io-uring@vger.kernel.org \
    --cc=linux-crypto@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox