WF_ConvPassphrase2Key Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
WF_ConvPassphrase2Key Function
C
void WF_ConvPassphrase2Key(
    UINT8 key_len, 
    UINT8 * key, 
    UINT8 ssid_len, 
    UINT8 * ssid
);
Description

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.

Preconditions

MACInit must be called first.

Parameters
Parameters 
Description 
key_len 
key length 
key 
passphrase as an input. key as an output 
ssid_len 
ssid length 
ssid 
ssid 
Returns

None.

Remarks

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.

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.