tls: in AES-GCM decoding, avoid memmove
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 24 Nov 2018 12:51:46 +0000 (13:51 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 24 Nov 2018 12:51:46 +0000 (13:51 +0100)
commit941440cf166ef77ad82c4ead9eae3a8a2552a418
treed97607a0d7515ff412dff5b1aa82681569a89b8a
parent985702c892d94ac9656754b94402dee933abb156
tls: in AES-GCM decoding, avoid memmove

function                                             old     new   delta
xorbuf3                                                -      36     +36
xorbuf                                                24      12     -12
tls_xread_record                                     656     634     -22
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/2 up/down: 36/-34)              Total: 2 bytes

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