aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/tls_aesgcm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/networking/tls_aesgcm.c b/networking/tls_aesgcm.c
index fd72540c4..32ca40260 100644
--- a/networking/tls_aesgcm.c
+++ b/networking/tls_aesgcm.c
@@ -116,8 +116,10 @@ void FAST_FUNC aesgcm_GHASH(byte* h,
116 blocks = cSz / AES_BLOCK_SIZE; 116 blocks = cSz / AES_BLOCK_SIZE;
117 partial = cSz % AES_BLOCK_SIZE; 117 partial = cSz % AES_BLOCK_SIZE;
118 while (blocks--) { 118 while (blocks--) {
119 //xorbuf_aligned_AES_BLOCK_SIZE(x, c); - c is not guaranteed to be aligned 119 if (BB_UNALIGNED_MEMACCESS_OK) // c is not guaranteed to be aligned
120 xorbuf(x, c, AES_BLOCK_SIZE); 120 xorbuf_aligned_AES_BLOCK_SIZE(x, c);
121 else
122 xorbuf(x, c, AES_BLOCK_SIZE);
121 GMULT(x, h); 123 GMULT(x, h);
122 c += AES_BLOCK_SIZE; 124 c += AES_BLOCK_SIZE;
123 } 125 }