![]() |
TrustCore SDK NanoSec API reference
version 7.0
|
EAP SIM/AKA helper functions. More...
Go to the source code of this file.
Data Structures | |
struct | eapSimConfig |
Configuration settings and callback function pointers for EAP-SIM EAP-AKA methods. More... | |
Functions | |
MOC_EXTERN MSTATUS | EAP_AKAProcessPkt (eapSimCb *eapSim, ubyte *pkt, ubyte2 pktLen, ubyte **resp, ubyte4 *respLen, eapSimStatus *state) |
Process received EAP-AKA packet. More... | |
MOC_EXTERN MSTATUS | EAP_AKASendChallengeReq (eapSimCb *eapSim, ubyte **pkt, ubyte4 *pktLen, ubyte *rand, ubyte *autn, ubyte *ck, ubyte *ik, ubyte *res, ubyte2 resLen, ubyte *at_next_psuedo, ubyte2 at_psuedo_len, ubyte *at_next_reauthid, ubyte2 at_reauthid_len, ubyte id) |
Send EAP-AKA Challenge Request. More... | |
MOC_EXTERN MSTATUS | EAP_AKASendIdentityReq (eapSimCb *eapSim, ubyte **pkt, ubyte4 *pktLen, ubyte id_type, ubyte id) |
Send EAP-AKA Start Request. More... | |
MOC_EXTERN MSTATUS | EAP_SIMDeleteSession (eapSimCb *eapSim) |
Delete an EAP-SIM connection. More... | |
MOC_EXTERN MSTATUS | EAP_SIMGetClientErrorCode (eapSimCb *eapSim, ubyte2 *clCode) |
Get the client error code returned by the peer. More... | |
MOC_EXTERN MSTATUS | EAP_SIMGetIdentity (eapSimCb *eapSim, ubyte **identity, ubyte4 *len) |
Get the EAP-SIM session ID returned by the peer. More... | |
MOC_EXTERN MSTATUS | EAP_SIMgetKey (eapSimCb *eapSim, eapSimKeyType keyType, ubyte **key, ubyte4 *keyLen) |
Get an EAP-SIM session key. More... | |
MOC_EXTERN MSTATUS | EAP_SIMGetNotification (eapSimCb *eapSim, ubyte2 *notifCode) |
Get the authenticator's notification code. More... | |
MOC_EXTERN MSTATUS | EAP_SIMGetResultInd (void *eap_sim, ubyte *rInd) |
Determine whether a challenge negotiation included a RESULT_IND attribute. More... | |
MOC_EXTERN MSTATUS | EAP_SIMGetSelectedVersion (void *eap_sim, ubyte2 *rVer) |
Get the version selected during negotiation. More... | |
MOC_EXTERN MSTATUS | EAP_SIMGetSessionStatus (void *eap_sim, eapSimStatus *status) |
Get an EAP-SIM session's session status. More... | |
MOC_EXTERN MSTATUS | EAP_SIMGetSuccessNotifCode (void *eap_sim, ubyte *rCode) |
Determine whether an authenticator Notification's S Bit is set. More... | |
MOC_EXTERN MSTATUS | EAP_SIMInitSession (void *appCb, void **eapSim, eapSimConfig eapSimCfg) |
Create and initialize an EAP-SIM or EAP-AKA session. More... | |
MOC_EXTERN MSTATUS | EAP_SIMProcessPkt (eapSimCb *eapSim, ubyte *pkt, ubyte2 pktLen, ubyte **resp, ubyte4 *respLen, eapSimStatus *state) |
Process a received packet and build a response. More... | |
MOC_EXTERN MSTATUS | EAP_SIMSendChallengeReq (eapSimCb *eapSim, ubyte **pkt, ubyte4 *pktLen, ubyte *rand, ubyte2 num_rand, ubyte *kC, ubyte *sRes, ubyte *at_next_psuedo, ubyte2 at_psuedo_len, ubyte *at_next_reauthid, ubyte2 at_reauthid_len, ubyte id) |
Build a Sim Challenge Request packet. More... | |
MOC_EXTERN MSTATUS | EAP_SIMSendNotificationReq (eapSimCb *eapSim, ubyte **pkt, ubyte4 *pktLen, ubyte2 at_counter, ubyte4 notification_code, ubyte id) |
Build a Sim Notification Request packet. More... | |
MSTATUS | EAP_SIMSendReauthReq (eapSimCb *eapSim, ubyte **pkt, ubyte4 *pktLen, ubyte *at_next_reauthid, ubyte2 at_reauthid_len, ubyte id) |
Build a SIM FAST Reauthentication Request packet. More... | |
MOC_EXTERN MSTATUS | EAP_SIMSendStartReq (eapSimCb *eapSim, ubyte **pkt, ubyte4 *pktLen, ubyte id_type, ubyte id) |
Build a Sim Start Request packet. More... | |
MOC_EXTERN MSTATUS | EAP_SIMSetIdentity (eapSimCb *eapSim, ubyte *id, ubyte2 idLen) |
Set the EAP-SIM session's final identity. More... | |
MOC_EXTERN MSTATUS | EAP_SIMSetImplementedVersion (eapSimCb *eapSim, ubyte2 *versionList, ubyte2 numVersion) |
Add version(s) to an EAP-SIM session's supported versions list. More... | |
MOC_EXTERN MSTATUS | EAP_SIMSetPermIdentity (eapSimCb *eapSim, ubyte *id, ubyte2 idLen) |
Set the EAP-SIM session's permanent identity. More... | |
This header file contains definitions, enumerations, structures, and function declarations for EAP SIM/AKA helper functions.
To enable any of this file's functions, the following flag must be defined in moptions.h:
__ENABLE_MOCANA_EAP_SIM__
Additionally, at least one of the following flags must be defined in moptions.h:
__ENABLE_MOCANA_EAP_AUTH__
__ENABLE_MOCANA_EAP_PEER__
eap_siim.h