Przemek Stekiel 
							
						 
					 
					
						
						
							
						
						ae4ed30435 
					 
					
						
						
							
							Fix naming: random bytes are the seed (not salt) in derivation process  
						
						... 
						
						
						
						Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com > 
						
						
					 
					
						2022-04-22 14:52:27 +02:00 
						 
				 
			
				
					
						
							
							
								Przemek Stekiel 
							
						 
					 
					
						
						
							
						
						1f02703e53 
					 
					
						
						
							
							setup_psa_key_derivation(): add optional salt parameter  
						
						... 
						
						
						
						Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com > 
						
						
					 
					
						2022-04-22 14:52:27 +02:00 
						 
				 
			
				
					
						
							
							
								Manuel Pégourié-Gonnard 
							
						 
					 
					
						
						
							
						
						55132c6a9a 
					 
					
						
						
							
							Merge pull request  #5703  from superna9999/5322-ecdh-remove-legacy-context  
						
						... 
						
						
						
						TLS ECDH 4: remove legacy context 
						
						
					 
					
						2022-04-22 14:27:06 +02:00 
						 
				 
			
				
					
						
							
							
								Neil Armstrong 
							
						 
					 
					
						
						
							
						
						f2c82f0a3b 
					 
					
						
						
							
							Introduce MBEDTLS_SSL_SOME_SUITES_USE_CBC_ETM macro to determine if Encrypt-then-MAC with CBC is used in a ciphersuite  
						
						... 
						
						
						
						Signed-off-by: Neil Armstrong <narmstrong@baylibre.com > 
						
						
					 
					
						2022-04-22 14:25:59 +02:00 
						 
				 
			
				
					
						
							
							
								Neil Armstrong 
							
						 
					 
					
						
						
							
						
						ccc074e44d 
					 
					
						
						
							
							Use correct condition to use encrypt_then_mac in ssl_tls.c  
						
						... 
						
						
						
						Signed-off-by: Neil Armstrong <narmstrong@baylibre.com > 
						
						
					 
					
						2022-04-22 14:25:59 +02:00 
						 
				 
			
				
					
						
							
							
								Neil Armstrong 
							
						 
					 
					
						
						
							
						
						d1be7674a4 
					 
					
						
						
							
							Use PSA_BLOCK_CIPHER_BLOCK_LENGTH instead of PSA_BLOCK_CIPHER_BLOCK_MAX_SIZE in ssl_tls12_populate_transform()  
						
						... 
						
						
						
						Signed-off-by: Neil Armstrong <narmstrong@baylibre.com > 
						
						
					 
					
						2022-04-22 14:25:59 +02:00 
						 
				 
			
				
					
						
							
							
								Neil Armstrong 
							
						 
					 
					
						
						
							
						
						6b27c97a91 
					 
					
						
						
							
							Rename mbedtls_get_mode() to mbedtls_ssl_get_mode()  
						
						... 
						
						
						
						Signed-off-by: Neil Armstrong <narmstrong@baylibre.com > 
						
						
					 
					
						2022-04-22 14:25:59 +02:00 
						 
				 
			
				
					
						
							
							
								Neil Armstrong 
							
						 
					 
					
						
						
							
						
						ab555e0a6c 
					 
					
						
						
							
							Rename mbedtls_get_mode_from_XXX to mbedtls_ssl_get_mode_from_XXX  
						
						... 
						
						
						
						Signed-off-by: Neil Armstrong <narmstrong@baylibre.com > 
						
						
					 
					
						2022-04-22 14:25:59 +02:00 
						 
				 
			
				
					
						
							
							
								Neil Armstrong 
							
						 
					 
					
						
						
							
						
						a0eeb7f470 
					 
					
						
						
							
							Remove cipher_info in ssl_tls12_populate_transform() when USE_PSA_CRYPTO is defined  
						
						... 
						
						
						
						Signed-off-by: Neil Armstrong <narmstrong@baylibre.com > 
						
						
					 
					
						2022-04-22 14:25:59 +02:00 
						 
				 
			
				
					
						
							
							
								Neil Armstrong 
							
						 
					 
					
						
						
							
						
						7fea33ea4d 
					 
					
						
						
							
							Use mbedtls_get_mode_from_ciphersuite() in ssl_tls12_populate_transform()  
						
						... 
						
						
						
						Signed-off-by: Neil Armstrong <narmstrong@baylibre.com > 
						
						
					 
					
						2022-04-22 14:25:59 +02:00 
						 
				 
			
				
					
						
							
							
								Neil Armstrong 
							
						 
					 
					
						
						
							
						
						4bf4c8675f 
					 
					
						
						
							
							Introduce mbedtls_get_mode_from_ciphersuite() by reusing mbedtls_get_mode_from_transform() logic  
						
						... 
						
						
						
						Signed-off-by: Neil Armstrong <narmstrong@baylibre.com > 
						
						
					 
					
						2022-04-22 14:25:59 +02:00 
						 
				 
			
				
					
						
							
							
								Neil Armstrong 
							
						 
					 
					
						
						
							
						
						8a0f3e8cf0 
					 
					
						
						
							
							Introduce mbedtls_ssl_mode_t & mbedtls_get_mode_from_transform()  
						
						... 
						
						
						
						Signed-off-by: Neil Armstrong <narmstrong@baylibre.com > 
						
						
					 
					
						2022-04-22 14:25:26 +02:00 
						 
				 
			
				
					
						
							
							
								XiaokangQian 
							
						 
					 
					
						
						
							
						
						4d3a60475c 
					 
					
						
						
							
							Change default config version to development style  
						
						... 
						
						
						
						Change-Id: I9c1088f235524211e727d03b96de8d82e60bd426
