Skip to content

ecdsa: Use ecc_digits_from_bytes to simplify code

Stefan Berger keyrings linux-crypto lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2crypto: ecdsa - Use ecc_digits_from_bytes to create hash digits arraycrypto/ecdsa.c+4 -133 replies
2/2crypto: ecdsa - Use ecc_digits_from_bytes to convert signaturecrypto/ecdsa.c+2 -101 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJarkko Sakkinen
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] ecdsa: Use ecc_digits_from_bytes to simplify code

Simplify two functions that were using temporary byte arrays for converting too-short input byte arrays to digits. Use ecc_digits_from_bytes since this function can now handle an input byte array that provides less bytes than what a coordinate of a curve requires - the function provides zeros for the missing (leading) bytes.

See: c6ab5c915da4 ("crypto: ecc - Prevent ecc_digits_from_bytes from reading too many bytes")

Regards,
Stefan

Stefan Berger (2):
crypto: ecdsa - Use ecc_digits_from_bytes to create hash digits array
crypto: ecdsa - Use ecc_digits_from_bytes to convert signature

 crypto/ecdsa.c | 29 ++++++-----------------------
 1 file changed, 6 insertions(+), 23 deletions(-)
Signature · 1 line
2.43.0