tls: code shrink
function old new delta aesgcm_GHASH 262 233 -29 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
d496b4002a
commit
fbf5e6363b
@ -130,9 +130,10 @@ void FAST_FUNC aesgcm_GHASH(byte* h,
|
|||||||
c += AES_BLOCK_SIZE;
|
c += AES_BLOCK_SIZE;
|
||||||
}
|
}
|
||||||
if (partial != 0) {
|
if (partial != 0) {
|
||||||
XMEMSET(scratch, 0, AES_BLOCK_SIZE);
|
//XMEMSET(scratch, 0, AES_BLOCK_SIZE);
|
||||||
XMEMCPY(scratch, c, partial);
|
//XMEMCPY(scratch, c, partial);
|
||||||
xorbuf(x, scratch, AES_BLOCK_SIZE);
|
//xorbuf(x, scratch, AES_BLOCK_SIZE);
|
||||||
|
xorbuf(x, c, partial);
|
||||||
GMULT(x, h);
|
GMULT(x, h);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user