diff options
author | Denys Vlasenko | 2021-10-05 19:45:56 +0200 |
---|---|---|
committer | Denys Vlasenko | 2021-10-05 19:46:39 +0200 |
commit | 55578f2fb7c05357fb0b1ce84b616ba8ffd6d907 (patch) | |
tree | 9f8967394892f838cfebfb9e64b3d7aead6e5221 /networking/tls.h | |
parent | 81d8af1970e70f2bffa9e67acb10e732cba555a6 (diff) | |
download | busybox-55578f2fb7c05357fb0b1ce84b616ba8ffd6d907.zip busybox-55578f2fb7c05357fb0b1ce84b616ba8ffd6d907.tar.gz |
tls: fix the case of sp_256_mont_tpl_10() leaving striay high bits
It has no effect on correctness, but interferes with compating internal state
of different implementations.
function old new delta
sp_256_proj_point_dbl_10 443 451 +8
static.sp_256_mont_sub_10 46 49 +3
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 11/0) Total: 11 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/tls.h')
-rw-r--r-- | networking/tls.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/networking/tls.h b/networking/tls.h index 215e92b..eb0fdd4 100644 --- a/networking/tls.h +++ b/networking/tls.h @@ -117,3 +117,7 @@ void curve_x25519_compute_pubkey_and_premaster( void curve_P256_compute_pubkey_and_premaster( uint8_t *pubkey2x32, uint8_t *premaster32, const uint8_t *peerkey2x32) FAST_FUNC; + +void curve_P256_compute_pubkey_and_premaster_NEW( + uint8_t *pubkey2x32, uint8_t *premaster32, + const uint8_t *peerkey2x32) FAST_FUNC; |