aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib
diff options
context:
space:
mode:
authorStefan Berger <[email protected]>2024-04-04 10:18:45 -0400
committerHerbert Xu <[email protected]>2024-04-12 15:07:51 +0800
commitd67c96fb97b5811e15c881d5cb72e293faa5f8e1 (patch)
tree4ad18dc03d5e111c8e8baf10d6d86347fa0235db /tools/perf/scripts/python/Perf-Trace-Util/lib
parent526d23fc2dd03a749297f5ef5edcbfb8c492dcfd (diff)
crypto: ecdsa - Convert byte arrays with key coordinates to digits
For NIST P192/256/384 the public key's x and y parameters could be copied directly from a given array since both parameters filled 'ndigits' of digits (a 'digit' is a u64). For support of NIST P521 the key parameters need to have leading zeros prepended to the most significant digit since only 2 bytes of the most significant digit are provided. Therefore, implement ecc_digits_from_bytes to convert a byte array into an array of digits and use this function in ecdsa_set_pub_key where an input byte array needs to be converted into digits. Suggested-by: Lukas Wunner <[email protected]> Tested-by: Lukas Wunner <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Stefan Berger <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions