aboutsummaryrefslogtreecommitdiff
path: root/networking/tls_aesgcm.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-11-24 13:51:46 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-11-24 13:51:46 +0100
commit941440cf166ef77ad82c4ead9eae3a8a2552a418 (patch)
treed97607a0d7515ff412dff5b1aa82681569a89b8a /networking/tls_aesgcm.c
parent985702c892d94ac9656754b94402dee933abb156 (diff)
downloadbusybox-941440cf166ef77ad82c4ead9eae3a8a2552a418.tar.gz
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>
Diffstat (limited to 'networking/tls_aesgcm.c')
-rw-r--r--networking/tls_aesgcm.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/networking/tls_aesgcm.c b/networking/tls_aesgcm.c
index b9a6a9b0a..db720e5f6 100644
--- a/networking/tls_aesgcm.c
+++ b/networking/tls_aesgcm.c
@@ -11,15 +11,6 @@ typedef uint32_t word32;
#define XMEMSET memset
#define XMEMCPY memcpy
-void FAST_FUNC xorbuf(void* buf, const void* mask, unsigned count)
-{
- word32 i;
- byte* b = (byte*)buf;
- const byte* m = (const byte*)mask;
- for (i = 0; i < count; i++)
- b[i] ^= m[i];
-}
-
/* from wolfssl-3.15.3/wolfcrypt/src/aes.c */
static ALWAYS_INLINE void FlattenSzInBits(byte* buf, word32 sz)