From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex G. Date: Thu, 14 Jan 2021 10:09:46 -0600 Subject: [PATCH 1/5] dm: crypto: Define UCLASS API for ECDSA signature verification In-Reply-To: References: <20210111154137.621732-1-mr.nuke.me@gmail.com> <20210111154137.621732-2-mr.nuke.me@gmail.com> Message-ID: <7d339b5b-ad5a-42e9-a306-dcee542cdac9@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 1/13/21 10:10 AM, Simon Glass wrote: > Hi Alexandru, > > On Mon, 11 Jan 2021 at 08:41, Alexandru Gagniuc wrote: >> >> Define a UCLASS API for verifying ECDSA signatures. Unlike >> UCLASS_MOD_EXP, which focuses strictly on modular exponentiation, >> the ECDSA class focuses on verification. This is done so that it >> better aligns with mach-specific implementations, such as stm32mp. >> >> Signed-off-by: Alexandru Gagniuc >> --- >> include/crypto/ecdsa-uclass.h | 39 +++++++++++++++++++++++++++++++++++ >> include/dm/uclass-id.h | 1 + >> 2 files changed, 40 insertions(+) >> create mode 100644 include/crypto/ecdsa-uclass.h > > This needs a test, as do all uclasses in U-Boot. If it isn't easy to > implement the algorithm then I suppose you could fake it by using an > easy algorithm like md5, but it does need a test. I agree. I couldn't find a test for UCLASS_MOD_EXP (for guidance), so I'm not sure where to even start. Alex > Regards, > Simon >