Linux-Crypto Archive mirror
 help / color / mirror / Atom feed
From: Herbert Xu <herbert@gondor.apana.org.au>
To: "Marek Behún" <kabel@kernel.org>
Cc: linux-crypto@vger.kernel.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: Re: Is akcipher ready for userspace?
Date: Fri, 10 May 2024 21:25:22 +0800	[thread overview]
Message-ID: <Zj4gQlfullfvK3q8@gondor.apana.org.au> (raw)
In-Reply-To: <20240510151434.739fd5c5@dellmb>

On Fri, May 10, 2024 at 03:14:34PM +0200, Marek Behún wrote:
> Hello Herbert,
> 
> back in 2019 you wrote that akcipher is still in a state of flux and
> not ready to be exposed to userspace via AF_ALG [1].
> 
> Has this changed since then?
> 
> I am asking because I am implementing another driver [2] for a device
> which allows for signing messages with an ECDSA private key securely
> stored inside the device, and Greg asks again [3] for this to be
> exposed to userspace via a dedicated kernel API, instead of
> debugfs.
> 
> Back in 2019 when we needed this for the turris-mox-rwtm driver, I
> implemented it via debugfs because akcipher was not ready.

No I don't think akcipher is quite ready yet, given that the
recent change to kernel pointers from SG lists is still
incomplete.

However, akcipher algorithms are already partially exposed to
user-space through the keyring subsystem.

Cheers,
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

      reply	other threads:[~2024-05-10 13:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-10 13:14 Is akcipher ready for userspace? Marek Behún
2024-05-10 13:25 ` Herbert Xu [this message]

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=Zj4gQlfullfvK3q8@gondor.apana.org.au \
    --to=herbert@gondor.apana.org.au \
    --cc=gregkh@linuxfoundation.org \
    --cc=kabel@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).