Browse Source

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>
Denys Vlasenko 3 years ago
parent
commit
972e29881a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      networking/tls.c

+ 1 - 1
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))