Alexander Zilberkant
117e3e82b6
Update PSA includes to autogenerated files
2019-04-30 14:41:09 +03:00
Alexander Zilberkant
8c5ba9154d
Update PSA code generator
...
Unify TF-M and Mbed-SPM code generators:
- Unify SPM initialization logic:
- All partitions are registered at once
- Test partitions are guarded by #ifndef
- Introduce single template list
- Beatify template files and add "Autogen-do not modify" notice
Prepare for integration with mbed-os build system:
- Generate all the files in a single place
Simplify tools/psa/release.py script
2019-04-30 14:10:23 +03:00
Alexander Zilberkant
ab01bea46d
Delete autogenerated files
2019-04-30 14:10:23 +03:00
Oren Cohen
5342015bb1
TF-M patch: Add necessary include in tfm_ns_lock.h
2019-04-28 15:45:06 +03:00
Michael Schwarcz
ea81bf91c9
TF-M patch: Fix wrong check in tfm_spm_check_client_version (TF-M issue #236 )
...
- Link to bug tracking: https://developer.trustedfirmware.org/T236
(cherry picked from commit 008bf1b2d1
)
2019-04-28 15:45:06 +03:00
Michael Schwarcz
280715f9b7
TF-M patch: Fix tfm_psa_call_venner wrong argument type (TF-M issue #241 )
...
- Link to bug tracking: https://developer.trustedfirmware.org/T241
(cherry picked from commit da01e3411f
)
2019-04-28 15:45:05 +03:00
Michael Schwarcz
78ed870287
TF-M patch: Fix fixed-size partitions stack size (TF-M issue #240 )
...
- Link to bug tracking: https://developer.trustedfirmware.org/T240
(cherry picked from commit fc78640559
)
2019-04-28 15:45:05 +03:00
Michael Schwarcz
9c1e080e39
TF-M patch: Fix service handles not cleared issue (TF-M issue #230 )
...
- Link to bug tracking: https://developer.trustedfirmware.org/T230
(cherry picked from commit 0c23e86989
)
2019-04-28 15:45:05 +03:00
Michael Schwarcz
5d41a2aeae
TF-M patch: Fix tfm_ns_lock_init issue (TF-M issue #239 )
...
- Link to bug tracking: https://developer.trustedfirmware.org/T239
(cherry picked from commit 5f2e4b3911
)
2019-04-28 15:45:04 +03:00
Michael Schwarcz
fb068d2cb4
TF-M patch: General modifications
...
- Remove un-needed files
- Disable printf and uart
- Modify include paths
- Guard macros from mbed_lib with ifndef
(cherry picked from commit 1f30b52488
)
(cherry picked from commit 71cd34df32
)
(cherry picked from commit 185d2865da
)
2019-04-28 15:45:04 +03:00
Oren Cohen
ae6bdc311c
[trusted-firmware-m]: Updated to f2dea5b
2019-04-28 13:14:35 +03:00
Oren Cohen
f51eb6215a
Fix warnings on PSA secure builds
2019-04-17 10:37:51 +03:00
Martin Kojtal
c6b917327b
Merge pull request #10232 from itayzafrir/crypto-service-multipart-operation-abort-fix
...
PSA Crypto Service - multipart operation memory fixes
2019-04-11 11:51:18 +01:00
Michael Schwarcz
5a9dff2e04
TF-M patch: Fix tfm_memory_check issue (TF-M issue #224 )
...
- Add Secure/non-secure code and secure heap to memory check
- Link to bug tracking: https://developer.trustedfirmware.org/T224
2019-04-10 14:20:56 +03:00
Michael Schwarcz
3badc126cf
TF-M patch: Fix wrong check in tfm_spm_check_client_version (TF-M issue #236 )
...
- Link to bug tracking: https://developer.trustedfirmware.org/T236
(cherry picked from commit 008bf1b2d1
)
2019-04-10 14:20:56 +03:00
Michael Schwarcz
ad8ddd8e6e
TF-M patch: Fix tfm_psa_call_venner wrong argument type (TF-M issue #241 )
...
- Link to bug tracking: https://developer.trustedfirmware.org/T241
(cherry picked from commit da01e3411f
)
2019-04-10 14:20:56 +03:00
Michael Schwarcz
f0e4583b72
TF-M patch: Fix fixed-size partitions stack size (TF-M issue #240 )
...
- Link to bug tracking: https://developer.trustedfirmware.org/T240
(cherry picked from commit fc78640559
)
2019-04-10 14:20:56 +03:00
Michael Schwarcz
3fbc73e046
TF-M patch: Fix service handles not cleared issue (TF-M issue #230 )
...
- Link to bug tracking: https://developer.trustedfirmware.org/T230
(cherry picked from commit 0c23e86989
)
2019-04-10 14:20:56 +03:00
Michael Schwarcz
e89c1a68ce
TF-M patch: Fix tfm_ns_lock_init issue (TF-M issue #239 )
...
- Link to bug tracking: https://developer.trustedfirmware.org/T239
(cherry picked from commit 5f2e4b3911
)
2019-04-10 14:20:56 +03:00
Michael Schwarcz
185d2865da
TF-M patch: General modifications
...
- Remove un-needed files
- Disable printf and uart
- Modify include paths
- Guard macros from mbed_lib with ifndef
(cherry picked from commit 1f30b52488
)
(cherry picked from commit 71cd34df32
)
2019-04-10 14:20:56 +03:00
Oren Cohen
4e6ed2bb46
[trusted-firmware-m]: Updated to 0101fd37
2019-04-10 14:20:56 +03:00
itayzafrir
2b81588664
Add message context cleanup helper function
2019-03-28 12:53:11 +02:00
Oren Cohen
268b48c2e5
Run autogen
2019-03-28 10:40:56 +02:00
itayzafrir
a446ee63c7
Rename internal function destroy_hash_clone to clear_hash_clone
2019-03-27 16:13:46 +02:00
itayzafrir
b26890e62d
Do not allocate zero sized buffers - generators
2019-03-27 15:43:19 +02:00
itayzafrir
749b1e30bb
Do not allocate zero sized buffers - rng
2019-03-27 15:43:18 +02:00
itayzafrir
abd9c661ce
Do not allocate zero sized buffers - entropy
2019-03-27 15:43:18 +02:00
itayzafrir
19b83812d4
Do not allocate zero sized buffers - keys
2019-03-27 15:43:17 +02:00
itayzafrir
f3294ef338
Do not allocate zero sized buffers - cipher
2019-03-27 15:43:16 +02:00
itayzafrir
19952d990c
Do not allocate zero sized buffers - aead
2019-03-27 15:43:15 +02:00
itayzafrir
18feb26ca7
Do not allocate zero sized buffers - asymmetric
2019-03-27 15:43:14 +02:00
itayzafrir
979ca1ee55
Do not allocate zero sized buffers - hash
2019-03-27 15:43:12 +02:00
itayzafrir
7b35e763dd
Do not allocate zero sized buffers - mac
2019-03-27 14:29:19 +02:00
itayzafrir
8044f6d038
Fix crypto service abort functionality - generators
2019-03-26 15:32:49 +02:00
itayzafrir
545e669c88
Fix crypto service abort functionality - mac
2019-03-26 15:32:49 +02:00
itayzafrir
da999c6946
Fix crypto service abort functionality - hash
2019-03-26 15:32:49 +02:00
itayzafrir
1b26e0d5f2
Fix crypto service abort functionality - cipher
...
Also refactor cipher setup function to one common function.
2019-03-26 15:32:49 +02:00
Nir Sonnenschein
ca62922c9f
Merge pull request #10036 from itayzafrir/crypto-ipc-refactor
...
Refactor Crypto Service Proxy
2019-03-26 15:20:49 +02:00
itayzafrir
95b0a18ac5
Remove uneeded TODO comment from the code
2019-03-18 10:28:21 +02:00
itayzafrir
c97b90ade1
Unify code style
...
- Use designated initializers for IPC structs
- Unify variables declaration and initialization
2019-03-12 14:31:30 +02:00
itayzafrir
9bc8bcf0d2
Unify sections titles/comments & fix typo in comment
2019-03-12 11:35:35 +02:00
itayzafrir
5c48d58389
Set handle to PSA_NULL_HANDLE when closing IPC connection
2019-03-12 11:35:34 +02:00
itayzafrir
bf05154461
Use PSA_NULL_HANDLE when testing for invalid handles
2019-03-12 10:53:13 +02:00
itayzafrir
caafc34695
Use psa prefix for crypto.h include
2019-03-12 10:51:31 +02:00
Martin Kojtal
83d70199d1
Merge pull request #10027 from kfnta/tfm_fix_ftype
...
TF-M patch: Handle extended stack frame in tfm_svcall_psa_call
2019-03-11 15:48:49 +01:00
itayzafrir
7a15865e8b
Refactor crypto service proxy
2019-03-11 16:21:34 +02:00
Michael Schwarcz
134a169e35
TF-M patch: Handle extended stack frame in tfm_svcall_psa_call
...
- Fix failing attestation test on LPC55S69
- Link to bug tracking: https://developer.trustedfirmware.org/T276
2019-03-11 11:10:14 +02:00
Alexander Zilberkant
661613c998
Rename psa_system_reset to mbed_psa_system_reset
...
add noreturn attributes
update lifecycle service to use psa/error.h
fix doxygen
2019-03-11 10:43:19 +02:00
Martin Kojtal
5c79394756
Merge pull request #10023 from itayzafrir/crypto-compliance-tests-fix
...
Fix crypto compliance tests
2019-03-11 09:20:36 +01:00
itayzafrir
ea36a89ec7
Fix crypto compliance tests
...
Prevent passing null buffer with size which is non-zero.
2019-03-10 15:47:07 +02:00