change(wpa_supplicant): set leak threshold in test_fast_pbkdf2

pull/9673/merge
Ivan Grokhotkov 2023-10-04 12:50:55 +02:00
rodzic 6c27208ade
commit 098d28276e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 1E050E141B280628
1 zmienionych plików z 3 dodań i 4 usunięć

Wyświetl plik

@ -9,13 +9,14 @@
#include "utils/common.h"
#include "mbedtls/pkcs5.h"
#include "crypto/sha1.h"
#if SOC_WIFI_SUPPORTED
#include "test_wpa_supplicant_common.h"
#define PMK_LEN 32
TEST_CASE("Test pbkdf2", "[crypto-pbkdf2]")
{
set_leak_threshold(120);
uint8_t PMK[PMK_LEN];
uint8_t ssid_len;
uint8_t passphrase_len;
@ -65,5 +66,3 @@ TEST_CASE("Test pbkdf2", "[crypto-pbkdf2]")
}
TEST_ASSERT(memcmp(PMK, expected_pmk, PMK_LEN) == 0);
}
#endif /* SOC_WIFI_SUPPORTED */