diff options
author | Michael Brown <mcb30@ipxe.org> | 2025-01-21 15:13:20 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2025-01-21 15:20:17 +0000 |
commit | df7ec31766cd08eb1e01d59afc79198f5411517e (patch) | |
tree | b57da6cbc9ed00af69e14d77325f94c28050b033 /src/include | |
parent | cc38d7dd3e379f3f93bcc97390137bbfd4049d60 (diff) | |
download | ipxe-df7ec31766cd08eb1e01d59afc79198f5411517e.tar.gz |
[crypto] Generalise elliptic curve key exchange to ecdhe_key()
Split out the portion of tls_send_client_key_exchange_ecdhe() that
actually performs the elliptic curve key exchange into a separate
function ecdhe_key().
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ipxe/ecdhe.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/ipxe/ecdhe.h b/src/include/ipxe/ecdhe.h new file mode 100644 index 000000000..36fc0a1ee --- /dev/null +++ b/src/include/ipxe/ecdhe.h @@ -0,0 +1,17 @@ +#ifndef _IPXE_ECDHE_H +#define _IPXE_ECDHE_H + +/** @file + * + * Elliptic Curve Ephemeral Diffie-Hellman (ECDHE) key exchange + * + */ + +FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); + +#include <ipxe/crypto.h> + +extern int ecdhe_key ( struct elliptic_curve *curve, const void *partner, + const void *private, void *public, void *shared ); + +#endif /* _IPXE_ECDHE_H */ |