From bc5f3dbe3e03bc67a846981c1fb93206f5557283 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 22 Jan 2025 13:07:23 +0000 Subject: [crypto] Add definitions and tests for the NIST P-256 elliptic curve Signed-off-by: Michael Brown --- src/include/ipxe/p256.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/include/ipxe/p256.h (limited to 'src/include/ipxe/p256.h') diff --git a/src/include/ipxe/p256.h b/src/include/ipxe/p256.h new file mode 100644 index 000000000..0c4e81665 --- /dev/null +++ b/src/include/ipxe/p256.h @@ -0,0 +1,19 @@ +#ifndef _IPXE_P256_H +#define _IPXE_P256_H + +/** @file + * + * NIST P-256 elliptic curve + * + */ + +FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); + +#include + +/** P-256 value length */ +#define P256_LEN ( 256 / 8 ) + +extern struct elliptic_curve p256_curve; + +#endif /* _IPXE_P256_H */ -- cgit