mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
Unit-test the ND-PMK derivation path against known-good vectors using the wpa_supplicant-ported pbkdf2_sha256.
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-C61 | ESP32-S2 | ESP32-S3 | ESP32-S31 |
|---|
NAN Crypto Test Application
This test application validates the NAN ND-PMK derivation implementation against official Wi-Fi Aware Specification v4.0 test vectors (Appendix M.1).
Building
cd components/esp_wifi/test_apps/nan_crypto_test
idf.py build
Running
idf.py -p PORT flash monitor
Test Vectors
The application tests three official test vectors:
- Passphrase: "NAN"
- Passphrase: "NAN2"
- Passphrase: "NAN-Testvector-Phrase"
All use:
- Cipher ID: 0x01 (NCS-SK-128)
- Service ID: 2b9c450f6671
- NMI: 02904c12d001