[crypto] Add support for ECDSA signatures

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-12-18 23:33:24 +00:00
parent 948677fe5e
commit 4e3cbeef83
5 changed files with 1223 additions and 0 deletions

19
src/include/ipxe/ecdsa.h Normal file
View File

@@ -0,0 +1,19 @@
#ifndef _IPXE_ECDSA_H
#define _IPXE_ECDSA_H
/** @file
*
* Elliptic curve digital signature algorithm (ECDSA)
*
*/
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <ipxe/crypto.h>
/** Uncompressed curve point */
#define ECDSA_UNCOMPRESSED 0x04
extern struct pubkey_algorithm ecdsa_algorithm;
#endif /* _IPXE_ECDSA_H */

View File

@@ -444,6 +444,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#define ERRFILE_weierstrass ( ERRFILE_OTHER | 0x00660000 )
#define ERRFILE_efi_cacert ( ERRFILE_OTHER | 0x00670000 )
#define ERRFILE_ecdhe ( ERRFILE_OTHER | 0x00680000 )
#define ERRFILE_ecdsa ( ERRFILE_OTHER | 0x00690000 )
/** @} */