aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py
diff options
context:
space:
mode:
authorStefan Berger <[email protected]>2024-04-04 10:18:55 -0400
committerHerbert Xu <[email protected]>2024-04-12 15:07:52 +0800
commit4dc50330a437e91063c68da074574bf6459d68a5 (patch)
tree45b1acead0c4aa6e15a8216fe1638f1ca1b0394d /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py
parenta7d45ba77d3d20ba029532090da4cbf058d3f36b (diff)
crypto: asymmetric_keys - Adjust signature size calculation for NIST P521
Adjust the calculation of the maximum signature size for support of NIST P521. While existing curves may prepend a 0 byte to their coordinates (to make the number positive), NIST P521 will not do this since only the first bit in the most significant byte is used. If the encoding of the x & y coordinates requires at least 128 bytes then an additional byte is needed for the encoding of the length. Take this into account when calculating the maximum signature size. Reviewed-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/Perf/Trace/SchedGui.py')
0 files changed, 0 insertions, 0 deletions