Jethro Beekman 
							
						 
					 
					
						
						
						
						
							
						
						
							2e662c6f97 
							
						 
					 
					
						
						
							
							Add comment about version 1 PKCS8 keys not containing a public key  
						
						... 
						
						
						
						Signed-off-by: Jethro Beekman <jethro@fortanix.com> 
						
						
					 
					
						2023-05-04 13:01:47 +02:00 
						 
				 
			
				
					
						
							
							
								Jethro Beekman 
							
						 
					 
					
						
						
						
						
							
						
						
							0167244be4 
							
						 
					 
					
						
						
							
							Read and write X25519 and X448 private keys  
						
						... 
						
						
						
						Signed-off-by: Jethro Beekman <jethro@fortanix.com>
Co-authored-by: Gijs Kwakkel <gijs.kwakkel@fortanix.com>
Signed-off-by: Gijs Kwakkel <gijs.kwakkel@fortanix.com> 
						
						
					 
					
						2023-05-04 13:01:47 +02:00 
						 
				 
			
				
					
						
							
							
								Manuel Pégourié-Gonnard 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							e4072c00c8 
							
						 
					 
					
						
						
							
							Merge pull request  #7548  from jethrogb/jb/mbedtls_pem_write_buffer  
						
						... 
						
						
						
						mbedtls_pem_write_buffer: Correctly report needed buffer size for all possible line lengths and counts 
						
						
					 
					
						2023-05-04 12:54:56 +02:00 
						 
				 
			
				
					
						
							
							
								Paul Elliott 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							b6432832d0 
							
						 
					 
					
						
						
							
							Merge pull request  #7490  from paul-elliott-arm/test_ecp_mod_p448  
						
						... 
						
						
						
						[Bignum] Add unit tests for ecp_mod_p448 
						
						
					 
					
						2023-05-04 11:39:44 +01:00 
						 
				 
			
				
					
						
							
							
								Przemek Stekiel 
							
						 
					 
					
						
						
						
						
							
						
						
							2488afcd71 
							
						 
					 
					
						
						
							
							Add FFDH alg to test driver extensions  
						
						... 
						
						
						
						Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com> 
						
						
					 
					
						2023-05-04 10:29:05 +02:00 
						 
				 
			
				
					
						
							
							
								Gilles Peskine 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							2eff33cb6f 
							
						 
					 
					
						
						
							
							Merge pull request  #6716  from gilles-peskine-arm/test-argument-types-union  
						
						... 
						
						
						
						Support larger integer test arguments 
						
						
					 
					
						2023-05-04 10:05:20 +02:00 
						 
				 
			
				
					
						
							
							
								Kusumit Ghoderao 
							
						 
					 
					
						
						
						
						
							
						
						
							b9410e89b4 
							
						 
					 
					
						
						
							
							Fix failing CI  
						
						... 
						
						
						
						Signed-off-by: Kusumit Ghoderao <Kusumit.Ghoderao@silabs.com> 
						
						
					 
					
						2023-05-04 13:17:51 +05:30 
						 
				 
			
				
					
						
							
							
								Przemek Stekiel 
							
						 
					 
					
						
						
						
						
							
						
						
							746dfaea3f 
							
						 
					 
					
						
						
							
							Enable FFDH through PSA if it's enabled in the legacy interface  
						
						... 
						
						
						
						Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com> 
						
						
					 
					
						2023-05-04 09:14:08 +02:00 
						 
				 
			
				
					
						
							
							
								Jethro Beekman 
							
						 
					 
					
						
						
						
						
							
						
						
							2593ec4bee 
							
						 
					 
					
						
						
							
							Use TEST_EQUAL instead of TEST_ASSERT  
						
						... 
						
						
						
						Signed-off-by: Jethro Beekman <jethro@fortanix.com> 
						
						
					 
					
						2023-05-03 17:47:29 +02:00 
						 
				 
			
				
					
						
							
							
								Jethro Beekman 
							
						 
					 
					
						
						
						
						
							
						
						
							3477a672b9 
							
						 
					 
					
						
						
							
							Fix cross-platform compilation issue  
						
						... 
						
						
						
						Signed-off-by: Jethro Beekman <jethro@fortanix.com> 
						
						
					 
					
						2023-05-03 17:47:27 +02:00 
						 
				 
			
				
					
						
							
							
								Przemek Stekiel 
							
						 
					 
					
						
						
						
						
							
						
						
							8194285cf1 
							
						 
					 
					
						
						
							
							Fix parsing of authorityCertSerialNumber (use valid tags)  
						
						... 
						
						
						
						Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com> 
						
						
					 
					
						2023-05-03 16:19:16 +02:00 
						 
				 
			
				
					
						
							
							
								Jethro Beekman 
							
						 
					 
					
						
						
						
						
							
						
						
							746df88e90 
							
						 
					 
					
						
						
							
							mbedtls_pem_write_buffer: Correctly report needed buffer size for all possible line lengths and counts  
						
						... 
						
						
						
						Signed-off-by: Jethro Beekman <jethro@fortanix.com> 
						
						
					 
					
						2023-05-03 15:30:49 +02:00 
						 
				 
			
				
					
						
							
							
								Paul Elliott 
							
						 
					 
					
						
						
						
						
							
						
						
							b8bd47dd68 
							
						 
					 
					
						
						
							
							Remove unrequired limb size calculation  
						
						... 
						
						
						
						Signed-off-by: Paul Elliott <paul.elliott@arm.com> 
						
						
					 
					
						2023-05-03 14:16:54 +01:00 
						 
				 
			
				
					
						
							
							
								Paul Elliott 
							
						 
					 
					
						
						
						
						
							
						
						
							b7fd1d6044 
							
						 
					 
					
						
						
							
							Correct max canonical multiplication result  
						
						... 
						
						
						
						Signed-off-by: Paul Elliott <paul.elliott@arm.com> 
						
						
					 
					
						2023-05-03 14:16:48 +01:00 
						 
				 
			
				
					
						
							
							
								Gilles Peskine 
							
						 
					 
					
						
						
						
						
							
						
						
							f292b9de82 
							
						 
					 
					
						
						
							
							Fix pastapasta  
						
						... 
						
						
						
						Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com> 
						
						
					 
					
						2023-05-03 14:49:21 +02:00 
						 
				 
			
				
					
						
							
							
								Gilles Peskine 
							
						 
					 
					
						
						
						
						
							
						
						
							3c96e0fe70 
							
						 
					 
					
						
						
							
							typo  
						
						... 
						
						
						
						Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com> 
						
						
					 
					
						2023-05-03 14:49:21 +02:00 
						 
				 
			
				
					
						
							
							
								Gilles Peskine 
							
						 
					 
					
						
						
						
						
							
						
						
							55ad28a9e7 
							
						 
					 
					
						
						
							
							Document a known issue with testing of mbedtls_x509_crt_parse_path  
						
						... 
						
						
						
						The parse_path tests are known to fail when compiled for a 32-btt architecture
