On Wed, Mar 20, 2024 at 08:44:52AM -0400, Stefan Berger wrote: > On 3/20/24 07:47, Stefan Berger wrote: > > This series adds support for the NIST P521 curve to the ecdsa module > > to enable signature verification with it. > > > > An issue with the current code in ecdsa is that it assumes that input > > arrays providing key coordinates for example, are arrays of digits > > (a 'digit' is a 'u64'). This works well for all currently supported > > curves, such as NIST P192/256/384, but does not work for NIST P521 where > > coordinates are 8 digits + 2 bytes long. So some of the changes deal with > > converting byte arrays to digits and adjusting tests on input byte > > array lengths to tolerate arrays not providing multiples of 8 bytes. I've tested the whole series successfully on v6.9-rc1 by authenticating a PCI device with a NIST P521 certificate using my PCI/CMA development branch: https://github.com/l1k/linux/commits/doe Tested-by: Lukas Wunner <lukas@xxxxxxxxx>