From c42cadb54a7bd9b26837abce449599dd7e429d5b Mon Sep 17 00:00:00 2001 From: Minos Galanakis Date: Thu, 9 Dec 2021 13:16:54 +0000 Subject: [PATCH] Updated readme This patch adds explicit implementation requirements for platforms architecture dependencies Signed-off-by: Minos Galanakis --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index ea1d7a37b7..9f1e43aed2 100644 --- a/README.md +++ b/README.md @@ -252,6 +252,15 @@ Mbed TLS can be ported to many different architectures, OS's and platforms. Befo - [What external dependencies does Mbed TLS rely on?](https://tls.mbed.org/kb/development/what-external-dependencies-does-mbedtls-rely-on) - [How do I configure Mbed TLS](https://tls.mbed.org/kb/compiling-and-building/how-do-i-configure-mbedtls) +Mbed TLS is mostly written in portable C99; however, it has a few platform requirements that go beyond the standard, but are met by most modern architectures: + +- bytes must be 8 bits +- all-bits-zero must be a valid representation of the NULL pointer +- signed integers must be represented using two's complement +- integers must not have padding bits in their representation +- `int` and `size_t` must be at least 32 bits wide +- the types `uint8_t`, `uint16_t`, `uint32_t` and their signed equivalents must be available. + PSA cryptography API --------------------