aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/asn1.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2025-01-30 15:35:34 +0000
committerMichael Brown <mcb30@ipxe.org>2025-01-30 15:35:34 +0000
commitc85de315a601d95a6348c4caf5d3af6b146274b7 (patch)
treeaabf897aa6df9c4cca11fa9b67f1ab7d33dde99e /src/include/ipxe/asn1.h
parentbc5f3dbe3e03bc67a846981c1fb93206f5557283 (diff)
downloadipxe-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/include/ipxe/asn1.h')
-rw-r--r--src/include/ipxe/asn1.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/ipxe/asn1.h b/src/include/ipxe/asn1.h
index d503ccf9b..8a7461cd3 100644
--- a/src/include/ipxe/asn1.h
+++ b/src/include/ipxe/asn1.h
@@ -198,6 +198,11 @@ struct asn1_builder_header {
ASN1_OID_INITIAL ( 1, 3 ), ASN1_OID_SINGLE ( 101 ), \
ASN1_OID_SINGLE ( 110 )
+/** ASN.1 OID for secp384r1 (1.3.132.0.34) */
+#define ASN1_OID_SECP384R1 \
+ ASN1_OID_INITIAL ( 1, 3 ), ASN1_OID_DOUBLE ( 132 ), \
+ ASN1_OID_SINGLE ( 0 ), ASN1_OID_SINGLE ( 34 )
+
/** ASN.1 OID for id-aes128-cbc (2.16.840.1.101.3.4.1.2) */
#define ASN1_OID_AES128_CBC \
ASN1_OID_INITIAL ( 2, 16 ), ASN1_OID_DOUBLE ( 840 ), \