summaryrefslogtreecommitdiff
path: root/include/linux/rwsem.h
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.ibm.com>2024-05-30 02:08:27 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-01-09 15:31:41 +0300
commitec64889179410e67d1b2aa7b047cafaa2d0c3f43 (patch)
tree48b6d170599bb69d91c4165e75b92535a577a66b /include/linux/rwsem.h
parent1afc7acbedb8dcae865d5b650c4a12aa4a48bd07 (diff)
downloadlinux-ec64889179410e67d1b2aa7b047cafaa2d0c3f43.tar.xz
crypto: ecdsa - Use ecc_digits_from_bytes to convert signature
[ Upstream commit 546ce0bdc91afd9f5c4c67d9fc4733e0fc7086d1 ] 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> Stable-dep-of: 3b0565c70350 ("crypto: ecdsa - Avoid signed integer overflow on signature decoding") Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/rwsem.h')
0 files changed, 0 insertions, 0 deletions