Tuvshinzaya Erdenekhuu
|
3446c2603a
|
Remove NULL pointer validation in sha512.c
Signed-off-by: Tuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com>
|
2022-08-31 10:15:25 +01:00 |
|
Tuvshinzaya Erdenekhuu
|
1db192bc5a
|
Enable invalid param test in sha256
Signed-off-by: Tuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com>
|
2022-08-31 10:15:25 +01:00 |
|
Tuvshinzaya Erdenekhuu
|
696dfb6b1e
|
Re-introduce ENUM validation in sha256.c
Signed-off-by: Tuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com>
|
2022-08-31 10:15:25 +01:00 |
|
Tuvshinzaya Erdenekhuu
|
df2f560316
|
Remove NULL pointer validation in sha256.c
Signed-off-by: Tuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com>
|
2022-08-31 10:15:25 +01:00 |
|
Tuvshinzaya Erdenekhuu
|
6b150ad8fa
|
Remove NULL pointer validation in sha1.c
Signed-off-by: Tuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com>
|
2022-08-31 10:15:25 +01:00 |
|
Tuvshinzaya Erdenekhuu
|
d5ebedffd0
|
Removed unused variable in cipher test
Signed-off-by: Tuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com>
|
2022-08-31 10:14:57 +01:00 |
|
Tuvshinzaya Erdenekhuu
|
104eb7f4a8
|
Enabled invalid param test for gcm
Signed-off-by: Tuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com>
|
2022-08-31 10:14:57 +01:00 |
|
Tuvshinzaya Erdenekhuu
|
c6b8a6704e
|
Re-introduce ENUM validation in gcm.c
Signed-off-by: Tuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com>
|
2022-08-31 10:14:57 +01:00 |
|
Tuvshinzaya Erdenekhuu
|
505ce0b37e
|
Remove NULL pointer validation in gcm.c
Signed-off-by: Tuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com>
|
2022-08-31 10:14:57 +01:00 |
|
Tuvshinzaya Erdenekhuu
|
6c68927948
|
Enabled invalid param test for cipher
Signed-off-by: Tuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com>
|
2022-08-31 10:14:57 +01:00 |
|
Tuvshinzaya Erdenekhuu
|
80a6af6ab5
|
Re-introduce ENUM validation in cipher.c
Signed-off-by: Tuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com>
|
2022-08-31 10:14:57 +01:00 |
|
Tuvshinzaya Erdenekhuu
|
5ce8e52907
|
Remove NULL pointer validation in cipher.c
Signed-off-by: Tuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com>
|
2022-08-31 10:14:57 +01:00 |
|
Tuvshinzaya Erdenekhuu
|
ce8908ed0a
|
Remove NULL pointer validation in chacha20.c
Signed-off-by: Tuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com>
|
2022-08-31 10:14:57 +01:00 |
|
Tuvshinzaya Erdenekhuu
|
c7d7220814
|
Enabled invalid param test in camellia
Signed-off-by: Tuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com>
|
2022-08-31 10:14:57 +01:00 |
|
Tuvshinzaya Erdenekhuu
|
1fd7f98546
|
Re-introduce ENUM validation in camellia.c
Signed-off-by: Tuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com>
|
2022-08-31 10:14:57 +01:00 |
|
Tuvshinzaya Erdenekhuu
|
6291b131ca
|
Remove NULL pointer validation in camellia.c
Signed-off-by: Tuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com>
|
2022-08-31 10:14:57 +01:00 |
|
Tuvshinzaya Erdenekhuu
|
c855bf5285
|
Enabled invalid param test for aes
Signed-off-by: Tuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com>
|
2022-08-31 10:14:57 +01:00 |
|
Tuvshinzaya Erdenekhuu
|
a8ef1565bb
|
Re-introduce ENUM validation in aes.c
Signed-off-by: Tuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com>
|
2022-08-31 10:14:57 +01:00 |
|
Tuvshinzaya Erdenekhuu
|
cac11d7797
|
Remove NULL pointer validation in aes.c
Signed-off-by: Tuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com>
|
2022-08-31 10:14:57 +01:00 |
|
Jerry Yu
|
6688669124
|
replace psk&dhe with psk_or_ephemeral
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-08-31 17:08:34 +08:00 |
|
Neil Armstrong
|
b764fb60aa
|
Remove MBEDTLS_MD_C dep in config_psa.h when ECJPAJE is wanted
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
e5fdf20a79
|
Make ecjpake_rounds test depends on PSA_WANT_ALG_TLS12_PSK_TO_MS
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
eae1dfcc46
|
Change to more efficient error injection in ecjpake_do_round()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
db5b960a7e
|
Permit any psa_pake_input() step to fail when error injected in input
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
f19a3cb613
|
Use the mbedtls_ecjpake_write_shared_key() to input raw shared key material as derivation secret
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
12663092bc
|
Introduce mbedtls_ecjpake_write_shared_key() to export the EC J-PAKE shared key material before the KDF()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
75673abef5
|
Only build ecjpake_do_round() is PSA_WANT_ALG_JPAKE is defined
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
8c2e8a6cda
|
Add ecjpake_rounds_inject tests to exercise error injection
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
f983caf6c4
|
Move JPAKE rounds into a common function, add reordering and error injection
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
db05cbfb86
|
Introduce and use mbedtls_ecjpake_to_psa_error() to translate various ECP/MPI errors to expected PSA errors
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
1e855601ca
|
Fix psa_pake_get_implicit_key() state & add corresponding tests in ecjpake_rounds()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
ed40782628
|
Fix SECP256R1 enable when PSA_WANT_ALG_JPAKE is defined
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
19bb9913c2
|
Update changelog entry for new PSA PAKE feature
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
bb28c56796
|
Add changelog entry for new PSA PAKE feature
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
e92311176a
|
Add missing parentheses on return statements
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
5fb07c6a96
|
No need to check for state in psa_pake_setup()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
a557cb8c8b
|
Fixing XXX_ALG_ECJPAKE to XXX_ALG_JPAKE to match specification
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
fbc4b4aa8e
|
Fix psa_pake_abort() order to correctly free memory when alg is PSA_ALG_JPAKE
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
a24278a74a
|
Add invalid hash ecjpake_setup() test case
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
9c8b492052
|
Add advanced psa_pake_input/psa_pake_output test in ecjpake_setup() test
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
50de0ae0c4
|
Add check calling psa_pake_setup() on an already initialized operation in ecjpake_setup() test
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
98506ab677
|
Add checks for INVALID_ARGUMENT for psa_pake_output/psa_pake_input in ecjpake_setup() test
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
0d001ef3da
|
Check more parameters of psa_pake_output/psa_pake_input
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
645cccd6a8
|
Add checks for BAD_STATE before calling psa_pake_setup() in ecjpake_setup() test
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
707d9574f8
|
Add checks for psa_pake_set_user/psa_pake_set_peer in test_suite_psa_crypto
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
ebd9a03743
|
Cleanup PSA pake test dependency
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
4efd7a463d
|
Check for PSA_ALG_ECJPAKE alg for the ECJPAKE builtin implementation
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
df598abbd3
|
Fix key usage test in psa_pake_set_password_key()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
7616ad28e3
|
Fix guard of ecjpake.h include in crypto_extra.h
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
63212ddf2f
|
Fix formatting of PSA_PAKE_OPERATION_INIT macro
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|