Paul Elliott
|
3c22366695
|
Merge pull request #7863 from valeriosetti/issue7790
PK: parse: fix disparity with private Montgomery keys
|
2023-07-11 18:02:12 +01:00 |
|
Dave Rodgman
|
a824e40749
|
Merge pull request #7500 from tom-cosgrove-arm/fix-armclang-bswap32
Fix MBEDTLS_BSWAP32 on armcc 5
|
2023-07-11 16:48:42 +01:00 |
|
Dave Rodgman
|
98e632f210
|
Re-order mbedtls_mpi to save a few extra bytes with clang
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
|
2023-07-11 16:02:50 +01:00 |
|
Dave Rodgman
|
84eaefa43e
|
Use designated initializers for mbedtls_mpi
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
|
2023-07-11 16:02:46 +01:00 |
|
Valerio Setti
|
7e6aaa1ea5
|
psa: fix missed LEGACY symbols caused by the rebase
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-11 16:59:21 +02:00 |
|
Valerio Setti
|
980383421a
|
config_psa: enable KEY_PAIR_GENERATE only when GENPRIME is defined
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-11 16:32:50 +02:00 |
|
Paul Elliott
|
88f34e3348
|
Merge pull request #7703 from gabor-mezei-arm/7598_clone_the_eco_module
[Bignum] Clone the ECP module
|
2023-07-11 15:00:01 +01:00 |
|
Tom Cosgrove
|
f2b5a13d02
|
Fix MBEDTLS_BSWAP32 on armcc 5
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
|
2023-07-11 14:06:37 +01:00 |
|
Valerio Setti
|
76df8c1900
|
psa: remove redundant GENPRIME when RSA_KEY_PAIR_GENERATE is defined
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-11 14:11:28 +02:00 |
|
Valerio Setti
|
0d5c5e5a38
|
config_psa: enable KEY_PAIR_[IMPORT/EXPORT] as soon as BASIC is enabled
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-11 14:06:00 +02:00 |
|
Valerio Setti
|
a9a3c5581e
|
config_psa: enable GENPRIME when BUILTIN_KEY_TYPE_RSA_KEY_PAIR_GENERATE
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-11 14:06:00 +02:00 |
|
Valerio Setti
|
42796e25cf
|
generate_psa_tests: fix automatically generated tests for RSA
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-11 14:06:00 +02:00 |
|
Valerio Setti
|
acab57b6b4
|
test: replace RSA_KEY_PAIR_LEGACY with proper symbols
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-11 14:06:00 +02:00 |
|
Valerio Setti
|
b2bcedbf9a
|
library: replace MBEDTLS_PSA_BUILTIN_KEY_TYPE_RSA_KEY_PAIR_LEGACY
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-11 14:06:00 +02:00 |
|
Valerio Setti
|
f6d4dfb745
|
library: replace PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_LEGACY symbols with proper ones
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-11 14:06:00 +02:00 |
|
Dave Rodgman
|
4999f15d98
|
Merge pull request #7878 from beni-sandu/development
aesce: use correct target attribute when building with clang
|
2023-07-11 10:54:14 +01:00 |
|
Yanray Wang
|
ffc3c48e4e
|
Remove getter functions of PAKE if no PAKE algorithms are required
Signed-off-by: Yanray Wang <yanray.wang@arm.com>
|
2023-07-11 17:33:22 +08:00 |
|
Valerio Setti
|
1e6063c8ee
|
test: set MBEDTLS_ECP_DP dependency also for Montgomery curves
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-11 11:28:22 +02:00 |
|
Valerio Setti
|
d476faa595
|
test: add more tests for Montgomery's invalid masks
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-11 11:28:22 +02:00 |
|
Valerio Setti
|
aed87994da
|
test: verify that Montgomery keys can be fixed on parsing
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-11 11:28:22 +02:00 |
|
Valerio Setti
|
41b0818bcb
|
ecp: rearrange code in ecp_read_key()
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-11 11:28:22 +02:00 |
|
Valerio Setti
|
4a09dcc6f6
|
test: replace ECP_DP_CURVE25519_ENABLED with PSA_WANT_ECC_MONTGOMERY_255
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-11 11:28:22 +02:00 |
|
Valerio Setti
|
ef80d11c1f
|
test: add proper key requirements in X25519 key parsing tests
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-11 11:28:22 +02:00 |
|
Valerio Setti
|
21d42417f9
|
pkparse: always check all private keys on import
This allows to remove explicit calls to mbedtls_ecp_check_privkey()
in pkparse.c.
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-11 11:28:22 +02:00 |
|
Valerio Setti
|
6b062eeed0
|
pkparse: parse also Weierstrass private keys using ecp_read_key()
This is to hanlde more uniformly Weierstrass and Montgomery curves.
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-11 11:28:22 +02:00 |
|
Valerio Setti
|
5f54020d1a
|
analyze_outcomes: do not skip test about wrong Montgomery private key
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-11 11:28:22 +02:00 |
|
Valerio Setti
|
805e4a0378
|
pkparse: use ecp_read_key() for parsing private key of Montgomery curves
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-11 11:28:22 +02:00 |
|
Valerio Setti
|
0a92121716
|
test: test of Montgomery keys with uncorrect bits whenever PK_HAVE_ECC_KEYS
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-11 11:28:22 +02:00 |
|
Gilles Peskine
|
19280ad9b3
|
Merge pull request #7908 from gilles-peskine-arm/ssl-opt-fix-hrr-test-curves-groups
Fix failure of ssl-opt "TLS 1.3: no HRR in case of PSK key exchange mode"
|
2023-07-11 11:25:26 +02:00 |
|
Manuel Pégourié-Gonnard
|
1937cf8143
|
Improve wording & fix a typo
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
|
2023-07-11 11:14:15 +02:00 |
|
Manuel Pégourié-Gonnard
|
c97775162e
|
Fix inaccurate information about FFDH
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
|
2023-07-11 11:11:20 +02:00 |
|
Gilles Peskine
|
b387fcf59b
|
Adapt names (curves -> groups) in a separately added test case
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
|
2023-07-11 09:19:13 +02:00 |
|
Gilles Peskine
|
6aca2c9613
|
Merge pull request #7716 from mpg/psa-util-internal
Split psa_util.h between internal and public
|
2023-07-10 18:33:23 +02:00 |
|
Gilles Peskine
|
d9f0c76f9e
|
Merge pull request #7879 from tgonzalezorlandoarm/development
tests/test_suite_pem: Augment DES test cases with AES: PEM
|
2023-07-10 18:28:01 +02:00 |
|
Dave Rodgman
|
f3e488ec40
|
Merge pull request #7216 from lpy4105/issue/6840/add-getters-for-some-fields
Add getters for some fields
|
2023-07-10 17:14:11 +01:00 |
|
Manuel Pégourié-Gonnard
|
f614bde912
|
Merge pull request #7656 from mprse/ffdh_tls13_v2_drivers
FFDH 4: driver-only parity testing - with TLS 1.3
|
2023-07-10 13:08:47 +02:00 |
|
Dave Rodgman
|
e183ecef3d
|
Merge pull request #7136 from yanrayw/5692-record-compatsh-test-cases
Record the outcome of each test case in compat.sh
|
2023-07-10 12:08:32 +01:00 |
|
Valerio Setti
|
dda0019e2e
|
ssl_test_lib: fix rebase error
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-10 10:22:51 +02:00 |
|
Manuel Pégourié-Gonnard
|
5c41ae867b
|
Merge pull request #7887 from ronald-cron-arm/fix-hrr-in-psk-kem
tls13: server: Fix spurious HRR
|
2023-07-10 09:58:13 +02:00 |
|
Valerio Setti
|
5bdebb2004
|
ssl_test_lib: fix variable naming for curve group
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-10 09:13:57 +02:00 |
|
Valerio Setti
|
54e23792c8
|
tls: replace numeric values with proper TLS IANA symbols
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-10 09:13:57 +02:00 |
|
Valerio Setti
|
fb6356f003
|
ssl_test_lib: simplify function which prints supported curves
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-10 09:13:57 +02:00 |
|
Valerio Setti
|
deb676442d
|
ssl_test_lib: manage FFDH keys the same way as ECC ones
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-10 09:13:57 +02:00 |
|
Valerio Setti
|
ee3a4d0d38
|
debug: replace occurence of ECP_LIGHT with PK_HAVE_ECC_KEYS
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-10 09:13:57 +02:00 |
|
Valerio Setti
|
6f0441d11e
|
tls: replace occurencies of ECP_LIGHT with PK_HAVE_ECC_KEYS
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-10 09:13:57 +02:00 |
|
Valerio Setti
|
acd32c005f
|
programs: add helper functions for supported EC curves
- get full list, or
- get TLS ID from name
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-10 09:13:57 +02:00 |
|
Valerio Setti
|
0085c2e486
|
test: fix message's text
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-10 09:10:20 +02:00 |
|
Valerio Setti
|
16b70f2b1a
|
test: enabled ssl-opt testing in no_ecp_at_all components
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-10 09:10:20 +02:00 |
|
Valerio Setti
|
49e6907b5b
|
tls: replace ECP_LIGHT occurrencies with PK_HAVE_ECC_KEYS
Up to this point "make test" runs successfully. "ssl-opt" has
not been tested yet.
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-10 09:10:20 +02:00 |
|
Valerio Setti
|
887f823deb
|
test: re-enable TLS and key exchanges in no_ecp_at_all component
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
|
2023-07-10 09:10:20 +02:00 |
|