-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release candidate for mbed-os-5.12.0-rc2 #10067
Merged
Merged
Changes from all commits
Commits
Show all changes
110 commits
Select commit
Hold shift + click to select a range
e16d2d8
Reduce flash page size from 512 to 32 bytes in PSOC6 based boards
12390f6
tools: Add find_secure_image function
259e257
Add assertions and tests
7321545
Add missing license header
e8246bb
Compare non-secure image name without extension
f297f54
BLE - Avoid calling v2 API in GenericGap::reset_ if not required.
pan- 9a9edd6
BLE - Call SecInit unconditionally as it is required by low HCI level…
pan- 35c48c2
BLE - Register the Att call handler whenever the GATT_SERVER is avail…
pan- 7f0b4d6
Doxygen add TF-M flags
alzix 27f6e3b
align doxygen files
alzix 0d7e548
Disable SPM tests with TF-M issues for TF-M targets
46e0dcc
TF-M: Increase TFM_SPM_MAX_ROT_SERV_NUM from 30 to 32
ee08d13
Attestation doxygen
a5019e6
Secure binaries release script
d3fd113
Add option to run on a single target
7cb3205
Fix crypto service get key info out params
a79d9d1
fix resource leaks
6556f94
Update PSoC 6 pre-build secure partition
0cc6d1a
indentation fix
bc8f532
Add README.md for tools/psa
abc90c3
Remove python from code block
abbb2ff
Fix typo
3e6723c
Edit README.md
d2bf036
Remove unused type which was conflicting wiith errno.h
678ac50
Updated to cb58d2c
9621a04
Delete unneeded .mk files after test import
a5e77c6
add imported PSA compliance tests to astyle ignore list
7a80553
changes to test infrastructure to adapt it to green-tea
4a474ce
add main functions to each compliance test
1333f31
Allow PS test03 with PS_ALLOW_ENTIRE_STORAGE_FILL flag
932c097
rework for mbed-os intf for ACK tests
339d481
Define psa_storage_info_t for backward compatibility
dc50ccb
Fix for resource leak in crypto compliance test 43
c178c13
update importer hashes for latest fixes
1d56ad4
use common flag to allow test 3 for PS and ITS
25be6fe
update importer hashes for latest changes
e494c3c
removed redundant code + added comment
3a12cf6
Remove _NS & _PSA from test_spec.json
orenc17 17312d4
TF-M config: Add max_ns_thread_count parameter
5efec7e
Fix tool
848c2da
synchronize latest fix to tests
4df870c
add comment explaining attestation keys for test use
0ec8125
remove sid.h as it is now supplied by PSA
65f632f
add mbed_lib.json to prevent inclusion in bare-metal builds
bb023fe
Test for sector information
theotherjimmy 9873da1
Recompute sector information for STM32xxxxx
theotherjimmy ce341d2
Add dummy sector information for R7S72100
theotherjimmy b1d1299
Recompute sector information for Nuvoton
theotherjimmy 78a0057
Added support for PSA target to WIFI_BT board
42f9c86
Fixed type of STDIO UART initialization variable.
69e8b73
PSOC6 deep-sleep changes
cy-vivekp 6ea1721
adding flash iap component to cypress psoc6 m4
ShuopengDeng d29baa0
TARGET_PSOC6: Fix incorrect serial clock divider
cf4e436
Fixed issue with wrong floating point literal
cy-opm b2105b1
Rename PSoC 6 assembler files from .s to .S
cypress-neil 7aa5208
Rebuild PSoC6 secure binaries
bbc2502
Squashed 'features/nanostack/sal-stack-nanostack/' changes from 76da6…
0cf73fc
NUCLEO_L073RZ: IAR linker script issue
sarahmarshy 322ca83
Add build profile option
orenc17 4276779
Removed cymetadata section from FUTURE_SEQUANA targets
lrusinowicz 2aa0e5f
MCUXpresso: Update usticker driver
mmahadevan108 981b625
MCUXpresso: Update the LPC GPIO drivers
mmahadevan108 270374b
MCUXpresso: Update LPC I2C, SPI, UART HAL drivers
mmahadevan108 7d2f50b
MCUXpresso: Update LPC HAL flash driver
mmahadevan108 b818c82
MCUXpresso: Update LPC TRNG driver
mmahadevan108 1dc9a67
MCUXpresso: In pin_function() use mask macro instead of a hard-coded …
mmahadevan108 9efcd95
MCUXpresso: Update SPI driver
mmahadevan108 69c4ca3
Add support for LPC55S69
mmahadevan108 b2eb045
MCUXpresso: Update the sleep implementation for LPC55S69 differences
mmahadevan108 192040c
LPC55S69: Remove FPU_PRESENT and DSP_PRESENT defines
mmahadevan108 80006c8
LPC55S69: Add a ctimer for usticker to be used in the secure domain
mmahadevan108 e2366c3
MCUXpresso: Update Analogin support
mmahadevan108 f1d90c9
LPC55S69: Fix the I2C SDK driver
mmahadevan108 560a450
LPC55S69: Update the KVStore config files
mmahadevan108 3928ea6
LPC55S69: Add post processing script
mmahadevan108 6b61c28
LPC55S69: Use find_secure_image in post-build and add prebuilt secure…
66c1af1
LPC55S69: Change post-build hook to create HEX
a4e5766
Updated LOOP_SCALER value for Cortex-M33
mmahadevan108 5e312ee
Increase the stack pointer check range
mmahadevan108 01f3a0c
Reduce the number of flash operation related veneer table entries
mmahadevan108 941b1c9
Updated the binaries
mmahadevan108 92e076e
Allow baremetal to build by removing PSA
kegilbert b984dbd
Generate BLE Random Static Address on U-blox Odin-W2 platform
960d52b
Reset ITS before the test start
orenc17 2c49ae1
Fix error codes for psa_attestation_inject_key
orenc17 8153724
add needed crypto macros to secure side
ef36893
Fix crypto compliance tests
422bf25
PSoC 6 Correct TRNG behaviour
a9ad0f9
Update docs for PSA tools
orenc17 799deb8
Add git commit option
orenc17 12d63be
Enhancements
orenc17 6453009
Rename psa_system_reset to mbed_psa_system_reset
alzix 0ac2cd3
TF-M patch: Handle extended stack frame in tfm_svcall_psa_call
66afa69
Update tfm_importer.json
4972263
Minor changes fixing the script from getting stuck
3a4fd57
change the include to mbedtls/config.h
e4ae714
update crypto complience tests importer, fix include to mbedtls config
5d3059c
remove hidden tad
c7c0af8
Add spi_get_peripheral_name to MCUEpresso spi_api
fc73e45
Use Mbed OS coding style
cceb16c
Add new mbed-os-example-attestation example
adbridge bd3eeea
Remove unecessary _S and _NS target variants from new example
adbridge 22e2a0d
Looks like only the LPC55S69_NS flavour of target is required.
adbridge 0c87ded
Fix cut/paste error in the new example github link
adbridge 561d9e8
qualify cordio pal includes
paul-szczepanek-arm 91ea832
Bugfix: send the correct parameter to _get_target_info()
9210b34
"Update secure binaries for CY8CKIT_062_WIFI_BT_M0_PSA"
8c216f8
"Update secure binaries for FUTURE_SEQUANA_M0_PSA"
a04507a
"Update secure binaries for LPC55S69_S"
1668a9d
move init of test into greentea init function
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
{ | ||
"name": "tfm-s", | ||
"macros": ["MBED_FAULT_HANDLER_DISABLED", "BYPASS_NVSTORE_CHECK=1"] | ||
"macros": ["MBED_FAULT_HANDLER_DISABLED", "BYPASS_NVSTORE_CHECK=1"], | ||
"config": { | ||
"max_ns_thread_count": { | ||
"help": "maximum allowed number of non-secure threads", | ||
"macro_name": "TFM_MAX_NS_THREAD_COUNT", | ||
"value": 10 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
components/TARGET_PSA/TESTS/compliance_attestation/psa_attestation_testlist.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# PSA Initial Attestation Testcase checklist | ||
|
||
| Test | Return value | API | Test Algorithm | Test Cases | | ||
|-----------|--------------------------------------|-------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| test_a001 | PSA_ATTEST_ERR_SUCCESS | psa_initial_attest_get_token()<br />psa_initial_attest_get_token_size() | 1. Provide correct inputs to API with described challenge sizes <br />2. Expect API to return this define as return value each time <br />3. Verify the token | 1. Challenge_size = 32 <br />2. Challenge_size = 48 <br />3. Challenge_size = 64 | | ||
| | PSA_ATTEST_ERR_INVALID_INPUT | psa_initial_attest_get_token()<br />psa_initial_attest_get_token_size() | 1. Provide described challenge sizes to the API along with other valid parameters <br />2. Expect API to return this define as return value each time | 1. Challenge_size is zero <br />2. Invalid challenge size between 0 and 32 <br />3. Invalid challenge size between 32 and 64 <br />4. Challenge_size is greater than MAX_CHALLENGE_SIZE | | ||
| | PSA_ATTEST_ERR_TOKEN_BUFFER_OVERFLOW | psa_initial_attest_get_token() | 1. Provide described taken size to the API along with other valid parameters <br />2. Expect API to return this define as return value each time | Pass the token_size which less than actual/required token size | | ||
| | PSA_ATTEST_ERR_INIT_FAILED | psa_initial_attest_get_token()<br />psa_initial_attest_get_token_size() | Can't simulate. Test can't generate stimulus where attestation initialisation fails | | | ||
| | PSA_ATTEST_ERR_CLAIM_UNAVAILABLE | psa_initial_attest_get_token() | Can't simulate. Test can't generate stimulus where claim can unavailable | | | ||
| | PSA_ATTEST_ERR_GENERAL | psa_initial_attest_get_token()<br />psa_initial_attest_get_token_size() | Can't simulate. Test can't generate stimulus where unexpected error happened during API operation | | | ||
|
||
## Note | ||
|
||
1. In verifying the token, only the data type of claims and presence of the mandatory claims are checked and the values of the claims are not checked. | ||
2. Checks related to token signature validation will be part of future release | ||
|
||
# License | ||
Arm PSA test suite is distributed under Apache v2.0 License. | ||
|
||
-------------- | ||
|
||
*Copyright (c) 2019, Arm Limited and Contributors. All rights reserved.* |
9 changes: 9 additions & 0 deletions
9
components/TARGET_PSA/TESTS/compliance_attestation/test_a001/main.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "val_interfaces.h" | ||
#include "pal_mbed_os_intf.h" | ||
|
||
void test_entry_a001(val_api_t *val_api, psa_api_t *psa_api); | ||
|
||
int main(void) | ||
{ | ||
test_start(test_entry_a001, COMPLIANCE_TEST_ATTESTATION); | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ARMmbed/mbed-os-psa this will need a license header for rc3