Signed-off-by: XiaokangQian <xiaokang.qian@arm.com > 
						
						
					 
					
						2022-04-21 13:46:17 +00:00 
						 
				 
			
				
					
						
							
							
								XiaokangQian 
							
						 
					 
					
						
						
							
						
						060d867598 
					 
					
						
						
							
							Update parse_key_share in server side and version config  
						
						... 
						
						
						
						Change-Id: Ic91c061027d0ee4dca2055df21809cbb4388f3ef
Signed-off-by: XiaokangQian <xiaokang.qian@arm.com > 
						
						
					 
					
						2022-04-21 09:24:56 +00:00 
						 
				 
			
				
					
						
							
							
								XiaokangQian 
							
						 
					 
					
						
						
							
						
						75d40ef8cb 
					 
					
						
						
							
							Refine code base on review  
						
						... 
						
						
						
						Remove useless hrr code
Share validate_cipher_suit between client and server
Fix test failure when tls13 only in server side
Change-Id: I5d6a7932bd8448ebf542bc86cdcab8862bc28e9b
Signed-off-by: XiaokangQian <xiaokang.qian@arm.com > 
						
						
					 
					
						2022-04-20 11:05:24 +00:00 
						 
				 
			
				
					
						
							
							
								XiaokangQian 
							
						 
					 
					
						
						
							
						
						8f9dfe41c0 
					 
					
						
						
							
							Fix comments about coding styles and test cases  
						
						... 
						
						
						
						Change-Id: I70ebc05e9dd9fa084d7b0ce724a25464c3425e22
Signed-off-by: XiaokangQian <xiaokang.qian@arm.com > 
						
						
					 
					
						2022-04-20 07:45:50 +00:00 
						 
				 
			
				
					
						
							
							
								XiaokangQian 
							
						 
					 
					
						
						
							
						
						ed582dd023 
					 
					
						
						
							
							Update based on comments  
						
						... 
						
						
						
						Remove cookie support from server side
