diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-11-23 19:07:05 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-11-23 19:07:05 +0100 |
commit | fbf5e6363b11c3381d077c6bb24f224f4e3bc802 (patch) | |
tree | 10eea27b5099a52cad61fd3e309c8ae26d0956ea | |
parent | d496b4002a944af5832b8589cbc5f967abaf3dc4 (diff) | |
download | busybox-w32-fbf5e6363b11c3381d077c6bb24f224f4e3bc802.tar.gz busybox-w32-fbf5e6363b11c3381d077c6bb24f224f4e3bc802.tar.bz2 busybox-w32-fbf5e6363b11c3381d077c6bb24f224f4e3bc802.zip |
tls: code shrink
function old new delta
aesgcm_GHASH 262 233 -29
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/tls_aesgcm.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/networking/tls_aesgcm.c b/networking/tls_aesgcm.c index a06f8c8c5..84c90314f 100644 --- a/networking/tls_aesgcm.c +++ b/networking/tls_aesgcm.c | |||
@@ -130,9 +130,10 @@ void FAST_FUNC aesgcm_GHASH(byte* h, | |||
130 | c += AES_BLOCK_SIZE; | 130 | c += AES_BLOCK_SIZE; |
131 | } | 131 | } |
132 | if (partial != 0) { | 132 | if (partial != 0) { |
133 | XMEMSET(scratch, 0, AES_BLOCK_SIZE); | 133 | //XMEMSET(scratch, 0, AES_BLOCK_SIZE); |
134 | XMEMCPY(scratch, c, partial); | 134 | //XMEMCPY(scratch, c, partial); |
135 | xorbuf(x, scratch, AES_BLOCK_SIZE); | 135 | //xorbuf(x, scratch, AES_BLOCK_SIZE); |
136 | xorbuf(x, c, partial); | ||
136 | GMULT(x, h); | 137 | GMULT(x, h); |
137 | } | 138 | } |
138 | } | 139 | } |