Re: [PATCH] implements ecdsa 256, 384 and 521 alghorithm in akcipher model; change pcks7 and x509 to load certificates with ecdsa; increment testmgr to test ecdsa algo and finally allows signature and verification of modules with ecdsa algorithm

From: Herbert Xu
Date: Fri Dec 04 2020 - 01:47:23 EST


On Wed, Nov 25, 2020 at 11:03:08PM -0300, Saulo Alessandre wrote:
> From: Saulo Alessandre <saulo.alessandre@xxxxxxxxxx>
>
> Signed-off-by: Saulo Alessandre <saulo.alessandre@xxxxxxxxxx>
> ---
> Documentation/admin-guide/module-signing.rst | 10 +
> crypto/Kconfig | 12 +
> crypto/Makefile | 7 +
> crypto/asymmetric_keys/pkcs7_parser.c | 7 +-
> crypto/asymmetric_keys/pkcs7_verify.c | 5 +-
> crypto/asymmetric_keys/public_key.c | 30 +-
> crypto/asymmetric_keys/x509_cert_parser.c | 30 +-
> crypto/ecc.c | 228 ++++++++-
> crypto/ecc.h | 62 ++-
> crypto/ecc_curve_defs.h | 82 +++
> crypto/ecdsa.c | 508 +++++++++++++++++++
> crypto/ecdsa_params.asn1 | 1 +
> crypto/ecdsa_signature.asn1 | 6 +
> crypto/testmgr.c | 17 +-
> crypto/testmgr.h | 78 +++
> include/crypto/ecdh.h | 2 +
> include/linux/oid_registry.h | 12 +
> lib/oid_registry.c | 108 +++-
> 18 files changed, 1146 insertions(+), 59 deletions(-)
> create mode 100644 crypto/ecdsa.c
> create mode 100644 crypto/ecdsa_params.asn1
> create mode 100644 crypto/ecdsa_signature.asn1

Please split your patch up. You should also explain in detail
why this patch is needed in the kernel.

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