aboutsummaryrefslogtreecommitdiff
path: root/networking/tls.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2021-04-22 10:25:04 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2021-04-22 10:25:04 +0200
commit972e29881a4aecde7987ee4947e609e75894fb8c (patch)
tree90160aa8bf68dc367fac07e0b7a30198f05a90fb /networking/tls.c
parent6c6470b3847d12b2d7504fa37fbf871c46792d77 (diff)
downloadbusybox-w32-972e29881a4aecde7987ee4947e609e75894fb8c.tar.gz
busybox-w32-972e29881a4aecde7987ee4947e609e75894fb8c.tar.bz2
busybox-w32-972e29881a4aecde7987ee4947e609e75894fb8c.zip
tls: make constant basepoint9[32] array 8-byte aligned
Has no effect on binary size, but likely to be more efficient. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/tls.c')
-rw-r--r--networking/tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/tls.c b/networking/tls.c
index e34acd69f..bbb1f41dc 100644
--- a/networking/tls.c
+++ b/networking/tls.c
@@ -1953,7 +1953,7 @@ static void send_client_key_exchange(tls_state_t *tls)
1953 premaster_size = sizeof(rsa_premaster); 1953 premaster_size = sizeof(rsa_premaster);
1954 } else { 1954 } else {
1955 /* ECDHE */ 1955 /* ECDHE */
1956 static const uint8_t basepoint9[CURVE25519_KEYSIZE] ALIGN1 = {9}; 1956 static const uint8_t basepoint9[CURVE25519_KEYSIZE] ALIGN8 = {9};
1957 uint8_t privkey[CURVE25519_KEYSIZE]; //[32] 1957 uint8_t privkey[CURVE25519_KEYSIZE]; //[32]
1958 1958
1959 if (!(tls->flags & GOT_EC_KEY)) 1959 if (!(tls->flags & GOT_EC_KEY))