and run via qemu-user on Linux on a 64-bit host. This is due to a known
bug in Qemu: https://gitlab.com/qemu-project/qemu/-/issues/263 
Document this, and add test cases to parse the files involved to confirm
that the problem is only with parse_path.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com> 
						
						
					 
					
						2023-05-03 14:49:21 +02:00 
						 
				 
			
				
					
						
							
							
								Gilles Peskine 
							
						 
					 
					
						
						
						
						
							
						
						
							1e5fec6a79 
							
						 
					 
					
						
						
							
							Improve testing of mbedtls_x509_crt_parse_file  
						
						... 
						
						
						
						Check the number of certificates found, as was done in the test of
mbedtls_x509_crt_parse_path().
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com> 
						
						
					 
					
						2023-05-03 14:49:18 +02:00 
						 
				 
			
				
					
						
							
							
								Kusumit Ghoderao 
							
						 
					 
					
						
						
						
						
							
						
						
							056f0c5047 
							
						 
					 
					
						
						
							
							Make output_byte return not_supported for pbkdf2  
						
						... 
						
						
						
						As output functionality is not added yet return PSA_SUCCESS for
now if inputs are passed correctly. If input validation fails
operation is aborted and output_bytes will return PSA_ERROR_BAD_STATE
Signed-off-by: Kusumit Ghoderao <Kusumit.Ghoderao@silabs.com> 
						
						
					 
					
						2023-05-03 17:33:27 +05:30 
						 
				 
			
				
					
						
							
							
								Manuel Pégourié-Gonnard 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f57273c817 
							
						 
					 
					
						
						
							
							Merge pull request  #7496  from valeriosetti/issue7480  
						
						... 
						
						
						
						Fix test gap in PK write: private (opaque) -> public 
						
						
					 
					
						2023-05-03 12:39:49 +02:00 
						 
				 
			
				
					
						
							
							
								Andrzej Kurek 
							
						 
					 
					
						
						
						
						
							
						
						
							9c9880a63f 
							
						 
					 
					
						
						
							
							Explicitly exit IPv4 parsing on a fatal error  
						
						... 
						
						
						
						This makes the function flow more readable.
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com> 
						
						
					 
					
						2023-05-03 05:06:47 -04:00 
						 
				 
			
				
					
						
							
							
								Kusumit Ghoderao 
							
						 
					 
					
						
						
						
						
							
						
						
							7c05c00988 
							
						 
					 
					
						
						
							
							Add test cases for pbkdf2 input functions  
						
						... 
						
						
						
						Signed-off-by: Kusumit Ghoderao <Kusumit.Ghoderao@silabs.com> 
						
						
					 
					
						2023-05-03 14:20:37 +05:30 
						 
				 
			
				
					
						
							
							
								Kusumit Ghoderao 
							
						 
					 
					
						
						
						
						
							
						
						
							f5fedf1e0d 
							
						 
					 
					
						
						
							
							Add pbkdf2 to psa_key_derivation_abort  
						
						... 
						
						
						
						Signed-off-by: Kusumit Ghoderao <Kusumit.Ghoderao@silabs.com> 
						
						
					 
					
						2023-05-03 14:20:37 +05:30 
						 
				 
			
				
					
						
							
							
								Kusumit Ghoderao 
							
						 
					 
					
						
						
						
						
							
						
						
							3128c5d9ce 
							
						 
					 
					
						
						
							
							Enable can_output_key with PSA_KEY_DERIVATION_INPUT_PASSWORD  
						
						... 
						
						
						
						Signed-off-by: Kusumit Ghoderao <Kusumit.Ghoderao@silabs.com> 
						
						
					 
					
						2023-05-03 14:20:37 +05:30 
						 
				 
			
				
					
						
							
							
								Kusumit Ghoderao 
							
						 
					 
					
						
						
						
						
							
						
						
							24b3895dee 
							
						 
					 
					
						
						
							
							Add pbkdf2 input functions to psa_key_derivation_input_internal  
						
						... 
						
						
						
						Signed-off-by: Kusumit Ghoderao <Kusumit.Ghoderao@silabs.com> 
						
						
					 
					
						2023-05-03 14:20:36 +05:30 
						 
				 
			
				
					
						
							
							
								Kusumit Ghoderao 
							
						 
					 
					
						
						
						
						
							
						
						
							f4fe3ee9e4 
							
						 
					 
					
						
						
							
							Add input password function for pbkdf2  
						
						... 
						
						
						
						Also adds PSA_KEY_DERIVATION_INPUT_PASSWORD case handling to
