Commit Graph

324 Commits (7794d901f2be0737c02fa30fdae0b9ddf59dadf3)

Author SHA1 Message Date
Martin Kojtal c93c181b6a
Merge pull request #11687 from Patater/update-to-mbedtls-2.20.0d0
Update to Mbed TLS 2.20.0d0 and Mbed Crypto 2.1.0d0
2019-10-31 17:12:31 +01:00
Jaeden Amero 0573ba5fb6 Update Mbed Crypto to version 2.1.0d0 2019-10-15 14:23:26 +01:00
Jaeden Amero f2d42bfa31 Update Mbed TLS to version 2.20.0d0 2019-10-15 14:14:01 +01:00
Alexandre Bourdiol adcf0e2fa5 DISCO_H747I Dualcore support
Add 2 targets for DISCO_H747I dualcore:
* DISCO_H747I      -> for CM7 core
* DISCO_H747I_CM4  -> for CM4 core

Current restrictions:
* TICKLESS deactivated
* DeepSleep not supported (DeepSleep wrapped to sleep)

Warning: use of the same IP (example I2C1) by both core at the same time is not prevented,
but is strongly not recommended.
Some Hardware Semaphore are use for common IP, to manage concurrent access by both cores: Flash, GPIO, RCC.

Warning: Drag and drop of binary to DISCO_H747I will flash CM7.
         In order to flash CM4, one can use STM32 CubeProgrammer tool.
2019-10-14 18:02:57 +02:00
Jaeden Amero eb00fbadb4 tls: Update to Mbed TLS 2.19.1
Update Mbed TLS to Mbed TLS 2.19.1.
2019-09-17 15:24:09 +01:00
Martin Kojtal 9673ac1283
Merge pull request #11474 from dgreen-arm/fix-mbed-crypto-importer
Remove Mbed Crypto source files before importing
2019-09-16 11:25:21 +02:00
Darryl Green 4b0f0ed61c Remove Mbed Crypto source files before importing 2019-09-12 16:04:44 +01:00
Kostiantyn Tkachov 9fc299a1cc Updated mbedTLS CRYPTO target to be more flexibly configured for supported boards 2019-09-12 01:30:54 +02:00
Jaeden Amero ea834ebc2a crypto: Update to Mbed Crypto 2.0.0 2019-09-06 16:15:47 +01:00
Jaeden Amero 612255f8c3 tls: Update to Mbed TLS 2.19.0 2019-09-06 16:15:47 +01:00
Martin Kojtal f0234268f5
Merge pull request #11046 from kotkcy/pr/cy_mbedtls_alt
Initial implementation of Cypress Crypto hardware acceleration for mbedTLS
2019-09-05 09:43:06 +02:00
Kostiantyn Tkachov 235949b1f4 Changed order of config file checking in include defines 2019-09-02 22:17:25 +03:00
Kostiantyn Tkachov 08fd15796a Removed TABs from the ALT source files 2019-09-02 17:00:13 +03:00
Kostiantyn Tkachov cdbf30dd0f Removed obsoleted typedef for mbedtls_be128[] in aes_alt.c 2019-09-02 16:29:00 +03:00
Kostiantyn Tkachov f702d15855 Fixed SHA ctx and ilen parameters checking 2019-09-02 15:20:11 +03:00
Kostiantyn Tkachov 50a8592104 Fixed SHA ctx and ilen parameters checking 2019-09-02 15:20:11 +03:00
Kostiantyn Tkachov 7cbfa84625 Initial commit to add mbedTLS hardware acceleration for Cypress chips to mbed-os sources 2019-09-02 15:20:11 +03:00
Jaeden Amero 4eb4b32910 psa: Update crypto service for PSA Crypto 1.0b3 2019-08-29 14:55:21 +01:00
Jaeden Amero ea17d58b49 mbedtls: Update Mbed TLS and Mbed Crypto
Update Mbed TLS to 2.19.0d0 and Mbed Crypto to 2.0.0d1.
2019-08-29 14:55:05 +01:00
Jaeden Amero b6c24e2e09 crypto: Copy legacy crypto from Mbed Crypto
Mbed TLS no longer provides legacy crypto C or H files. Obtain the files
from Mbed Crypto instead.
2019-08-16 09:20:03 +01:00
Seppo Takalo 3a96f436ea
Merge pull request #10847 from davidsaada/david_ps_add_sec_flags
PSA storage: Conform to "PSA 1.0.0" spec release
2019-07-23 12:05:22 +03:00
David Saada fb3559d841 PSA storage: Conform to "PSA 1.0.0" spec release
- Add the no confidentiality & no replay protection flags
- Add actual size parameter in PS/ITS get APIs
- Change a few size parameters from uint32_t to size_t
2019-07-14 18:50:47 +03:00
Jaeden Amero 045cd67e6d mbedtls: Update to Mbed TLS 2.18.1
Update to Mbed TLS 2.18.1 and Mbed Crypto 1.1.1.
2019-07-12 16:07:43 +01:00
Martin Kojtal d2e5941bc3
Merge pull request #10894 from dgreen-arm/update-mbedtls-makefile
Add adjust-check-config script to mbedtls importer
2019-07-04 15:01:12 +01:00
Darryl Green 8f6667d3d2 Add adjust-check-config script to mbedtls importer
In Mbed OS, there are configuration options with Mbed TLS that we
are more comfortable allowing than we do with Mbed TLS on its own.
Add a check-config adjusting script to enable removing or changing
options in check_config.h
2019-06-26 13:26:18 +01:00
Jaeden Amero 24b1768f53 crypto: Enable use on non-PSA targets
Move PSA Crypto implementation files outside of a TARGET_PSA folder,
enabling use of PSA Crypto APIs on more Mbed OS targets.
2019-06-20 16:11:22 +01:00
Jaeden Amero 1470d06811 mbedtls: PSA entropy is compatible with other entropy
When using Mbed Crypto's PSA Entropy Injection feature on Mbed OS, it is
not required to opt out of having entropy sources added to your entropy
contexts by default (via MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES).