Change code to align with coding styles
Re-order functions of client_hello
Change-Id: If31509ece402f8276e6cac37f261e0b166d05e18
Signed-off-by: XiaokangQian <xiaokang.qian@arm.com > 
						
						
					 
					
						2022-04-20 07:43:48 +00:00 
						 
				 
			
				
					
						
							
							
								XiaokangQian 
							
						 
					 
					
						
						
							
						
						c4b8c99a38 
					 
					
						
						
							
							Rebase and solve conflicts and issues  
						
						... 
						
						
						
						Change-Id: I17246c5b2f8a8ec4989c8b0b83b55cad0491b78a
Signed-off-by: XiaokangQian <xiaokang.qian@arm.com > 
						
						
					 
					
						2022-04-20 07:43:48 +00:00 
						 
				 
			
				
					
						
							
							
								Paul Elliott 
							
						 
					 
					
						
						
							
						
						a2da9c7e45 
					 
					
						
						
							
							Merge pull request  #5631  from gstrauss/enum-tls-vers  
						
						... 
						
						
						
						Unify internal/external TLS protocol version enums 
						
						
					 
					
						2022-04-19 17:05:26 +01:00 
						 
				 
			
				
					
						
							
							
								Glenn Strauss 
							
						 
					 
					
						
						
							
						
						041a37635b 
					 
					
						
						
							
							Remove some tls_ver < MBEDTLS_SSL_VERSION_TLS1_2 checks  
						
						... 
						
						
						
						mbedtls no longer supports earlier TLS protocol versions
Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com > 
						
						
					 
					
						2022-04-14 15:40:14 -04:00 
						 
				 
			
				
					
						
							
							
								Glenn Strauss 
							
						 
					 
					
						
						
							
						
						60bfe60d0f 
					 
					
						
						
							
							mbedtls_ssl_ciphersuite_t min_tls_version,max_tls_version  
						
						... 
						
						
						
						Store the TLS version in tls_version instead of major, minor version num
Note: existing application use which accesses the struct member
(using MBEDTLS_PRIVATE) is not compatible, as the struct is now smaller.
Reduce size of mbedtls_ssl_ciphersuite_t
members are defined using integral types instead of enums in
order to pack structure and reduce memory usage by internal
ciphersuite_definitions[]
Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com > 
						
						
					 
					
						2022-04-14 15:40:12 -04:00 
						 
				 
			
				
					
						
							
							
								Glenn Strauss 
							
						 
					 
					
						
						
							
						
						2dfcea2b9d 
					 
					
						
						
							
							mbedtls_ssl_config min_tls_version, max_tls_version  
						
						... 
						
						
						
						Store the TLS version in tls_version instead of major, minor version num
Note: existing application use which accesses the struct member
(using MBEDTLS_PRIVATE) is not compatible on little-endian platforms,
but is compatible on big-endian platforms.  For systems supporting
only TLSv1.2, the underlying values are the same (=> 3).
New setter functions are more type-safe,
taking argument as enum mbedtls_ssl_protocol_version:
mbedtls_ssl_conf_max_tls_version()
mbedtls_ssl_conf_min_tls_version()
Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com > 
						
						
					 
					
						2022-04-14 15:39:43 -04:00 
						 
				 
			
				
					
						
							
							
								Glenn Strauss 
							
						 
					 
					
						
						
							
						
						da7851c825 
					 
					
						
						
							
							Rename mbedtls_ssl_session minor_ver to tls_version  
						
						... 
						
						
						
						Store the TLS version instead of minor version number in tls_version.
