diff options
author | Stefan Berger <stefanb@linux.ibm.com> | 2024-05-30 01:08:27 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2024-06-07 13:46:39 +0200 |
commit | 546ce0bdc91afd9f5c4c67d9fc4733e0fc7086d1 (patch) | |
tree | 195c8e9306ba7d5658c45a4ff4036d1389a307bc /Documentation/block | |
parent | crypto: ecdsa - Use ecc_digits_from_bytes to create hash digits array (diff) | |
download | linux-546ce0bdc91afd9f5c4c67d9fc4733e0fc7086d1.tar.xz linux-546ce0bdc91afd9f5c4c67d9fc4733e0fc7086d1.zip |
crypto: ecdsa - Use ecc_digits_from_bytes to convert signature
Since ecc_digits_from_bytes will provide zeros when an insufficient number
of bytes are passed in the input byte array, use it to convert the r and s
components of the signature to digits directly from the input byte
array. This avoids going through an intermediate byte array 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 'Documentation/block')
0 files changed, 0 insertions, 0 deletions