* Is akcipher ready for userspace?
@ 2024-05-10 13:14 Marek Behún
2024-05-10 13:25 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Marek Behún @ 2024-05-10 13:14 UTC (permalink / raw)
To: Herbert Xu; +Cc: linux-crypto, Greg Kroah-Hartman
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.
Thanks.
Marek
[1] https://www.spinics.net/lists/linux-crypto/msg38388.html
[2] https://lore.kernel.org/soc/20240510101819.13551-1-kabel@kernel.org/T/
[3] https://lore.kernel.org/soc/2024051042-unbuckled-barometer-1099@gregkh/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Is akcipher ready for userspace?
2024-05-10 13:14 Is akcipher ready for userspace? Marek Behún
@ 2024-05-10 13:25 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2024-05-10 13:25 UTC (permalink / raw)
To: Marek Behún; +Cc: linux-crypto, Greg Kroah-Hartman
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-05-10 13:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-10 13:14 Is akcipher ready for userspace? Marek Behún
2024-05-10 13:25 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox