Manuel Pégourié-Gonnard
|
18dff1f226
|
Merge pull request #5871 from superna9999/4153-psa-expose-ec-j-pake
Expose ECJPAKE through the PSA Crypto API
|
2022-09-15 09:25:55 +02:00 |
|
Ronald Cron
|
62e24ba186
|
Merge pull request #6260 from yuhaoth/pr/add-multiple-pre-config-psks
TLS 1.3:Add multiple pre-configured psk test for server
|
2022-09-15 08:58:40 +02:00 |
|
Ronald Cron
|
208257b39f
|
Merge pull request #6259 from yuhaoth/pr/add-psk_ephemeral-possible-group-tests
TLS 1.3: PSK: Add possible group tests for psk with ECDHE
|
2022-09-14 14:21:46 +02:00 |
|
Neil Armstrong
|
6a12a7704d
|
Fix typo in comment
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-09-14 12:17:42 +02:00 |
|
Jerry Yu
|
673b0f9ad3
|
Randomize order of psks
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-09-14 18:02:26 +08:00 |
|
Manuel Pégourié-Gonnard
|
b2407f2b91
|
Merge pull request #6261 from mprse/hash_size_macro
Create MBEDTLS_MAX_HASH_SIZE in hash_info.h
|
2022-09-14 10:00:06 +02:00 |
|
Neil Armstrong
|
fa84962296
|
Add comment explaining PSA PAKE vs Mbedtls J-PAKE API matching strategy
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-09-13 15:19:56 +02:00 |
|
Neil Armstrong
|
3d4966a5cb
|
Move possible input/output steps check inside PSA_ALG_JPAKE handling
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-09-13 15:19:56 +02:00 |
|
Neil Armstrong
|
017db4cdda
|
Drop calls to mbedtls_ecjpake_check()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-09-13 15:19:56 +02:00 |
|
Neil Armstrong
|
1d0294f6ed
|
Clarify sequence length calculation comment
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-09-13 15:19:56 +02:00 |
|
Neil Armstrong
|
cb679f23bc
|
Replace 0s with proper defines when possible
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-09-13 14:43:07 +02:00 |
|
Przemek Stekiel
|
5166954d14
|
Make more use of MBEDTLS_MAX_HASH_SIZE macro
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
|
2022-09-13 12:57:05 +02:00 |
|
Dave Rodgman
|
8cc46aa22c
|
Merge pull request #6275 from daverodgman/fixcopyright
Correct copyright and license in crypto_spe.h
|
2022-09-13 11:23:52 +01:00 |
|
Manuel Pégourié-Gonnard
|
f498910383
|
Merge pull request #6256 from AndrzejKurek/tls-tests-no-md-ssl-opt
ssl-opt.sh with PSA-based hashing
|
2022-09-13 10:37:48 +02:00 |
|
Dave Rodgman
|
53a18f23ac
|
Correct copyright and license in crypto_spe.h
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
|
2022-09-12 17:57:32 +01:00 |
|
Andrzej Kurek
|
0bc834b27f
|
Enable signature algorithms in ssl programs with PSA based hashes
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
|
2022-09-12 05:37:46 -04:00 |
|
Andrzej Kurek
|
d681746a51
|
Split some ssl-opt.sh test cases into two
There's a slightly different behaviour without MBEDTLS_SSL_ASYNC_PRIVATE
that has to be handled.
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
|
2022-09-12 05:37:46 -04:00 |
|
Andrzej Kurek
|
07e3570f8c
|
Add an ssl-opt.sh run to all.sh for the accel_hash_use_psa config
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
|
2022-09-12 05:37:46 -04:00 |
|
Andrzej Kurek
|
934e9cd47f
|
Switch to the new version of hash algorithm checking in ssl-opt.sh
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
|
2022-09-12 05:34:23 -04:00 |
|
Andrzej Kurek
|
9c061a2d19
|
Add a posibility to check for the availability of hash algs to ssl-opt
The new function now dispatches a check for either an MBEDTLS
or PSA define to check for SHA_XXX.
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
|
2022-09-12 05:34:23 -04:00 |
|
Manuel Pégourié-Gonnard
|
f6a6a2d815
|
Merge pull request #6216 from AndrzejKurek/tls-tests-no-md-compat
TLS without MD - compat.sh addition to all.sh hash acceleration tests
|
2022-09-12 10:23:49 +02:00 |
|
Neil Armstrong
|
fb3093a9cb
|
Use PSA_PAKE_ROLE_NONE in PSA_PAKE_OPERATION_INIT macro instead of 0
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-09-08 14:59:32 +02:00 |
|
Neil Armstrong
|
7cd4eacbd4
|
Fix typo in mbedtls_ecjpake_write_shared_key() comment
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-09-08 14:57:55 +02:00 |
|
Neil Armstrong
|
ecb221b1ff
|
Move operation buffer in operation struct and remove dynamic allocation
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-09-08 11:21:07 +02:00 |
|
Przemek Stekiel
|
40afdd2791
|
Make use of MBEDTLS_MAX_HASH_SIZE macro
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
|
2022-09-06 14:18:45 +02:00 |
|
Przemek Stekiel
|
c3f2767c25
|
hash_info.h: add MBEDTLS_MAX_HASH_SIZE macro
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
|
2022-09-06 14:18:39 +02:00 |
|
Neil Armstrong
|
9720b881f5
|
Remove doxygen markup outside doxygen block in psa_pake_sequence comment
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-09-06 11:39:21 +02:00 |
|
Neil Armstrong
|
b39833cff2
|
Fix typo in psa_pake_sequence comment
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-09-06 11:36:02 +02:00 |
|
Neil Armstrong
|
2a73f21878
|
Fixup expected status handling in ecjpake_setup() and add more coverage for psa_pake_set_password_key()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-09-06 11:34:54 +02:00 |
|
Jerry Yu
|
58af2335d9
|
Add possible group tests for psk with ECDHE
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-09-06 14:49:39 +08:00 |
|
Jerry Yu
|
079472b4c9
|
Add multiple pre-configured psk test for server
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-09-06 11:44:18 +08:00 |
|
Neil Armstrong
|
bcd5bd933e
|
Add a comment expliciting usage of internal PAKE step/state/sequence enums
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-09-05 18:34:12 +02:00 |
|
Neil Armstrong
|
78c4e8e9cb
|
Make ecjpake_do_round() return void and use TEST_ASSERT with a descriptive text instead of returning a value
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-09-05 18:08:13 +02:00 |
|
Neil Armstrong
|
51009d7297
|
Add comment in ecjpake_do_round() explaining input errors can be detected any time in the input sequence
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-09-05 17:59:54 +02:00 |
|
Neil Armstrong
|
5bbdb70131
|
Fix style in psa_pake_input()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-09-05 17:54:15 +02:00 |
|
Manuel Pégourié-Gonnard
|
52f83dc471
|
Merge pull request #6244 from AndrzejKurek/pkcs5-no-md
Driver-only hashes: PKCS5
|
2022-09-05 11:01:31 +02:00 |
|
Andrzej Kurek
|
5e0654a324
|
Add a compat.sh run to psa_crypto_config_accel_hash_use_psa
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
|
2022-09-04 09:31:17 -04:00 |
|
Andrzej Kurek
|
c502210291
|
Adjust pkparse test dependencies
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
|
2022-09-02 15:33:20 -04:00 |
|
Andrzej Kurek
|
216baca131
|
pkcs5: improve error handling
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
|
2022-09-02 04:15:34 -04:00 |
|
Andrzej Kurek
|
e3d544c58f
|
Minor PKCS5 improvements
Add consts, more elegant size calculation and
variable initialization.
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
|
2022-09-02 04:07:15 -04:00 |
|
Andrzej Kurek
|
7a32072038
|
Setup / deinitialize PSA in pk tests only if no MD is used
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
|
2022-09-02 04:07:15 -04:00 |
|
Andrzej Kurek
|
3d0dfb99c9
|
Change the pkcs5_pbkdf2_hmac deprecation approach
The shared part has now been extracted and will
be used regardless of the deprecation define.
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
|
2022-09-02 04:07:15 -04:00 |
|
Andrzej Kurek
|
f000471c66
|
Add missing MD dependency for pkcs5_pbkdf2_hmac
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
|
2022-09-02 04:07:15 -04:00 |
|
Andrzej Kurek
|
11265d78bb
|
Remove PKCS5 from the ref config in the migration script
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
|
2022-09-02 04:06:54 -04:00 |
|
Andrzej Kurek
|
26909f348f
|
Add PSA initialization and teardown to tests using pkcs5
If PSA is defined and there is no MD - an initialization
is required.
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
|
2022-09-02 04:05:37 -04:00 |
|
Andrzej Kurek
|
a57267c758
|
Add a possibility to call PSA_INIT without MBEDTLS_PSA_CRYPTO_C
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
|
2022-09-02 04:05:37 -04:00 |
|
Andrzej Kurek
|
37a17e890c
|
Enable PKCS5 in no-md builds in all.sh
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
|
2022-09-02 04:05:33 -04:00 |
|
Andrzej Kurek
|
345a92b321
|
Adjust PKCS5 dependencies in check_config
It's possible to build PKCS5 with PSA instead of MD
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
|
2022-09-02 04:03:25 -04:00 |
|
Andrzej Kurek
|
65bf73ed6a
|
Enable HMAC in config_psa.h regardless of MD availability
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
|
2022-09-02 04:03:25 -04:00 |
|
Andrzej Kurek
|
ed98e95c81
|
Adjust pkcs5 test dependencies
Hashing via PSA is now supported
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
|
2022-09-02 04:03:25 -04:00 |
|