Make MBEDTLS glue compatible with MBED TLS v3
ZEPHYR (v3.0.0) implementation requires MBEDTLS V3.
This has very little impact, but a few API changed and need to be updated (in src/Common/crypto/mbedtls/
).
-
MBEDTLS_RSA_PUBLIC
andMBEDTLS_RSA_PRIVATE
parameters removed - No more access to private fields, unless
MBEDTLS_ALLOW_PRIVATE_ACCESS
is defined - No more random function parametres in
mbedtls_rsa_rsassa_pkcs1_v15_verify
- Random function (optional, can be
NULL
) new parameters formbedtls_pk_parse_key
A design choice must be done to keep the most simple code without adding too much #define
inside the code