tls: speed up xor'ing of aligned 16-byte buffers
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 24 Nov 2018 13:08:29 +0000 (14:08 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 24 Nov 2018 13:08:29 +0000 (14:08 +0100)
commit03569bc50f0d731aa3af94ab600adc59eaac3162
tree229b93e3a0bdc0b82946fa421a96b39268159c2b
parent941440cf166ef77ad82c4ead9eae3a8a2552a418
tls: speed up xor'ing of aligned 16-byte buffers

function                                             old     new   delta
xorbuf_aligned_AES_BLOCK_SIZE                          -      23     +23
xwrite_encrypted                                     585     580      -5
aesgcm_GHASH                                         233     228      -5
GMULT                                                192     187      -5
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/3 up/down: 23/-15)              Total: 8 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/tls.c
networking/tls.h
networking/tls_aesgcm.c