[crypto] Add definitions and tests for the NIST P-384 elliptic curve

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-01-30 15:35:34 +00:00
parent bc5f3dbe3e
commit c85de315a6
9 changed files with 379 additions and 0 deletions

View File

@@ -93,6 +93,11 @@ REQUIRE_OBJECT ( oid_x25519 );
REQUIRE_OBJECT ( oid_p256 );
#endif
/* P-384 */
#if defined ( CRYPTO_CURVE_P384 )
REQUIRE_OBJECT ( oid_p384 );
#endif
/* AES-CBC */
#if defined ( CRYPTO_CIPHER_AES_CBC )
REQUIRE_OBJECT ( oid_aes_cbc );

View File

@@ -63,6 +63,9 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
/** P-256 elliptic curve */
#define CRYPTO_CURVE_P256
/** P-384 elliptic curve */
#define CRYPTO_CURVE_P384
/** Margin of error (in seconds) allowed in signed timestamps
*
* We default to allowing a reasonable margin of error: 12 hours to