void WF_ConvPassphrase2Key( UINT8 key_len, UINT8 * key, UINT8 ssid_len, UINT8 * ssid );
DERIVE_KEY_FROM_PASSPHRASE_IN_HOST and __C32__ must be enabled. This function is called in WPS or WPA or WPA2 security modes. Convert WPS/WPA/WPA2 passphrase to key. Allows host (eg PIC32) to perform conversion of the passphrase to the key by itself instead of relying on RF module FW. This is recommended only for PIC microprocessors that has high computational bandwidth and sufficient memory space. As a benchmark, MRF24WB0M will take 32 sec and MRF24WG0M will take 25 sec for this computation.
MACInit must be called first.
Parameters |
Description |
key_len |
key length |
key |
passphrase as an input. key as an output |
ssid_len |
ssid length |
ssid |
ssid |
None.
MRF24W will generate an event (WF_EVENT_KEY_CALCULATION_REQUEST) to PIC32 and set g_WpsPassphrase.valid to TRUE. Upon receipt of this event, PIC32 will invoke this function WF_ConvPassphrase2Key to convert the passphrase to key. Once this conversion is completed, PIC32 will call WF_SetPSK to pass the converted key to MRF24W.