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>
This commit is contained in:
@@ -105,12 +105,15 @@ void xorbuf_aligned_AES_BLOCK_SIZE(void* buf, const void* mask) FAST_FUNC;
|
||||
#include "tls_aes.h"
|
||||
#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_x25519_compute_pubkey_and_premaster(
|
||||
uint8_t *pubkey, uint8_t *premaster,
|
||||
const uint8_t *peerkey32) FAST_FUNC;
|
||||
|
||||
void curve_P256_compute_pubkey_and_premaster(
|
||||
uint8_t *pubkey, uint8_t *premaster,
|
||||
const uint8_t *peerkey32) FAST_FUNC;
|
||||
|
Reference in New Issue
Block a user