mirror of
https://github.com/ipxe/ipxe
synced 2026-07-04 20:01:38 +03:00
[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:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user