Denys Vlasenko
6e99f1cb45
tls: replace aes encryption/decryption by much smaller one
The replacement code is ~6 times slower,
but drastically decreases size of tls_aes.o:
text data bss dec hex filename
8050 0 0 8050 1f72 tls_aes_OLD.o
2461 0 0 2461 99d tls_aes.o
function old new delta
sbox - 256 +256
rsbox - 256 +256
KeyExpansion - 197 +197
Subword - 66 +66
AddRoundKey - 61 +61
static.Rcon - 10 +10
rcon 40 - -40
setup_mix 80 - -80
setup_mix2 123 - -123
aes_cbc_decrypt 1377 971 -406
aes_cbc_encrypt 1375 644 -731
psAesInit 848 - -848
Te4 1024 - -1024
TE0 1024 - -1024
TD0 1024 - -1024
Td4 1040 - -1040
------------------------------------------------------------------------------
(add/remove: 6/8 grow/shrink: 0/2 up/down: 846/-6340) Total: -5494 bytes
This code is based on public domain "tiny-AES128-C" code.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2017-04-01 20:11:59 +02:00
..
2016-12-23 02:42:26 +01:00
2014-02-23 23:31:13 +01:00
2016-12-22 15:13:37 +01:00
2017-03-27 22:49:12 +02:00
2016-11-23 09:05:14 +01:00
2016-11-23 09:05:14 +01:00
2016-11-23 09:05:14 +01:00
2017-01-03 12:29:52 +01:00
2016-11-23 09:05:14 +01:00
2016-11-23 09:05:14 +01:00
2017-01-25 04:52:45 +01:00
2017-01-10 14:58:54 +01:00
2017-01-29 14:57:33 +01:00
2016-12-22 15:13:37 +01:00
2012-09-03 12:20:10 +02:00
2016-12-22 15:33:11 +01:00
2013-01-14 01:34:48 +01:00
2017-02-04 23:19:30 +01:00
2016-11-23 09:05:14 +01:00
2016-11-23 09:05:14 +01:00
2016-11-23 09:05:14 +01:00
2017-01-29 14:57:33 +01:00
2017-01-21 03:46:57 +01:00
2016-11-28 01:22:57 +01:00
2017-01-21 14:27:07 +01:00
2017-01-10 14:58:54 +01:00
2016-11-23 09:05:14 +01:00
2015-10-13 14:50:20 +02:00
2014-01-09 20:09:43 +01:00
2016-11-23 09:05:14 +01:00
2016-11-23 09:05:14 +01:00
2015-10-13 17:17:34 +02:00
2017-02-17 17:48:59 +01:00
2017-02-16 17:17:17 +01:00
2017-01-10 14:58:54 +01:00
2016-11-23 09:05:14 +01:00
2017-01-19 14:42:34 +01:00
2016-03-04 07:36:04 +01:00
2017-01-21 03:46:57 +01:00
2016-11-23 09:05:14 +01:00
2016-11-23 09:05:14 +01:00
2016-11-23 09:05:14 +01:00
2017-01-23 01:08:16 +01:00
2017-01-21 14:27:07 +01:00
2010-08-16 20:14:46 +02:00
2010-08-16 20:14:46 +02:00
2017-01-02 10:46:08 +01:00
2017-01-11 16:35:52 +01:00
2016-11-23 09:05:14 +01:00
2016-04-22 18:09:21 +02:00
2016-10-12 19:13:46 +02:00
2017-01-10 14:58:54 +01:00
2017-04-01 20:11:59 +02:00
2017-02-04 16:23:49 +01:00
2017-01-19 15:51:00 +01:00
2017-01-19 15:51:00 +01:00
2017-01-19 15:51:00 +01:00
2017-03-24 15:00:12 +01:00
2017-01-19 15:51:00 +01:00
2017-01-19 15:51:00 +01:00
2017-01-19 15:51:00 +01:00
2017-01-23 01:15:13 +01:00
2017-02-16 16:51:18 +01:00
2017-01-19 16:32:38 +01:00
2017-01-10 14:58:54 +01:00
2016-11-23 09:05:14 +01:00
2016-11-23 09:05:14 +01:00
2017-01-30 16:27:37 +01:00
2016-07-06 21:58:02 +02:00
2016-11-23 09:05:14 +01:00