mbedtls/3rdparty/p256-m
Gilles Peskine e820c0abc8 Update spelling "mbed TLS" to "Mbed TLS"
The official spelling of the trade mark changed from all-lowercase "mbed"
to normal proper noun capitalization "Mbed" a few years ago. We've been
using the new spelling in new text but still have the old spelling in a
lot of text. This commit updates most occurrences of "mbed TLS":

```
sed -i -e 's/mbed TLS/Mbed TLS/g' $(git ls-files ':!ChangeLog' ':!tests/data_files/**' ':!tests/suites/*.data' ':!programs/x509/*' ':!configs/tfm*')
```

Justification for the omissions:

* `ChangeLog`: historical text.
* `test/data_files/**`, `tests/suites/*.data`, `programs/x509/*`: many
  occurrences are significant names in certificates and such. Changing
  the spelling would invalidate many signatures and tests.
* `configs/tfm*`: this is an imported file. We'll follow the upstream
  updates.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2023-09-12 19:18:17 +02:00
..
p256-m Disable p256-m asm on aarch64 2023-08-29 13:21:43 +01:00
CMakeLists.txt Minor changes to documentation and code comments for clarity 2023-04-28 17:55:02 +01:00
Makefile.inc Integrate p256-m as an example driver alongside Mbed TLS and write documentation for the example. 2023-04-28 17:54:09 +01:00
p256-m_driver_entrypoints.c Minor changes to documentation and code comments for clarity 2023-04-28 17:55:02 +01:00
p256-m_driver_entrypoints.h Update spelling "mbed TLS" to "Mbed TLS" 2023-09-12 19:18:17 +02:00
README.md Add warnings to documentation stating that p256-m code may be out of date with upstream, plus other minor grammatical fixes. 2023-04-28 17:54:15 +01:00

The files within the p256-m/ subdirectory originate from the p256-m GitHub repository, which is distributed under the Apache 2.0 license. They are authored by Manuel Pégourié-Gonnard. p256-m is a minimalistic implementation of ECDH and ECDSA on NIST P-256, especially suited to constrained 32-bit environments. Mbed TLS documentation for integrating drivers uses p256-m as an example of a software accelerator, and describes how it can be integrated alongside Mbed TLS. It should be noted that p256-m files in the Mbed TLS repo will not be updated regularly, so they may not have fixes and improvements present in the upstream project.

The files p256-m.c and .h, along with the license, have been taken from the p256-m repository. It should be noted that p256-m deliberately does not supply its own cryptographically secure RNG function. As a result, the PSA RNG is used, with p256_generate_random() wrapping psa_generate_random().