diff options
author | Daniel Engberg <daniel.engberg.lists@pyret.net> | 2018-06-24 21:19:18 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2018-07-07 18:31:13 +0200 |
commit | 5a078180d08db8d4261119cd396a38b0261bfc5b (patch) | |
tree | a503a78cd625f9c212e11502b1b7c299e4282cbe /config | |
parent | 10554cfcc17b7333f7f91658660adc21ba941ac5 (diff) | |
download | upstream-5a078180d08db8d4261119cd396a38b0261bfc5b.tar.gz upstream-5a078180d08db8d4261119cd396a38b0261bfc5b.tar.bz2 upstream-5a078180d08db8d4261119cd396a38b0261bfc5b.zip |
mbedtls: Disable MBEDTLS_SHA256_SMALLER implementation
Disable MBEDTLS_SHA256_SMALLER implementation, not enabled by default in
upstream and reduces performance by quite a bit.
Source: include/mbedtls/config.h
Enable an implementation of SHA-256 that has lower ROM footprint but also
lower performance.
The default implementation is meant to be a reasonnable compromise between
performance and size. This version optimizes more aggressively for size at
the expense of performance. Eg on Cortex-M4 it reduces the size of
mbedtls_sha256_process() from ~2KB to ~0.5KB for a performance hit of
about 30%.
The size of mbedtls increased a little bit:
ipkg for mips_24kc before:
164.382 Bytes
ipkg for mips_24kc after:
166.240 Bytes
Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
Diffstat (limited to 'config')
0 files changed, 0 insertions, 0 deletions