Jussi Kivilinna
2fd1bb8f02
Add option to use smaller AES tables (table sizes reduced by 6144 bytes)
This patch adds MBEDTLS_AES_SMALL_TABLES option to reduce number of AES
look-up tables and thus save 6 KiB of memory. Enabling this option
cause performance hit MBEDTLS_AES_SMALL_TABLES of ~7% on ARM and ~15%
on x86-64.
Benchmark on Cortex-A7 (armhf):
Before:
AES-CBC-128 : 14394 Kb/s, 0 cycles/byte
AES-CBC-192 : 12442 Kb/s, 0 cycles/byte
AES-CBC-256 : 10958 Kb/s, 0 cycles/byte
After:
AES-CBC-128 : 13342 Kb/s, 0 cycles/byte
AES-CBC-192 : 11469 Kb/s, 0 cycles/byte
AES-CBC-256 : 10058 Kb/s, 0 cycles/byte
Benchmark on Intel Core i5-4570 (x86_64, 3.2 Ghz, no turbo):
Before:
AES-CBC-128 : 215759 Kb/s, 14 cycles/byte
AES-CBC-192 : 190884 Kb/s, 16 cycles/byte
AES-CBC-256 : 171536 Kb/s, 18 cycles/byte
After:
AES-CBC-128 : 185108 Kb/s, 16 cycles/byte
AES-CBC-192 : 162839 Kb/s, 19 cycles/byte
AES-CBC-256 : 144700 Kb/s, 21 cycles/byte
2017-06-07 15:29:31 +01:00
..
2017-05-16 10:22:37 +01:00
2015-09-04 14:21:07 +02:00
2015-09-04 14:21:07 +02:00
2015-09-04 14:21:07 +02:00
2016-08-25 15:42:27 +01:00
2015-10-05 15:23:11 +01:00
2016-01-03 00:24:34 +00:00
2015-09-04 14:21:07 +02:00
2016-05-23 14:29:28 +01:00
2015-09-04 14:21:07 +02:00
2015-09-04 14:21:07 +02:00
2015-09-04 14:21:07 +02:00
2017-05-11 22:42:14 +01:00
2015-09-04 14:21:07 +02:00
2016-10-13 13:51:11 +01:00
2016-12-14 15:27:22 +00:00
2017-05-16 10:22:37 +01:00
2017-06-07 15:29:31 +01:00
2015-09-25 04:27:22 +02:00
2016-03-18 16:47:10 +00:00
2015-09-04 14:21:07 +02:00
2016-05-25 00:59:37 +01:00
2015-09-04 14:21:07 +02:00
2015-09-04 14:21:07 +02:00
2017-05-12 00:18:04 +01:00
2017-05-11 22:42:14 +01:00
2017-05-11 22:42:14 +01:00
2016-10-13 13:48:48 +01:00
2016-09-13 13:30:02 +01:00
2016-10-13 13:51:12 +01:00
2016-10-13 13:54:47 +01:00
2015-09-04 14:21:07 +02:00
2015-09-25 04:27:22 +02:00
2016-01-03 16:14:14 +00:00
2016-01-03 16:14:14 +00:00
2016-01-03 16:14:14 +00:00
2015-09-04 14:21:07 +02:00
2016-10-13 13:51:12 +01:00
2016-05-23 14:29:29 +01:00
2016-10-13 13:48:48 +01:00
2016-10-13 13:48:48 +01:00
2015-09-04 14:21:07 +02:00
2015-09-04 14:21:07 +02:00
2015-09-04 14:21:07 +02:00
2015-09-04 14:21:07 +02:00
2016-05-23 14:29:30 +01:00
2015-09-04 14:21:07 +02:00
2015-10-05 11:41:36 +01:00
2015-09-04 14:21:07 +02:00
2016-07-13 14:46:18 +01:00
2016-07-13 14:46:18 +01:00
2016-01-03 16:14:14 +00:00
2016-11-06 12:45:15 +00:00
2016-01-03 16:14:14 +00:00
2016-01-03 16:14:14 +00:00
2016-01-03 16:14:14 +00:00
2016-04-26 14:49:59 +01:00
2017-05-15 11:50:11 +01:00
2015-09-04 14:21:07 +02:00
2017-05-15 11:50:11 +01:00
2015-09-04 14:21:07 +02:00
2017-06-06 18:14:57 +02:00
2017-05-11 22:42:14 +01:00
2015-09-25 04:27:22 +02:00
2017-05-16 10:22:37 +01:00
2016-01-04 12:40:15 +01:00
2017-06-06 19:16:18 +02:00
2016-10-13 13:53:56 +01:00
2016-11-06 12:45:15 +00:00
2015-09-04 14:21:07 +02:00