Darryl Green
90ceefce56
Implement psa_hash_*() functions
2020-04-23 12:34:58 +01:00
Jaeden Amero
7ed3f9c998
crypto: Update the service for Mbed Crypto 3.x
...
Update Mbed OS's PSA Crypto service to work with Mbed Crypto 3.x.
- psa_asymmetric_verify() is now called psa_verify_hash().
- psa_asymmetric_sign() is now called psa_sign_hash().
Compatibilty wrappers are provided via crypto_compat.h for source-level
backwards compatibility.
2020-04-07 10:22:00 +01:00
Jaeden Amero
3e53118727
crypto: Add IPC for psa_copy_key()
2019-08-29 14:55:21 +01:00
Jaeden Amero
4eb4b32910
psa: Update crypto service for PSA Crypto 1.0b3
2019-08-29 14:55:21 +01:00
Jaeden Amero
0758d23f00
crypto: Make service parameter names match API
...
Make the service implementation use the same names as the API as
declared in the crypto.h header. This improves readability and
maintainability of the service.
2019-08-23 17:16:10 +01:00
Jaeden Amero
b0c83501a4
crypto: Make IPC declaration order follow crypto.h
...
Order the IPC functions in the same order as the functions are listed in
crypto.h for improved readability.
2019-08-23 17:16:10 +01:00
Jaeden Amero
dafbf27340
crypto: Fix "refence count" typo
...
Rename the reference count variable to something shorter and avoid using
the mispelling "refence".
2019-08-23 17:16:10 +01:00
Martin Kojtal
303d0f0c0c
SPE: fix inject entropy macro
...
Use new TLS macro
2019-05-27 11:50:09 +01:00
Alexander Zilberkant
117e3e82b6
Update PSA includes to autogenerated files
2019-04-30 14:41:09 +03:00
Alexander Zilberkant
ab01bea46d
Delete autogenerated files
2019-04-30 14:10:23 +03:00
itayzafrir
2b81588664
Add message context cleanup helper function
2019-03-28 12:53:11 +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
f106718366
indentation fix
2019-03-05 15:52:41 +02:00
Nir Sonnenschein
4412e39a72
fix resource leaks
2019-03-05 15:07:14 +02:00
Alon
0d550eeeb6
Fix crypto service get key info out params
2019-03-05 14:57:24 +02:00
Oren Cohen
cfb60ec955
Fixes
...
* Add #include <stddef.h> to psa/client.h
* Add Attestation service to TFM
* Update FUTURE_SEQUANA_PSA secure binaries
* Remove MBED_SPM from K64F
* Refactor psa_manifest/sid.h
* Increase stackl size in spm-client tests
* Add handling of errors from psa_get in partitions
2019-03-03 13:30:58 +02:00
Michael Schwarcz
b62c48977f
Review fixes
2019-03-03 10:55:46 +02:00
Michael Schwarcz
98efb44ea8
Remove another psa_identity
2019-03-03 10:55:46 +02:00
Michael Schwarcz
faf5fcf795
Fix typo
2019-03-03 10:55:45 +02:00
Oren Cohen
bd9a738473
Move SPM_PANIC to psa/service.h
2019-03-03 10:55:44 +02:00
Oren Cohen
306a51f6c0
Update psa_get() to return psa_status_t
2019-03-03 10:55:44 +02:00
Michael Schwarcz
f9fbd6ae82
Align PSA SPM tests to TF-M
2019-03-03 10:55:42 +02:00
Oren Cohen
dfbc7b6b7a
Adapt partitons
2019-03-03 10:54:54 +02:00
Oren Cohen
aad114aa55
Genrerate SPM data
2019-03-03 10:54:54 +02:00
Martin Kojtal
7656891179
Merge pull request #9638 from itayzafrir/crypto-access-control
...
Crypto Service - keys access control
2019-02-27 14:47:49 +01:00
itayzafrir
fc2b0726b6
Remove duplicate inclusion of header files
...
Remove duplicate inclusion of psa/client.h and psa/service.h
2019-02-26 12:30:20 +02:00
itayzafrir
ca94dc8673
Define MBEDTLS_PSA_CRYPTO_KEY_FILE_ID_ENCODES_OWNER
...
This enables crypto encoding an owner in key file IDs.
Added a static assert check in client side proxy.
2019-02-26 12:30:20 +02:00
itayzafrir
3992b83a52
crypto service: Assemble bit crypto key ids
2019-02-26 12:30:20 +02:00
itayzafrir
2b9b29455f
crypto service: Remove unused IPC argument and unneeded casts
2019-02-26 12:27:55 +02:00
Cruz Monrreal
ed350dc533
Merge pull request #9758 from NirSonnenschein/large_buffer_support_for_hash_and_mac
...
allow hash or mac on large buffers with less memory use
2019-02-25 10:34:14 -06:00
Nir Sonnenschein
1d4c280d2a
a-style fix for unrelated code
2019-02-25 00:46:06 +02:00
itayzafrir
37cc25726c
Add internal documentation to access control header file
...
This file is for internal use only.
2019-02-24 15:07:54 +02:00
itayzafrir
0c231b0ac9
Move include psa_crypto_core.h to C file
2019-02-24 15:07:54 +02:00
itayzafrir
672712ca8a
Add SPM_PANIC macro for TARGET_TFM
2019-02-24 15:07:54 +02:00
itayzafrir
99032f6967
Change PSA_CRYPTO_ACCESS_CONTROL_RESET into static inline function
2019-02-24 15:07:54 +02:00
itayzafrir
0ecd2c5da1
crypto service: Crypto access control
...
Implement crypto keys access control in crypto service:
- Only the key owner (the partition which created the key)
is allowed to manage (import/export/open/close/destroy/etc.)
the key.
- Only the key owner (the partition which created the key)
is allowed to use the key handle for crypto operations which
require a key handle.
2019-02-24 15:07:54 +02:00
Nir Sonnenschein
84b618704b
fix comment issues
2019-02-24 14:32:36 +02:00