[tls] Use generic key exchange algorithm abstraction for ECDHE

Remove any knowledge of elliptic curve point formats from the TLS
layer and use the generic key exchange algorithm abstraction instead.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2026-06-06 16:21:50 +01:00
parent 3bd8516e9b
commit 3faae34685
5 changed files with 29 additions and 48 deletions
+1 -3
View File
@@ -41,8 +41,6 @@ struct asn1_algorithm prime256v1_algorithm __asn1_algorithm = {
/** P-256 named curve */
struct tls_named_curve tls_secp256r1_named_curve __tls_named_curve ( 01 ) = {
.curve = &p256_curve,
.exchange = &p256_algorithm,
.code = htons ( TLS_NAMED_CURVE_SECP256R1 ),
.format = TLS_POINT_FORMAT_UNCOMPRESSED,
.pre_master_secret_len = P256_LEN,
};