Note: struct member size changed from unsigned char to uint16_t
Due to standard structure padding, the structure size does not change
unless alignment is 1-byte (instead of 2-byte or more)
Note: existing application use which accesses the struct member
(using MBEDTLS_PRIVATE) is compatible on little-endian platforms,
but not compatible on big-endian platforms.  The enum values for
the lower byte of MBEDTLS_SSL_VERSION_TLS1_2 and of
MBEDTLS_SSL_VERSION_TLS1_3 matches MBEDTLS_SSL_MINOR_VERSION_3 and
MBEDTLS_SSL_MINOR_VERSION_4, respectively.
Note: care has been taken to preserve serialized session format,
which uses only the lower byte of the TLS version.
Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com > 
						
						
					 
					
						2022-04-14 15:23:57 -04:00 
						 
				 
			
				
					
						
							
							
								Glenn Strauss 
							
						 
					 
					
						
						
							
						
						07c641605e 
					 
					
						
						
							
							Rename mbedtls_ssl_transform minor_ver to tls_version  
						
						... 
						
						
						
						Store the TLS version in tls_version instead of minor version number.
Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com > 
						
						
					 
					
						2022-04-14 15:23:54 -04:00 
						 
				 
			
				
					
						
							
							
								Glenn Strauss 
							
						 
					 
					
						
						
							
						
						dff84620a0 
					 
					
						
						
							
							Unify internal/external TLS protocol version enums  
						
						... 
						
						
						
						Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com > 
						
						
					 
					
						2022-04-14 13:45:20 -04:00 
						 
				 
			
				
					
						
							
							
								Neil Armstrong 
							
						 
					 
					
						
						
							
						
						f3f46416e3 
					 
					
						
						
							
							Remove ecdh_ctx variable, init & free when USE_PSA_CRYPTO isn't selected  
						
						... 
						
						
						
						Signed-off-by: Neil Armstrong <narmstrong@baylibre.com > 
						
						
					 
					
						2022-04-12 14:43:39 +02:00 
						 
				 
			
				
					
						
							
							
								Neil Armstrong 
							
						 
					 
					
						
						
							
						
						a33a255dcf 
					 
					
						
						
							
							Disable non-PSA ECDHE code in mbedtls_ssl_psk_derive_premaster() when USE_PSA_CRYPTO is selected  
						
						... 
						
						
						
						Signed-off-by: Neil Armstrong <narmstrong@baylibre.com > 
						
						
					 
					
						2022-04-12 14:40:47 +02:00 
						 
				 
			
				
					
						
							
							
								Glenn Strauss 
							
						 
					 
					
						
						
							
						
						236e17ec26 
					 
					
						
						
							
							Introduce mbedtls_ssl_hs_cb_t typedef  
						
						... 
						
						
						
						Inline func for mbedtls_ssl_conf_cert_cb()
Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com > 
						
						
					 
					
						2022-04-07 14:18:30 -04:00 
						 
				 
			
				
					
						
							
							
								Manuel Pégourié-Gonnard 
							
						 
					 
					
						
						
							
						
						1b05aff3ad 
					 
					
						
						
							
							Merge pull request  #5624  from superna9999/5312-tls-server-ecdh  
						
						... 
						
						
						
						TLS ECDH 3b: server-side static ECDH (1.2) 
						
						
					 
					
						2022-04-07 11:46:25 +02:00 
						 
				 
			
				
					
						
							
							
								Neil Armstrong 
							
						 
					 
					
						
						
							
						
						f716a700a1 
					 
					
						
						
							
							Rename mbedtls_ssl_handshake_params variable ecdh_psa_shared_key to ecdh_psa_privkey_is_external  
						
						... 
						
						
						
						Signed-off-by: Neil Armstrong <narmstrong@baylibre.com > 
						
						
					 
					
						2022-04-04 11:23:46 +02:00 
						 
				 
			
				
					
						
							
							
								Ronald Cron 
							
						 
					 
					
						
						
							
						
						0e980e8e84 
					 
					
						
						
							
							Merge pull request  #5640  from ronald-cron-arm/version-negotiation-2  
						
						... 
						
						
						
						TLS 1.2/1.3 version negotiation - 2 
						
						
					 
					
						2022-04-01 12:29:06 +02:00 
						 
				 
			
				
					
						
							
							
								Manuel Pégourié-Gonnard 
							
						 
					 
					
						
						
							
						
						33a9d61885 
					 
					
						
						
							
							Merge pull request  #5638  from paul-elliott-arm/ssl_cid_accessors  
						
						... 
						
						
						
						Accessors to own CID within mbedtls_ssl_context 
						
						
					 
					
						2022-04-01 11:36:00 +02:00 
						 
				 
			
				
					
						
							
							
								Manuel Pégourié-Gonnard 
							
						 
					 
					
						
						
							
						
						451114fe42 
					 
					
						
						
							
							Merge pull request  #5647  from superna9999/5179-follow-up-tls-record-hmac-no-mdinfo  
						
						... 
						
						
						
						Remove md_info in ssl_tls12_populate_transform() when USE_PSA_CRYPTO is defined 
						
						
					 
					
						2022-04-01 10:04:56 +02:00 
						 
				 
			
				
					
						
							
							
								Paul Elliott 
							
						 
					 
					
						
						
							
						
						0113cf1022 
					 
					
						
						
							
							Add accessor for own cid to ssl context  
						
						... 
						
						
						
						Signed-off-by: Paul Elliott <paul.elliott@arm.com > 
						
						
					 
					
						2022-03-31 19:21:41 +01:00 
						 
				 
			
				
					
						
							
							
								Neil Armstrong 
							
						 
					 
					
						
						
							
						
						8113d25d1e 
					 
					
						
						
							
							Add ecdh_psa_shared_key flag to protect PSA privkey if imported  
						
						... 
						
						
						
						Signed-off-by: Neil Armstrong <narmstrong@baylibre.com > 
						
						
					 
					
						2022-03-31 15:24:17 +02:00 
						 
				 
			
				
					
						
							
							
								Ronald Cron 
							
						 
					 
					
						
						
							
						
						a980adf4ce 
					 
					
						
						
							
							Merge pull request  #5637  from ronald-cron-arm/version-negotiation-1  
						
						... 
						
						
						
						TLS 1.2/1.3 version negotiation - 1 
						
						
					 
					
						2022-03-31 11:47:16 +02:00 
						 
				 
			
				
					
						
							
							
								Ronald Cron 
							
						 
					 
					
						
						
							
						
						1fa4f6863b 
					 
					
						
						
							
							ssl_tls.c: Return in error if default config fails  
						
						... 
						
						
						
						Signed-off-by: Ronald Cron <ronald.cron@arm.com > 
						
						
					 
					
						2022-03-31 09:27:35 +02:00 
						 
				 
			
				
					
						
							
							
								Ronald Cron 
							
						 
					 
					
						
						
							
						
						37bdaab64f 
					 
					
						
						
							
							tls: Simplify the logic of the config version check and test it  
						
						... 
						
						
						
						Signed-off-by: Ronald Cron <ronald.cron@arm.com > 
						
						
					 
					
						2022-03-31 09:26:58 +02:00 
						 
				 
			
				
					
						
							
							
								Neil Armstrong 
							
						 
					 
					
						
						
							
						
						e451295179 
					 
					
						
						
							
							Remove md_info in ssl_tls12_populate_transform() when USE_PSA_CRYPTO is defined  
						
						... 
						
						
						
						Signed-off-by: Neil Armstrong <narmstrong@baylibre.com > 
						
						
					 
					
						2022-03-30 16:41:12 +02:00 
						 
				 
			
				
					
						
							
							
								Manuel Pégourié-Gonnard 
							
						 
					 
					
						
						
							
						
						3304f253d7 
					 
					
						
						
							
							Merge pull request  #5653  from paul-elliott-arm/handshake_over  
						
						... 
						
						
						
						Add mbedtls_ssl_is_handshake_over() 
						
						
					 
					
						2022-03-30 12:16:40 +02:00 
						 
				 
			
				
					
						
							
							
								Ronald Cron 
							
						 
					 
					
						
						
							
						
						f660655b84 
					 
					
						
						
							
							TLS: Allow hybrid TLS 1.2/1.3 in default configurations  
						
						... 
						
						
						
						This implies that when both TLS 1.2 and TLS 1.3
