diff options
author | Michael Brown <mcb30@ipxe.org> | 2025-01-30 15:35:34 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2025-01-30 15:35:34 +0000 |
commit | c85de315a601d95a6348c4caf5d3af6b146274b7 (patch) | |
tree | aabf897aa6df9c4cca11fa9b67f1ab7d33dde99e /src/config | |
parent | bc5f3dbe3e03bc67a846981c1fb93206f5557283 (diff) | |
download | ipxe-c85de315a601d95a6348c4caf5d3af6b146274b7.tar.gz |
[crypto] Add definitions and tests for the NIST P-384 elliptic curve
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/config_crypto.c | 5 | ||||
-rw-r--r-- | src/config/crypto.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/config/config_crypto.c b/src/config/config_crypto.c index 99acd3076..19d6d032e 100644 --- a/src/config/config_crypto.c +++ b/src/config/config_crypto.c @@ -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 ); diff --git a/src/config/crypto.h b/src/config/crypto.h index 5e96be4aa..f2ee9fd0d 100644 --- a/src/config/crypto.h +++ b/src/config/crypto.h @@ -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 |