diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-04-26 13:46:36 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-04-26 13:46:36 +0200 |
commit | 6b69ab68b47d0933f8b4a1d7ed8460274a736a5f (patch) | |
tree | fd8febe91940f0c2fa8761d5ae6e65bfd4f4ec1f /networking/tls.h | |
parent | f18a1fd6f368ada05b33cf36483304a5e3c4945d (diff) | |
download | busybox-w32-6b69ab68b47d0933f8b4a1d7ed8460274a736a5f.tar.gz busybox-w32-6b69ab68b47d0933f8b4a1d7ed8460274a736a5f.tar.bz2 busybox-w32-6b69ab68b47d0933f8b4a1d7ed8460274a736a5f.zip |
tls: make x25519 key generation code more similar to P256
function old new delta
curve_x25519_compute_pubkey_and_premaster - 74 +74
tls_handshake 2146 2072 -74
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 74/-74) Total: 0 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/tls.h')
-rw-r--r-- | networking/tls.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/networking/tls.h b/networking/tls.h index e1afb7ea8..154e9b2fb 100644 --- a/networking/tls.h +++ b/networking/tls.h | |||
@@ -105,12 +105,15 @@ void xorbuf_aligned_AES_BLOCK_SIZE(void* buf, const void* mask) FAST_FUNC; | |||
105 | #include "tls_aes.h" | 105 | #include "tls_aes.h" |
106 | #include "tls_aesgcm.h" | 106 | #include "tls_aesgcm.h" |
107 | #include "tls_rsa.h" | 107 | #include "tls_rsa.h" |
108 | #include "tls_fe.h" | ||
109 | 108 | ||
110 | #define EC_CURVE_KEYSIZE 32 | 109 | #define EC_CURVE_KEYSIZE 32 |
111 | #define P256_KEYSIZE 32 | 110 | #define P256_KEYSIZE 32 |
112 | #define CURVE25519_KEYSIZE 32 | 111 | #define CURVE25519_KEYSIZE 32 |
113 | 112 | ||
113 | void curve_x25519_compute_pubkey_and_premaster( | ||
114 | uint8_t *pubkey, uint8_t *premaster, | ||
115 | const uint8_t *peerkey32) FAST_FUNC; | ||
116 | |||
114 | void curve_P256_compute_pubkey_and_premaster( | 117 | void curve_P256_compute_pubkey_and_premaster( |
115 | uint8_t *pubkey, uint8_t *premaster, | 118 | uint8_t *pubkey, uint8_t *premaster, |
116 | const uint8_t *peerkey32) FAST_FUNC; | 119 | const uint8_t *peerkey32) FAST_FUNC; |