aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2024-01-30 18:00:31 +0000
committerMichael Brown <mcb30@ipxe.org>2024-01-30 18:01:44 +0000
commita881a26061a75bbca68a709eb40b396c4ef5656b (patch)
treeea404b74b3e4b6d8212802e78b6529deba3c94f7 /src/include
parentb234226dbc4f348c7e4a5c61bdf7b0f8f0aef16c (diff)
downloadipxe-a881a26061a75bbca68a709eb40b396c4ef5656b.zip
ipxe-a881a26061a75bbca68a709eb40b396c4ef5656b.tar.gz
ipxe-a881a26061a75bbca68a709eb40b396c4ef5656b.tar.bz2
[crypto] Add X25519 OID-identified algorithm and TLS named curve
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ipxe/asn1.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/ipxe/asn1.h b/src/include/ipxe/asn1.h
index 452fcef..ac7ea56 100644
--- a/src/include/ipxe/asn1.h
+++ b/src/include/ipxe/asn1.h
@@ -187,6 +187,11 @@ struct asn1_builder_header {
ASN1_OID_SINGLE ( 3 ), ASN1_OID_SINGLE ( 2 ), \
ASN1_OID_SINGLE ( 26 )
+/** ASN.1 OID for id-x25519 (1.3.101.110) */
+#define ASN1_OID_X25519 \
+ ASN1_OID_INITIAL ( 1, 3 ), ASN1_OID_SINGLE ( 101 ), \
+ ASN1_OID_SINGLE ( 110 )
+
/** ASN.1 OID for id-sha256 (2.16.840.1.101.3.4.2.1) */
#define ASN1_OID_SHA256 \
ASN1_OID_INITIAL ( 2, 16 ), ASN1_OID_DOUBLE ( 840 ), \
@@ -312,6 +317,8 @@ struct asn1_algorithm {
struct pubkey_algorithm *pubkey;
/** Digest algorithm (if applicable) */
struct digest_algorithm *digest;
+ /** Elliptic curve (if applicable) */
+ struct elliptic_curve *curve;
};
/** ASN.1 OID-identified algorithms */