KEYS: asymmetric: Move sm2 code into x509_public_key
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 15 Jun 2023 10:28:53 +0000 (18:28 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 23 Jun 2023 08:15:37 +0000 (16:15 +0800)
commite5221fa6a355112ddcc29dc82a94f7c3a1aacc0b
treeb5dadf954911e0e8189a8d5ec9eb210a0cdf66aa
parentb6d0695bb3c24ebe8dbaaaf61de791d5821a00ac
KEYS: asymmetric: Move sm2 code into x509_public_key

The sm2 certificate requires a modified digest.  Move the code
for the hashing from the signature verification path into the
code where we generate the digest.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/asymmetric_keys/public_key.c
crypto/asymmetric_keys/x509_public_key.c
crypto/sm2.c
include/crypto/public_key.h
include/crypto/sm2.h