![]() |
TrustCore SDK NanoSec API reference
version 7.0
|
EAP PSK helper functions. More...
Go to the source code of this file.
Functions | |
MOC_EXTERN MSTATUS | EAP_PSKAuthRequestFirst (ubyte *eapPSKHdl, ubyte *rand_s, ubyte *id_s, ubyte2 id_s_len, ubyte **request, ubyte4 *requestLen) |
Forms the First Packet to be sent by the Authenticator. More... | |
MOC_EXTERN MSTATUS | EAP_PSKAuthRequestThird (ubyte *eapPSKHdl, eapPSKResultInd resultInd, ubyte *ext, ubyte2 extLen, ubyte id, ubyte **request, ubyte4 *requestLen) |
Forms the third request packet to be sent by the Authenticator. More... | |
MOC_EXTERN MSTATUS | EAP_PSKDeleteSession (ubyte *eapPSKHdl) |
Deletes the EAP PSK Session. More... | |
MOC_EXTERN MSTATUS | EAP_PSKgetEXT (ubyte *eapPSKHdl, ubyte **ext, ubyte2 *extLen) |
Returns the EXTENSION data received. More... | |
MOC_EXTERN MSTATUS | EAP_PSKgetID_P (ubyte *eapPSKHdl, ubyte **id_p, ubyte2 *id_p_len) |
Returns the ID_P received from the Peer. More... | |
MOC_EXTERN MSTATUS | EAP_PSKgetID_S (ubyte *eapPSKHdl, ubyte **id_s, ubyte2 *id_s_len) |
Returns the ID_S received from the Authenticator. More... | |
MOC_EXTERN MSTATUS | EAP_PSKgetKeys (ubyte *eapPSKHdl, ubyte **tek, ubyte **msk, ubyte **emsk) |
Returns the generated session keys. More... | |
MOC_EXTERN MSTATUS | EAP_PSKgetResultInd (ubyte *eapPSKHdl, eapPSKResultInd *resInd) |
Returns the result indication received. More... | |
MOC_EXTERN MSTATUS | EAP_PSKInitSession (ubyte *appSessionHdl, ubyte **eapPSKHdl, eapPSKConfig eapPSKCfg) |
Inits the EAP PSK Session. More... | |
MOC_EXTERN MSTATUS | EAP_PSKKeySetup (ubyte *eapPSKHdl, ubyte *psk) |
Generates the AK/KDK Based upon PSK. More... | |
MOC_EXTERN MSTATUS | EAP_PSKPeerReplyFourth (ubyte *eapPSKHdl, eapPSKResultInd resultInd, ubyte *ext, ubyte2 extLen, ubyte id, ubyte **reply, ubyte4 *replyLen) |
Forms the fourth reply packet to be sent by the Peer. More... | |
MOC_EXTERN MSTATUS | EAP_PSKPeerReplySecond (ubyte *eapPSKHdl, ubyte *rand_p, ubyte *id_p, ubyte2 id_p_len, ubyte **reply, ubyte4 *replyLen) |
Forms the Second Packet to be sent by the Peer. More... | |
MOC_EXTERN MSTATUS | EAP_PSKProcessMsg (ubyte *eapPSKHdl, ubyte *data, ubyte4 dataLen, ubyte id) |
Processes the incoming EAP PSK data message. More... | |
This header file contains definitions, enumerations, structures, and function declarations used by EAP PSK helper functions.
To enable any of this file's functions, the following flag must be defined in moptions.h:
__ENABLE_MOCANA_EAP_PSK__
Additionally, at least one of the following flags must be defined in moptions.h:
__ENABLE_MOCANA_EAP_AUTH__
__ENABLE_MOCANA_EAP_PEER__