summaryrefslogtreecommitdiff
path: root/networking/tls.h
diff options
context:
space:
mode:
Diffstat (limited to 'networking/tls.h')
-rw-r--r--networking/tls.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/networking/tls.h b/networking/tls.h
index d4ac1be..e1afb7e 100644
--- a/networking/tls.h
+++ b/networking/tls.h
@@ -106,3 +106,11 @@ void xorbuf_aligned_AES_BLOCK_SIZE(void* buf, const void* mask) FAST_FUNC;
#include "tls_aesgcm.h"
#include "tls_rsa.h"
#include "tls_fe.h"
+
+#define EC_CURVE_KEYSIZE 32
+#define P256_KEYSIZE 32
+#define CURVE25519_KEYSIZE 32
+
+void curve_P256_compute_pubkey_and_premaster(
+ uint8_t *pubkey, uint8_t *premaster,
+ const uint8_t *peerkey32) FAST_FUNC;