[git commit] tls: make constant basepoint9[32] array 8-byte aligned
Denys Vlasenko
vda.linux at googlemail.com
Thu Apr 22 08:25:04 UTC 2021
commit: https://git.busybox.net/busybox/commit/?id=972e29881a4aecde7987ee4947e609e75894fb8c
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
Has no effect on binary size, but likely to be more efficient.
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
networking/tls.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
premaster_size = sizeof(rsa_premaster);
} else {
/* ECDHE */
- static const uint8_t basepoint9[CURVE25519_KEYSIZE] ALIGN1 = {9};
+ static const uint8_t basepoint9[CURVE25519_KEYSIZE] ALIGN8 = {9};
uint8_t privkey[CURVE25519_KEYSIZE]; //[32]
if (!(tls->flags & GOT_EC_KEY))
More information about the busybox-cvs
mailing list