← Commit list

23d0d8caf

Denys Vlasenko
Denys Vlasenko
2018-11-25
SUCCESS Duration: 293s

Subject

tls: on x86, use xorbuf_aligned_AES_BLOCK_SIZE() even with non-aligned source

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/tls_aesgcm.c+4 -2
@@ -116,8 +116,10 @@ void FAST_FUNC aesgcm_GHASH(byte* h,
blocks = cSz / AES_BLOCK_SIZE;
partial = cSz % AES_BLOCK_SIZE;
while (blocks--) {
- //xorbuf_aligned_AES_BLOCK_SIZE(x, c); - c is not guaranteed to be aligned
- xorbuf(x, c, AES_BLOCK_SIZE);
+ if (BB_UNALIGNED_MEMACCESS_OK) // c is not guaranteed to be aligned
+ xorbuf_aligned_AES_BLOCK_SIZE(x, c);
+ else
+ xorbuf(x, c, AES_BLOCK_SIZE);
GMULT(x, h);
c += AES_BLOCK_SIZE;
}