mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-23 23:01:10 +00:00
62a44d43b0
In builds enabling only a single MD digest, we want to be able to implement the MD info getter functions by returning compile-time constants matching the fields of the MD info structures used so far. To avoid information duplication hardening maintainability, this commit introduces the possibility of providing the various aspects of a particular digest implementation by defining macros MBEDTLS_MD_INFO_DIGEST_FIELD (e.g. MBEDTLS_MD_INFO_SHA256_SIZE) and to generate the corresponding mbedtls_md_info instance from this set of macros, via the new macro MBEDTLS_MD_INFO(). This way, we'll be able to switch between MD info based builds and single-digest builds without information duplication. |
||
---|---|---|
.. | ||
mbedtls | ||
tinycrypt | ||
.gitignore | ||
CMakeLists.txt |