As integrated in Mbed OS, MBEDTLS_PSA_INJECT_ENTROPY is compatible with
actual entropy sources. PSA entropy injection is implemented using the
standard Mbed TLS NV Seed feature, and is as compatible with other
entropy sources as the standard Mbed TLS NV Seed feature which does
support entropy mixing.
2019-06-11 12:43:17 +01:00
Jaeden Amero 4917b10725 mbedtls: Update to Mbed TLS 2.18.0-rc3 2019-06-10 13:05:46 +01:00
Jaeden Amero 03b2c53ff6 mbedtls: Update to Mbed Crypto 1.1.0d2 2019-06-10 09:55:55 +01:00
Martin Kojtal 6a1ab73988
Merge pull request #10770 from Patater/update-to-mbedcrypto-1.1.0d1
mbed-crypto: Update to Mbed Crypto 1.1.0d1
2019-06-07 09:18:53 +01:00
Jaeden Amero 9676edd36b mbed-crypto: Update to Mbed Crypto 1.1.0d1 2019-06-05 16:39:06 +01:00
Jaeden Amero 4feb15c76a mbed-crypto: Automatically enable entropy injection
Automatically enable entropy injection when the NV Seed feature is
requested on PSA targets. Add a warning note describing the state of the
current implementation of the entropy injection API.

