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 |
|
Andrzej Kurek
|
890e78ae66
|
Deprecate mbedtls_pkcs5_pbkdf2_hmac
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
|
2022-09-02 04:03:25 -04:00 |
|
Andrzej Kurek
|
dd36c76f09
|
Provide a version of pkcs5_pbkdf2_hmac without MD usage
Use the new implementation locally
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
|
2022-09-02 04:03:25 -04:00 |
|
Manuel Pégourié-Gonnard
|
97fc247d6a
|
Merge pull request #6232 from AndrzejKurek/pkcs12-no-md
Remove MD dependency from pkcs12 module
|
2022-09-02 09:43:13 +02:00 |
|
Andrzej Kurek
|
e16e6edfce
|
Remove the dependency on MD_MAX_SIZE from PKCS12
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
|
2022-09-01 08:57:59 -04:00 |
|
Andrzej Kurek
|
7bd12c5d5e
|
Remove MD dependency from pkcs12 module
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
|
2022-09-01 08:57:41 -04:00 |
|
Jerry Yu
|
8253486c4f
|
Add session ticket support for server
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-08-31 23:24:25 +08:00 |
|
Jerry Yu
|
95699e72f3
|
Add session ticket identity check
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-08-31 23:24:25 +08:00 |
|
Jerry Yu
|
661dd943b6
|
Add dummy server name extension paser
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-08-31 23:24:25 +08:00 |
|
Jerry Yu
|
e976492a11
|
Add session ticket tests for client
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-08-31 23:24:25 +08:00 |
|
Jerry Yu
|
e6527512d2
|
Add obfuscated_ticket_age write
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-08-31 23:24:25 +08:00 |
|
Jerry Yu
|
49d63f8c36
|
Implement generate resumption master secret
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-08-31 23:24:25 +08:00 |
|
Jerry Yu
|
db8c5faed7
|
Add getting session ticket for client
- Move ssl_get_psk_to_offer to `ssl_tls13_client.c`
- Rename to `ssl_tls13_get_psk_to_offer`
- Add session ticket parser
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-08-31 23:24:25 +08:00 |
|
Ronald Cron
|
e00d6d6b55
|
Merge pull request #6135 from yuhaoth/pr/tls13-finalize-external-psk-negotiation
TLS 1.3: SRV: Finalize external PSK negotiation
|
2022-08-31 17:21:57 +02:00 |
|
Tuvshinzaya Erdenekhuu
|
5893ab02b6
|
Re-introduce ENUM validation in sha512.c
Signed-off-by: Tuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com>
|
2022-08-31 10:15:25 +01:00 |
|
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
|
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
|
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
|
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
|
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
|
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 |
|
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
|
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
|
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
|
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
|
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
|
6b1f99f5f1
|
Use proper buffer size macro for allocation in psa_pake_ecjpake_setup()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
5282393091
|
Remove useless braces in psa_crypto_pake.c
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
c29f8477e2
|
Fix comments in psa_crypto_pake.c
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
a4cc7d6d6b
|
Add PSA PAKE buildin implementation
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Neil Armstrong
|
4b5710f8a0
|
Allow KEY_TYPE_PASSWORD/KEY_TYPE_PASSWORD_HASH to be imported
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-08-31 10:49:18 +02:00 |
|
Jerry Yu
|
1e05b6dd6d
|
fix coding style and unnecessary assignment
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-08-31 10:35:52 +08:00 |
|
Manuel Pégourié-Gonnard
|
bf22a2500b
|
Merge pull request #6208 from AndrzejKurek/tls-tests-no-md-structured
Remove the dependency on MD from TLS 1.2 tests
|
2022-08-30 12:34:37 +02:00 |
|
Dave Rodgman
|
0edfa9dd26
|
Merge pull request #6207 from daverodgman/ticket_time
Fix type used for capturing TLS ticket generation time
|
2022-08-30 10:03:06 +01:00 |
|
Jerry Yu
|
e5834fd0d7
|
remove unnecessary test
also optimize check sum
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-08-29 20:33:33 +08:00 |
|
Jerry Yu
|
0baf907e11
|
remove select_ciphersuite
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-08-25 11:21:04 +08:00 |
|
Jerry Yu
|
c5a23a0f12
|
fix various issues
- code style
- variable initialize
- update comments
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-08-25 11:09:35 +08:00 |
|