are included in the build all the TLS 1.2 tests
using the default configuration now go through
a version negotiation on the client side.
Signed-off-by: Ronald Cron <ronald.cron@arm.com > 
						
						
					 
					
						2022-03-29 18:58:31 +02:00 
						 
				 
			
				
					
						
							
							
								Ronald Cron 
							
						 
					 
					
						
						
							
						
						e71639d39b 
					 
					
						
						
							
							Simplify TLS major version default value setting  
						
						... 
						
						
						
						Signed-off-by: Ronald Cron <ronald.cron@arm.com > 
						
						
					 
					
						2022-03-29 18:58:31 +02:00 
						 
				 
			
				
					
						
							
							
								Ronald Cron 
							
						 
					 
					
						
						
							
						
						9f0fba374c 
					 
					
						
						
							
							Add logic to switch to TLS 1.2  
						
						... 
						
						
						
						Signed-off-by: Ronald Cron <ronald.cron@arm.com > 
						
						
					 
					
						2022-03-29 18:58:31 +02:00 
						 
				 
			
				
					
						
							
							
								Ronald Cron 
							
						 
					 
					
						
						
							
						
						e1d3f06399 
					 
					
						
						
							
							Allow hybrid TLS 1.3 + TLS 1.2 configuration  
						
						... 
						
						
						
						Signed-off-by: Ronald Cron <ronald.cron@arm.com > 
						
						
					 
					
						2022-03-29 18:58:31 +02:00 
						 
				 
			
				
					
						
							
							
								Ronald Cron 
							
						 
					 
					
						
						
							
						
						fbd9f99f10 
					 
					
						
						
							
							ssl_tls.c: Move some client specific functions to ssl_client.c  
						
						... 
						
						
						
						Signed-off-by: Ronald Cron <ronald.cron@arm.com > 
						
						
					 
					
						2022-03-29 18:58:31 +02:00 
						 
				 
			
				
					
						
							
							
								Ronald Cron 
							
						 
					 
					
						
						
							
						
						27c85e743f 
					 
					
						
						
							
							ssl_tls.c: Unify TLS 1.2 and TLS 1.3 SSL state logs  
						
						... 
						
						
						
						Signed-off-by: Ronald Cron <ronald.cron@arm.com > 
						
						
					 
					
						2022-03-29 18:58:31 +02:00 
						 
				 
			
				
					
						
							
							
								Ronald Cron 
							
						 
					 
					
						
						
							
						
						8f6d39a81d 
					 
					
						
						
							
							Make some handshake TLS 1.3 utility routines available for TLS 1.2  
						
						... 
						
						
						
						Signed-off-by: Ronald Cron <ronald.cron@arm.com > 
						
						
					 
					
						2022-03-29 14:42:17 +02:00 
						 
				 
			
				
					
						
							
							
								Ronald Cron 
							
						 
					 
					
						
						
							
						
						086ee0be0e 
					 
					
						
						
							
							ssl_tls.c: Reject TLS 1.3 version configuration for server  
						
						... 
						
						
						
						Signed-off-by: Ronald Cron <ronald.cron@arm.com > 
						
						
					 
					
						2022-03-29 14:42:17 +02:00 
						 
				 
			
				
					
						
							
							
								Ronald Cron 
							
						 
					 
					
						
						
							
						
						a25cf58681 
					 
					
						
						
							
							ssl_tls.c: Remove one unnecessary minor version check  
						
						... 
						
						
						
						Signed-off-by: Ronald Cron <ronald.cron@arm.com > 
						
						
					 
					
						2022-03-29 14:42:17 +02:00 
						 
				 
			
				
					
						
							
							
								Ronald Cron 
							
						 
					 
					
						
						
							
						
						c2f13a0568 
					 
					
						
						
							
							ssl_tls.c: Modify mbedtls_ssl_set_calc_verify_md()  
						
						... 
						
						
						
						Modify mbedtls_ssl_set_calc_verify_md() taking into
account that it is an TLS 1.2 only function.
Signed-off-by: Ronald Cron <ronald.cron@arm.com > 
						
						
					 
					
						2022-03-29 14:42:17 +02:00