From 8bf8f2ebde9d0b0c99d8a6c40492bf4403eb40f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 5 Sep 2019 13:08:21 +0200 Subject: [PATCH] Improve documentation in config.h --- include/mbedtls/config.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/mbedtls/config.h b/include/mbedtls/config.h index 5b172387e..8e6bc4bcb 100644 --- a/include/mbedtls/config.h +++ b/include/mbedtls/config.h @@ -1271,9 +1271,11 @@ * * 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 expense of performance. + * + * For example, on a Cortex-M0 core it reduces the size of the module by about + * 2KiB for a performance cost of about 45%; on a Cortex-M4 core the size + * benefit is about 1.5 KiB for a performance cost of of about 30%. * * Uncomment to enable the smaller implementation of SHA256. */