psa_key_derivation_check_input_type function
Signed-off-by: Kusumit Ghoderao <Kusumit.Ghoderao@silabs.com> 
						
						
					 
					
						2023-05-03 14:20:36 +05:30 
						 
				 
			
				
					
						
							
							
								Kusumit Ghoderao 
							
						 
					 
					
						
						
						
						
							
						
						
							547a6c6fd1 
							
						 
					 
					
						
						
							
							add input salt function for pbkdf2  
						
						... 
						
						
						
						Signed-off-by: Kusumit Ghoderao <Kusumit.Ghoderao@silabs.com> 
						
						
					 
					
						2023-05-03 14:20:36 +05:30 
						 
				 
			
				
					
						
							
							
								Kusumit Ghoderao 
							
						 
					 
					
						
						
						
						
							
						
						
							944bba1e30 
							
						 
					 
					
						
						
							
							Add input cost function for pbkdf2  
						
						... 
						
						
						
						Signed-off-by: Kusumit Ghoderao <Kusumit.Ghoderao@silabs.com> 
						
						
					 
					
						2023-05-03 14:20:36 +05:30 
						 
				 
			
				
					
						
							
							
								Kusumit Ghoderao 
							
						 
					 
					
						
						
						
						
							
						
						
							d132cacb38 
							
						 
					 
					
						
						
							
							Add pbkdf2_hmac to is_kdf_alg_supported()  
						
						... 
						
						
						
						Signed-off-by: Kusumit Ghoderao <Kusumit.Ghoderao@silabs.com> 
						
						
					 
					
						2023-05-03 14:20:35 +05:30 
						 
				 
			
				
					
						
							
							
								Kusumit Ghoderao 
							
						 
					 
					
						
						
						
						
							
						
						
							af0b534256 
							
						 
					 
					
						
						
							
							Add pbkdf2 to ATLEAST_ONE_BUILTIN_KDF definition  
						
						... 
						
						
						
						Signed-off-by: Kusumit Ghoderao <Kusumit.Ghoderao@silabs.com> 
						
						
					 
					
						2023-05-03 14:20:35 +05:30 
						 
				 
			
				
					
						
							
							
								Kusumit Ghoderao 
							
						 
					 
					
						
						
						
						
							
						
						
							dcfa548293 
							
						 
					 
					
						
						
							
							Add pbkdf2 to key_derivation context struct  
						
						... 
						
						
						
						Signed-off-by: Kusumit Ghoderao <Kusumit.Ghoderao@silabs.com> 
						
						
					 
					
						2023-05-03 14:20:35 +05:30 
						 
				 
			
				
					
						
							
							
								Kusumit Ghoderao 
							
						 
					 
					
						
						
						
						
							
						
						
							30ced52497 
							
						 
					 
					
						
						
							
							Add pbkdf2 struct to crypto_builtin_key_derivation.h  
						
						... 
						
						
						
						Signed-off-by: Kusumit Ghoderao <Kusumit.Ghoderao@silabs.com> 
						
						
					 
					
						2023-05-03 14:20:35 +05:30 
						 
				 
			
				
					
						
							
							
								Kusumit Ghoderao 
							
						 
					 
					
						
						
						
						
							
						
						
							876e2c2424 
							
						 
					 
					
						
						
							
							Add psa_pbkdf2_key_derivation_state_t  
						
						... 
						
						
						
						Signed-off-by: Kusumit Ghoderao <Kusumit.Ghoderao@silabs.com> 
						
						
					 
					
						2023-05-03 14:20:34 +05:30 
						 
				 
			
				
					
						
							
							
								Kusumit Ghoderao 
							
						 
					 
					
						
						
						
						
							
						
						
							83baf8968d 
							
						 
					 
					
						
						
							
							Add builtin PBKDF2_HMAC definition in config_psa.h  
						
						... 
						
						
						
						Signed-off-by: Kusumit Ghoderao <Kusumit.Ghoderao@silabs.com> 
						
						
					 
					
						2023-05-03 14:20:34 +05:30 
						 
				 
			
				
					
						
							
							
								Kusumit Ghoderao 
							
						 
					 
					
						
						
						
						
							
						
						
							aca31654e6 
							
						 
					 
					
						
						
							
							Enable PSA_WANT_ALG_PBKDF2_HMAC in crypto_config.h  
						
						... 
						
						
						
						Signed-off-by: Kusumit Ghoderao <Kusumit.Ghoderao@silabs.com> 
						
						
					 
					
						2023-05-03 14:20:34 +05:30 
						 
				 
			
				
					
						
							
							
								Tom Cosgrove 
							
						 
					 
					
						
						
						
						
							
						
						
							e22413c8df 
							
						 
					 
					
						
						
							
							Use mbedtls_ct_uint_if() rather than mbedtls_ct_cond_select_sign()  
						
						... 
						
						
						
						Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com> 
						
						
					 
					
						2023-05-03 09:44:01 +01:00 
						 
				 
			
				
					
						
							
							
								Gilles Peskine 
							
						 
					 
					
						
						
						
						
							
						
						
							b567f8326d 
							
						 
					 
					
						
						
							
							Halve size of mbedtls_error_pair_t  
						
						... 
						
						
						
						All PSA crypto error codes fit comfortably in 16 bits and we have no plans
