You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: thirdparty/mbedtls/README.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,7 @@
1
1
README for Mbed TLS
2
2
===================
3
3
4
-
Mbed TLS is a C library that implements cryptographic primitives, X.509 certificate manipulation and the SSL/TLS and DTLS protocols. Its small code footprint makes it suitable for embedded systems.
5
-
6
-
Mbed TLS includes a reference implementation of the [PSA Cryptography API](#psa-cryptography-api). This is currently a preview for evaluation purposes only.
4
+
Mbed TLS is a C library that implements cryptographic primitives (including the [PSA Cryptography API](#psa-cryptography-api)), X.509 certificate manipulation and the SSL/TLS and DTLS protocols. Its small code footprint makes it suitable for embedded systems.
7
5
8
6
Configuration
9
7
-------------
@@ -72,7 +70,13 @@ The following tools are required:
72
70
Depending on your Python installation, you may need to invoke `python` instead of `python3`. To install the packages system-wide, omit the `--user` option.
73
71
* A C compiler for the host platform, for some test data.
74
72
75
-
If you are cross-compiling, you must set the `CC` environment variable to a C compiler for the host platform when generating the configuration-independent files.
73
+
The scripts that generate the configuration-independent files will look for a host C compiler in the following places (in order of preference):
74
+
75
+
1. The `HOSTCC` environment variable. This can be used if `CC` is pointing to a cross-compiler.
76
+
2. The `CC` environment variable.
77
+
3. An executable called `cc` in the current path.
78
+
79
+
Note: If you have multiple toolchains installed, it is recommended to set `CC` or `HOSTCC` to the intended host compiler before generating the files.
76
80
77
81
Any of the following methods are available to generate the configuration-independent files:
78
82
@@ -292,8 +296,7 @@ Arm welcomes feedback on the design of the API. If you think something could be
292
296
293
297
### PSA implementation in Mbed TLS
294
298
295
-
Mbed TLS includes a reference implementation of the PSA Cryptography API.
296
-
However, it does not aim to implement the whole specification; in particular it does not implement all the algorithms.
299
+
Mbed TLS includes an implementation of the PSA Cryptography API. It covers most, but not all algorithms.
297
300
298
301
The X.509 and TLS code can use PSA cryptography for most operations. To enable this support, activate the compilation option `MBEDTLS_USE_PSA_CRYPTO` in `mbedtls_config.h`. Note that TLS 1.3 uses PSA cryptography for most operations regardless of this option. See `docs/use-psa-crypto.md` for details.
0 commit comments