![]() |
TrustCore SDK NanoSec API reference
version 7.0
|
EAP MSCHAP v2 helper functions. More...
Go to the source code of this file.
Functions | |
MOC_EXTERN void | EAP_MSCHAPbin2hex (const ubyte *szBin, sbyte *szHex, ubyte4 len) |
Get a hexadecimal representation of binary data. More... | |
MOC_EXTERN MSTATUS | EAP_MSCHAPChallengeResponse (ubyte *Challenge, ubyte *PasswordHash, ubyte *Response) |
Build an MSCHAP v0 response to the specified challenge and password hash. More... | |
MOC_EXTERN MSTATUS | EAP_MSCHAPcheckAuthenticatorResponse (ubyte *Password, ubyte2 PasswordLen, ubyte *NtResponse, ubyte *PeerChallenge, ubyte *AuthenticatorChallenge, ubyte *UserName, ubyte2 UserNameLen, ubyte *ReceivedResponse, byteBoolean *ResponseOK) |
Determine an MSCHAP authenticator response's status and include it in a new EAP response. More... | |
MOC_EXTERN MSTATUS | EAP_MSCHAPgenerateAuthenticatorResponse (ubyte *Password, ubyte2 PasswordLen, ubyte *NtResponse, ubyte *PeerChallenge, ubyte *AuthenticatorChallenge, ubyte *UserName, ubyte2 UserNameLen, ubyte *AuthenticatorResponse) |
Generate an authenticator response. More... | |
MOC_EXTERN MSTATUS | EAP_MSCHAPgenerateMasterKey (ubyte *Password, ubyte2 PasswordLen, ubyte *NtResponse, ubyte *MasterKey) |
Generate an MSK (master session key). More... | |
MOC_EXTERN MSTATUS | EAP_MSCHAPgenerateNTResponse (ubyte *AuthenticatorChallenge, ubyte *PeerChallenge, ubyte *UserName, ubyte2 UserNameLen, ubyte *Password, ubyte2 PasswordLen, ubyte *Response) |
Build an MS-CHAP-V2 NT response. More... | |
MOC_EXTERN MSTATUS | EAP_MSCHAPgenerateSessionKey (ubyte *masterKey, ubyte *sessionKey, ubyte2 sessionKeyLen, byteBoolean send, byteBoolean server) |
Generate a send/receive client/server session key. More... | |
MOC_EXTERN MSTATUS | EAP_MSCHAPHashNtPasswordHash (ubyte *PasswordHash, ubyte *PasswordHashHash) |
Get an irreversible hash of a password hash (using MD4). More... | |
MOC_EXTERN MSTATUS | EAP_MSCHAPNtPasswordHash (ubyte *Password, ubyte2 PasswordLen, ubyte *PasswordHash) |
Get a password hash (using MD4). More... | |
MOC_EXTERN MSTATUS | EAP_MSCHAPpeerResponse (ubyte *appSessionHdl, ubyte *data, ubyte2 datalen, ubyte *passwordString, ubyte2 passLen, ubyte *peerResponse, ubyte *peerChallenge, ubyte *authChallenge, ubyte *UserName, ubyte2 UserNameLen, ubyte **eapRespData, ubyte4 *eapRespLen, byteBoolean *cmp) |
Determine whether an authenticator response to a peer challenge is valid and build the resultant SUCCESS/FAIL response. More... | |
MOC_EXTERN MSTATUS | EAP_MSCHAPProcessAuth (ubyte *appSessionHdl, ubyte *data, ubyte4 datalen, ubyte *UserName, ubyte4 UserNameLen, ubyte *succMsg, ubyte4 succMsgLen, ubyte *failMsg, ubyte4 failMsgLen, ubyte *passwordString, ubyte4 passLen, ubyte *authChallenge, ubyte *NtResponse, ubyte **eapReqData, ubyte4 *eapReqLen) |
Determine whether a peer response is valid, build the resultant SUCCESS/FAIL response, and if SUCCESS, send the response. More... | |
MOC_EXTERN MSTATUS | EAP_MSCHAPProcessPeer (ubyte *appSessionHdl, ubyte *data, ubyte4 datalen, ubyte *UserName, ubyte4 UserNameLen, ubyte *passwordString, ubyte4 passLen, ubyte *peerChallenge, ubyte *authChallenge, ubyte *NtAuthenticator, ubyte **eapRespData, ubyte4 *eapRespLen) |
Build a response to send to the authenticator. More... | |
MOC_EXTERN MSTATUS | EAP_MSCHAPstartRequest (ubyte *appSessionHdl, ubyte *identity, ubyte2 identityLen, ubyte *challenge, ubyte **eapReqData, ubyte4 *eapReqLen) |
Build a challenge request. More... | |
MOC_EXTERN MSTATUS | EAP_MSCHAPv0generateNTResponse (ubyte *AuthenticatorChallenge, ubyte *Password, ubyte2 PasswordLen, ubyte *Response) |
Build an MS-CHAP-V0 NT response. More... | |
MOC_EXTERN MSTATUS | EAP_MSCHAPV2_getChallenge (ubyte *buf) |
Get a 16-byte challenge value for an MSCHAPv2 exchange. More... | |
This header file contains definitions and function declarations for EAP MSCHAP v2 helper functions.
To enable any of this file's functions, the following flag must be defined in moptions.h:
__ENABLE_MOCANA_EAP_MSCHAPv2__
Additionally, at least one of the following flags must be defined in moptions.h:
__ENABLE_MOCANA_EAP_AUTH__
__ENABLE_MOCANA_EAP_PEER__