mirror of
				https://git.kernel.org/pub/scm/network/wireless/iwd.git
				synced 2025-11-04 08:57:29 +01:00 
			
		
		
		
	unit: Update to the new API
This commit is contained in:
		
							parent
							
								
									c35409d73c
								
							
						
					
					
						commit
						0fde36b0af
					
				@ -318,7 +318,7 @@ static void ptk_test(const void *data)
 | 
			
		||||
 | 
			
		||||
	ret = crypto_derive_pairwise_ptk(test->pmk, test->aa, test->spa,
 | 
			
		||||
					test->anonce, test->snonce,
 | 
			
		||||
					ptk, ptk_len);
 | 
			
		||||
					ptk, ptk_len, false);
 | 
			
		||||
 | 
			
		||||
	assert(ret);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1365,7 +1365,7 @@ static void eapol_4way_test(const void *data)
 | 
			
		||||
			crypto_cipher_key_len(CRYPTO_CIPHER_CCMP);
 | 
			
		||||
	ptk = l_malloc(ptk_len);
 | 
			
		||||
	ret = crypto_derive_pairwise_ptk(psk, aa, spa, anonce, snonce,
 | 
			
		||||
						ptk, ptk_len);
 | 
			
		||||
						ptk, ptk_len, false);
 | 
			
		||||
	assert(ret);
 | 
			
		||||
 | 
			
		||||
	frame = eapol_create_ptk_2_of_4(EAPOL_PROTOCOL_VERSION_2001,
 | 
			
		||||
@ -1449,7 +1449,7 @@ static void eapol_wpa2_handshake_test(const void *data)
 | 
			
		||||
			crypto_cipher_key_len(CRYPTO_CIPHER_CCMP);
 | 
			
		||||
	ptk = l_malloc(ptk_len);
 | 
			
		||||
	ret = crypto_derive_pairwise_ptk(psk, aa, spa, anonce, snonce,
 | 
			
		||||
						ptk, ptk_len);
 | 
			
		||||
						ptk, ptk_len, false);
 | 
			
		||||
	assert(ret);
 | 
			
		||||
 | 
			
		||||
	frame = eapol_create_ptk_2_of_4(EAPOL_PROTOCOL_VERSION_2004,
 | 
			
		||||
@ -1571,7 +1571,7 @@ static void eapol_wpa_handshake_test(const void *data)
 | 
			
		||||
			crypto_cipher_key_len(CRYPTO_CIPHER_TKIP);
 | 
			
		||||
	ptk = l_malloc(ptk_len);
 | 
			
		||||
	ret = crypto_derive_pairwise_ptk(psk, aa, spa, anonce, snonce,
 | 
			
		||||
						ptk, ptk_len);
 | 
			
		||||
						ptk, ptk_len, false);
 | 
			
		||||
	assert(ret);
 | 
			
		||||
 | 
			
		||||
	frame = eapol_create_ptk_2_of_4(EAPOL_PROTOCOL_VERSION_2004,
 | 
			
		||||
@ -2291,7 +2291,7 @@ static void eapol_sm_test_tls(struct eapol_8021x_tls_test_state *s,
 | 
			
		||||
	ptk = (struct crypto_ptk *) ptk_buf;
 | 
			
		||||
	crypto_derive_pairwise_ptk(s->pmk, sta_address, ap_address,
 | 
			
		||||
					step1->key_nonce, step2->key_nonce,
 | 
			
		||||
					ptk, 64);
 | 
			
		||||
					ptk, 64, false);
 | 
			
		||||
 | 
			
		||||
	memset(step2->key_mic_data, 0, 16);
 | 
			
		||||
	assert(eapol_calculate_mic(ptk->kck, step2, step2->key_mic_data));
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user