Fixes #10720
2019-05-31 09:11:58 +01:00
k-stachowiak 948d4379d8 Update Mbed TLS feature to 2.18.0-rc2 2019-05-28 11:00:16 +01:00
Jaeden Amero 60252b9988 mbedtls: Update to Mbed TLS 2.18.0-rc1
Update Mbed TLS to 2.18.0-rc1. Update Mbed Crypto to 1.1.0d0.
2019-05-23 14:47:42 +01:00
Jaeden Amero 262617935d mbedtls: Update submodules after checkout
When importing, after checking out the specified release, update any
submodules present.
2019-05-23 14:47:42 +01:00
Jaeden Amero ce2de9a9bf mbedtls: Fetch instead of pull
Do a git fetch of mbedtls instead of a pull. We don't need to checkout
development, only the release specified.
2019-05-23 14:47:42 +01:00
Jaeden Amero bb17408a14 mbedtls: Make imported version tag more verbose
When importing development releases of Mbed TLS into Mbed OS, it is
useful to be able to know a the particular git commit hash that was
imported. This change avoids ever creating a VERSION.txt for Mbed TLS
containing only "development", which is fairly useless since one doesn't
know where the development branch was at the time of import.
2019-05-23 14:47:42 +01:00
Jaeden Amero e3d1e27b89 mbedtls: Source crypto from Mbed Crypto
Use Mbed Crypto implementations of crypto. For example, use aes.c from
Mbed Crypto instead of the Mbed TLS copy.
2019-05-23 12:27:34 +01:00
aqin 43759c0c4b Enterprise mode + wifi configuraiton api 2019-05-08 17:52:04 +05:00
Martin Kojtal ac118eaedc
Merge pull request #10164 from Patater/tls-2.17.0
tls: Update Mbed TLS to 2.17.0
2019-03-23 16:33:52 +01:00
Jaeden Amero 20598bcea1 tls: Update Mbed TLS to 2.17.0
There are no differences from the previously imported version of Mbed
TLS other than the version number.
2019-03-19 16:55:56 +00:00
Jaeden Amero 11ef5a0a72 crypto: Update Mbed Crypto to 1.0.0
There are no differences from Mbed Crypto 1.0.0d7 other than the version
number.
2019-03-18 16:17:02 +00:00
avolinski f976ce3c18 Temporary disable Crypto HW accelerator on STM32F439xI chipset due to issue: https://github.com/ARMmbed/mbed-os/issues/10095 2019-03-14 17:00:06 +02:00
Simon Butcher 5285b39c01 Update Mbed TLS to the latest development version
This updates Mbed TLS to the latest development version, commit 535ee4a35b9c
in the Mbed TLS repo.
2019-03-03 23:04:00 +00:00
Simon Butcher 86825a65b6 Move the Mbed TLS target to the development branch
Before moving to the new release of Mbed TLS, this moves the default imported
version of Mbed TLS to the development branch, and will import the HEAD of the
branch, not just a specific release.
2019-03-03 22:59:00 +00:00
Simon Butcher 21c6c90519 Make the storage configs dependent on the PSA label
This commit makes the storage configurations - setting
MBEDTLS_PSA_CRYPTO_STORAGE_C, MBEDTLS_PSA_CRYPTO_STORAGE_ITS_C and unsetting
MBEDTLS_PSA_CRYPTO_STORAGE_FILE_C - dependent on the PSA label being defined for
the target.

Previously these symbols were always defined for all platforms which could
cause problems for targets that don't yet support PSA.
2019-03-03 22:55:38 +00:00
Jaeden Amero d63677f207 crypto: Update to Mbed Crypto 1.0.0d7 2019-02-27 07:24:50 +00:00
Jaeden Amero e5c1e0b7a7 crypto: Update to Mbed Crypto 1.0.0d6 2019-02-22 09:54:01 +00:00
Jaeden Amero c101a224bc crypto: Update to Mbed Crypto 1.0.0d5 2019-02-22 09:53:59 +00:00
David Saada 41eb5cbfd9 Implement PSA protected storage & restructure PSA storage implementation
- Move all PSA storage code under psa/storage directory
- Create a global PSA error codes header, eliminating ITS specific ones
- Create a common header file for PSA storage type definitions,
  eliminating ITS specific ones
- Create a common implementation for PS & ITS
- Implement protected storage feature
- Change ITS test to be common to PS as well
2019-02-21 20:58:59 +02:00