You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/08/14 15:41:10 UTC

[GitHub] [mynewt-core] utzig opened a new pull request #1958: [MBEDTLS] Add option to use fewer AES tables

utzig opened a new pull request #1958: [MBEDTLS] Add option to use fewer AES tables
URL: https://github.com/apache/mynewt-core/pull/1958
 
 
   This reduces usage of ROM/RAM (depending on the setting of `MBEDTLS_AES_ROM_TABLES`) to 2KB instead of 8KB. When using fewer tables, a single T-Table is used, and extra lookups require shifts, which has shown to be negligible in practice.
   
   This new syscfg, `MBEDTLS_AES_FEWER_TABLES`, together with `MBEDTLS_AES_ROM_TABLES`, both of which are orthogonal, give me the following numbers, running a swap upgrade on the FRDM-K64F board:
   
                            FEWER_TABLES
                        0                1
                 +----------------+--------------+
                 | size: 29984    | size: 29888  |
               0 | swap: 18s      | swap: 18s    |
                 | flash: 13398   | flash: 13302 |
                 | ram: 8752      | ram: 2608    |    
                 +----------------+--------------+ ROM_TABLES
                 | size: 38156    | size: 32028  |
               1 | swap: 19s      | swap: 19s    |
                 | flash: 21570   | flash: 15442 |
                 | ram: 4         | ram: 4       |
                 +----------------+--------------+
   
   Where "size" denotes the size of the resulting bootloader, "swap" the time it takes to swap 2 400KB encrypted images, "flash" and "ram" are the mbedtls size as output by `newt size`.
   
   PS: `MBEDTLS_AES_FEWER_TABLES` is not made default on this commit.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services