diff options
author | Stefan Berger <stefanb@linux.ibm.com> | 2024-05-30 01:08:26 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2024-06-07 13:46:39 +0200 |
commit | 2fd2a82ccbfc106aec314db6c4bda5e24fd32a22 (patch) | |
tree | 334d189cea46163530c96cb371f8c8502467a472 /kernel/taskstats.c | |
parent | crypto: lib - add missing MODULE_DESCRIPTION() macros (diff) | |
download | linux-2fd2a82ccbfc106aec314db6c4bda5e24fd32a22.tar.xz linux-2fd2a82ccbfc106aec314db6c4bda5e24fd32a22.zip |
crypto: ecdsa - Use ecc_digits_from_bytes to create hash digits array
Since ecc_digits_from_bytes will provide zeros when an insufficient number
of bytes are passed in the input byte array, use it to create the hash
digits directly from the input byte array. This avoids going through an
intermediate byte array (rawhash) that has the first few bytes filled with
zeros.
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'kernel/taskstats.c')
0 files changed, 0 insertions, 0 deletions