crypto: ecrdsa - Migrate to sig_alg backend
authorLukas Wunner <lukas@wunner.de>
Tue, 10 Sep 2024 14:30:14 +0000 (16:30 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 5 Oct 2024 05:22:04 +0000 (13:22 +0800)
commitae117924b291b2ccf6be0fe197695c96fc62e78c
tree617c349cde86ceab06143a9c2cdf011673a6b19d
parentef132350a3c2ae15349b7f748ce0859f0c2861be
crypto: ecrdsa - Migrate to sig_alg backend

A sig_alg backend has just been introduced with the intent of moving all
asymmetric sign/verify algorithms to it one by one.

Migrate ecrdsa.c to the new backend.

One benefit of the new API is the use of kernel buffers instead of
sglists, which avoids the overhead of copying signature and digest
sglists back into kernel buffers.  ecrdsa.c is thus simplified quite
a bit.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/Kconfig
crypto/ecrdsa.c
crypto/testmgr.c
crypto/testmgr.h