to ever change this. So use 16 bits to store them, which reduces
mbedtls_error_pair_t from 8 bytes to 4 bytes.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com> 
						
						
					 
					
						2023-05-02 21:40:07 +02:00 
						 
				 
			
				
					
						
							
							
								Gilles Peskine 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d3ca5e5897 
							
						 
					 
					
						
						
							
							Merge pull request  #7328  from mprse/ec-jpake-fix1  
						
						... 
						
						
						
						Fix the JPAKE driver interface for user+peer 
						
						
					 
					
						2023-05-02 20:42:25 +02:00 
						 
				 
			
				
					
						
							
							
								Gilles Peskine 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c70d9eab8a 
							
						 
					 
					
						
						
							
							Merge pull request  #7412  from silabs-Kusumit/PBKDF2_implementation  
						
						... 
						
						
						
						PBKDF2: Implement input_integer 
						
						
					 
					
						2023-05-02 20:41:23 +02:00 
						 
				 
			
				
					
						
							
							
								Bence Szépkúti 
							
						 
					 
					
						
						
						
						
							
						
						
							7ce8fba3cb 
							
						 
					 
					
						
						
							
							Add post-build step to update redirects  
						
						... 
						
						
						
						This allows us to maintain the list of redirects in-tree.
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com> 
						
						
					 
					
						2023-05-02 20:16:12 +02:00 
						 
				 
			
				
					
						
							
							
								Bence Szépkúti 
							
						 
					 
					
						
						
						
						
							
						
						
							4f4c87b01e 
							
						 
					 
					
						
						
							
							Add readthedocs-cli to requirements.in  
						
						... 
						
						
						
						This will allow us to manage our redirects in-tree.
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com> 
						
						
					 
					
						2023-05-02 19:59:34 +02:00 
						 
				 
			
				
					
						
							
							
								Valerio Setti 
							
						 
					 
					
						
						
						
						
							
						
						
							9a855f21aa 
							
						 
					 
					
						
						
							
							test: check for exact length of returned pub key  
						
						... 
						
						
						
						Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no> 
						
						
					 
					
						2023-05-02 15:45:39 +02:00 
						 
				 
			
				
					
						
							
							
								Valerio Setti 
							
						 
					 
					
						
						
						
						
							
						
						
							f5451717af 
							
						 
					 
					
						
						
							
							test: optimize code for pk_write_public_from_private()  
						
						... 
						
						
						
						Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no> 
						
						
					 
					
						2023-05-02 15:45:39 +02:00 
						 
				 
			
				
					
						
							
							
								Valerio Setti 
							
						 
					 
					
						
						
						
						
							
						
						
							84554e9830 
							
						 
					 
					
						
						
							
							test: use better naming for the newly introduced test function  
						
						... 
						
						
						
						Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no> 
						
						
					 
					
						2023-05-02 15:45:39 +02:00 
						 
				 
			
				
					
						
							
							
								Valerio Setti 
							
						 
					 
					
						
						
						
						
							
						
						
							2d81499026 
							
						 
					 
					
						
						
							
							pk: fix position for mbedtls_platform_zeroize  
						
						... 
						
						
						
						Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no> 
						
						
					 
					
						2023-05-02 15:45:39 +02:00 
						 
				 
			
				
					
						
							
							
								Valerio Setti 
							
						 
					 
					
						
						
						
						
							
						
						
							8820b57b6e 
							
						 
					 
					
						
						
							
							test: fix makefile for ec_pub.[der/pem] generation  
						
						... 
						
						
						
						Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no> 
						
						
					 
					
						2023-05-02 15:45:39 +02:00 
						 
				 
			
				
					
						
							
							
								Valerio Setti 
							
						 
					 
					
						
						
						
						
							
						
						
							d860a79029 
							
						 
					 
					
						
						
							
							test: fix wrong private key file  
						
						... 
						
						
						
						Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no> 
						
						
					 
					
						2023-05-02 15:45:39 +02:00 
						 
				 
			
				
					
						
							
							
								Valerio Setti 
							
						 
					 
					
						
						
						
						
							
						
						
							1751341b68 
							
						 
					 
					
						
						
							
							test: add test function for public key derivation starting from private one  
						
						... 
						
						
						
						Data test cases are also included in the commit.
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no> 
						
						
					 
					
						2023-05-02 15:45:39 +02:00 
						 
				 
			
				
					
						
							
							
								Valerio Setti 
							
						 
					 
					
						
						
						
						
							
						
						
							2c50526476 
							
						 
					 
					
						
						
							
							pk: fix: clear buffer holding raw EC private key on exit  
						
						... 
						
						
						
						Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no> 
						
						
					 
					
						2023-05-02 15:45:39 +02:00 
						 
				 
			
				
					
						
							
							
								Valerio Setti 
							
						 
					 
					
						
						
						
						
							
						
						
							c8b7865612 
							
						 
					 
					
						
						
							
							test: align ec_pub public keyfile with its ec_prv.sec1 counterpart  
						
						... 
						
						
						
						This change affects:
- both PEM and DER files, since they contain the same public key
  only in different formats
- "ec_pub.comp.pem" since it's the same as "ec_pub.pem" but in
  compressed format
The makefile was also updated accordingly to reflect these
dependencies.
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no> 
						
						
					 
					
						2023-05-02 15:45:39 +02:00