Yanray Wang
|
fd25654311
|
ssl_tls: remove unnecessary guard
Signed-off-by: Yanray Wang <yanray.wang@arm.com>
|
2023-11-22 10:33:11 +08:00 |
|
Yanray Wang
|
365ee3eaa9
|
ssl_tls: return correct error code if mbedtls_calloc fails
Signed-off-by: Yanray Wang <yanray.wang@arm.com>
|
2023-11-22 10:33:11 +08:00 |
|
Yanray Wang
|
951b3cb400
|
tls13-misc: cli: check parser of max_early_data_size ext
Signed-off-by: Yanray Wang <yanray.wang@arm.com>
|
2023-11-22 10:33:11 +08:00 |
|
Yanray Wang
|
920db45818
|
tls13: early_data: support to parse max_early_data_size ext
Signed-off-by: Yanray Wang <yanray.wang@arm.com>
|
2023-11-22 10:33:11 +08:00 |
|
Dave Rodgman
|
e467d62042
|
Add casts for NEON
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
|
2023-11-21 17:09:46 +00:00 |
|
Dave Rodgman
|
c37ad4432b
|
misc type fixes in ssl
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
|
2023-11-21 17:09:46 +00:00 |
|
Dave Rodgman
|
df4d42106a
|
Use standard byte conversion fns in lms
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
|
2023-11-21 17:09:46 +00:00 |
|
Dave Rodgman
|
a3d0f61aec
|
Use MBEDTLS_GET_UINTxx_BE macro
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
|
2023-11-21 17:09:46 +00:00 |
|
Dave Rodgman
|
b2e8419b50
|
Fix types in entropy_poll.c
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
|
2023-11-21 17:09:46 +00:00 |
|
Dave Rodgman
|
e4a6f5a7ec
|
Use size_t cast for pointer subtractions
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
|
2023-11-21 17:09:46 +00:00 |
|
Manuel Pégourié-Gonnard
|
d4dc354185
|
Merge pull request #8541 from yanrayw/issue/ssl-fix-missing-guard
ssl_tls: add missing macro guard
|
2023-11-21 14:57:47 +00:00 |
|
Gilles Peskine
|
7a715c4537
|
Fix the build with gcc-12 -Wuse-after-free
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
|
2023-11-21 13:42:40 +01:00 |
|
Ryan Everett
|
9f176a2766
|
Fix status assignments when loading persistent keys
Signed-off-by: Ryan Everett <ryan.everett@arm.com>
|
2023-11-21 11:49:57 +00:00 |
|
Ronald Cron
|
effdfe7409
|
Merge pull request #6788 from yuhaoth/pr/fix-gnutls_anti_replay_fail
TLS 1.3: Fix anti replay fail from GnuTLS
|
2023-11-21 08:38:57 +00:00 |
|
Jerry Yu
|
aa5dc24df9
|
Change if to switch case
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:59:25 +08:00 |
|
Jerry Yu
|
60e997205d
|
replace check string
The output has been changed
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:59:25 +08:00 |
|
Jerry Yu
|
713ce1f889
|
various improvement
- improve change log entry
- improve comments
- remove unnecessary statement
- change type of client_age
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:59:25 +08:00 |
|
Jerry Yu
|
4ac648ef20
|
improve readability
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:59:24 +08:00 |
|
Jerry Yu
|
d84c14f80c
|
improve code style
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:59:24 +08:00 |
|
Jerry Yu
|
b2455d2472
|
Guards ticket_creation_time
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:59:24 +08:00 |
|
Jerry Yu
|
9cb953a402
|
improve document
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:59:24 +08:00 |
|
Jerry Yu
|
04fceb782b
|
Add freshness check information into document
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:59:24 +08:00 |
|
Jerry Yu
|
8e0174ac05
|
Add maximum ticket lifetime check
Also add comments for age cast
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:59:24 +08:00 |
|
Jerry Yu
|
472a69260b
|
fix build failure
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:59:20 +08:00 |
|
Jerry Yu
|
cf9135100e
|
fix various issues
- fix CI failure due to wrong usage of ticket_lifetime
- Improve document and comments
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:58:19 +08:00 |
|
Jerry Yu
|
342a555eef
|
rename ticket received
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:58:19 +08:00 |
|
Jerry Yu
|
25ba4d40ef
|
rename ticket_creation to ticket_creation_time
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:58:19 +08:00 |
|
Jerry Yu
|
46c7926f74
|
Add maximum ticket lifetime check
Also add comments for age cast
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:58:19 +08:00 |
|
Jerry Yu
|
034a8b77d1
|
Update document of ticket age tolerance
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:58:19 +08:00 |
|
Jerry Yu
|
28e7c554f4
|
Change the bottom of tolerance window
The unit of ticket time has been changed to milliseconds.
And age difference might be negative
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:58:19 +08:00 |
|
Jerry Yu
|
3ff0b1fda3
|
Cleanup ticket negative tests.
- improve comments
- case 3/4 is for server age check.
- case 5/6 is for client age check
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:58:18 +08:00 |
|
Jerry Yu
|
31b601aa15
|
improve comments
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:58:18 +08:00 |
|
Jerry Yu
|
8cf44953b2
|
guards ticket creation field
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:58:18 +08:00 |
|
Jerry Yu
|
28547c49ed
|
update tests
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:58:18 +08:00 |
|
Jerry Yu
|
ec6d07870d
|
Replace start with ticket_creation
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:58:18 +08:00 |
|
Jerry Yu
|
702fc590ed
|
Add ticket_creation field
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:58:18 +08:00 |
|
Jerry Yu
|
f16efbc78d
|
fix various issues
- Add comments for ticket test hooks
- improve code style.
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:58:18 +08:00 |
|
Jerry Yu
|
03511b00aa
|
Replace c99 fmt macro
For c99 compatible compilers, we use PRI64d
and others use official fix.
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:58:18 +08:00 |
|
Jerry Yu
|
fe38e948b8
|
Add changelog entry for anti_replay_fail
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:58:18 +08:00 |
|
Jerry Yu
|
cebffc3446
|
change time unit of ticket to milliseconds
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2023-11-21 09:58:18 +08:00 |
|
Gilles Peskine
|
8b1a124126
|
Merge pull request #8438 from yuhaoth/pr/disable-stdout-for-config-query-call
Disable stdout in require_*_configs_* functions
|
2023-11-20 18:27:03 +00:00 |
|
Valerio Setti
|
d0eebc1f94
|
ccm/gcm: improve code maintainability
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-11-20 15:17:53 +01:00 |
|
Gilles Peskine
|
885bcfc9d0
|
Merge pull request #7649 from yuhaoth/pr/add-command-for-server9-bad-saltlen
Add command for server9-bad-saltlen
|
2023-11-20 14:07:19 +00:00 |
|
Gilles Peskine
|
473ff34d59
|
Merge pull request #8489 from valeriosetti/issue8482
Make CCM* and CCM independent
|
2023-11-20 14:07:14 +00:00 |
|
Gilles Peskine
|
6267dd59c8
|
Merge pull request #8463 from gilles-peskine-arm/metatest-create
Create a metatest program
|
2023-11-20 14:07:08 +00:00 |
|
Manuel Pégourié-Gonnard
|
a4e7953f59
|
Merge pull request #8527 from lpy4105/issue/6324/driver-only-cipher+aead-tls-compat
[G3] Driver-only cipher+aead: TLS: compat.sh
|
2023-11-20 09:37:06 +00:00 |
|
Ronald Cron
|
97137f91b6
|
Merge pull request #7071 from yuhaoth/pr/tls13-ticket-add-max_early_data_size-field
TLS 1.3 EarlyData: add `max_early_data_size` field for ticket
|
2023-11-20 08:04:57 +00:00 |
|
BrianX7c
|
5c7ab6fe86
|
[cipher.h] Arithmetic overflow in binary left shift operation (MBEDTLS_KEY_BITLEN_SHIFT)
Fixing arithmetic overflow warning (C6297), if compiled in Visual Studio
Signed-off-by: BrianX7c <151365853+BrianX7c@users.noreply.github.com>
|
2023-11-18 11:07:37 +01:00 |
|
Valerio Setti
|
dd426da7b8
|
added changelog
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-11-17 08:33:31 +01:00 |
|
Thomas Daubney
|
dd2a09a22b
|
Introduce demo script for PSA hash program
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
|
2023-11-16 18:45:55 +00:00 |
|