TrustCore SDK NanoSec API reference  version 7.0
eap_md5.h
Go to the documentation of this file.
1 /*
2  * eap_md5.h
3  *
4  * EAP MD5 Helper Functions
5  *
6  * Copyright 2019-2024 DigiCert, Inc. All Rights Reserved.
7  * Proprietary and Confidential Material.
8  *
9  */
10 
32 #ifndef __EAP_MD5_H__
33 #define __EAP_MD5_H__
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 #if (defined(__ENABLE_MOCANA_EAP_PEER__) || defined(__ENABLE_MOCANA_EAP_AUTH__))
40 
84 MOC_EXTERN MSTATUS
85 EAP_MD5ProcessPeer (ubyte *appSessionHdl, ubyte *eapSessionHdl,
86  ubyte4 instanceId, ubyte id,
87  ubyte *data, ubyte4 len,
88  ubyte *passwordString,ubyte4 passLen,
89  ubyte **eapRespData, ubyte4 *eapRespLen);
90 
92 MOC_EXTERN MSTATUS
93 EAP_MD5ChallengeResponse (ubyte id,
94  ubyte *challenge, ubyte4 challengeLen,
95  ubyte *passwordString,ubyte4 passLen,
96  ubyte *eapRespData, ubyte4 *eapRespLen);
97 
141 MOC_EXTERN MSTATUS
142 EAP_MD5_getChallenge(ubyte *buf, ubyte4 len);
143 
196 MOC_EXTERN MSTATUS
197 EAP_MD5ProcessAuth (ubyte *appSessionHdl, ubyte *eapSessionHdl,
198  ubyte4 instanceId, eapCode code, ubyte id,
199  ubyte *data, ubyte4 len,ubyte *passwordString,
200  ubyte4 passLen, ubyte *challenge, ubyte4 challengeLen,
201  sbyte4 *cmp);
202 
203 #endif /* ((defined(__ENABLE_MOCANA_EAP_PEER__) || defined(__ENABLE_MOCANA_EAP_AUTH__)) */
204 
205 #ifdef __cplusplus
206 }
207 #endif
208 
209 #endif /* __EAP_MD5_H__ */
MOC_EXTERN MSTATUS EAP_MD5ProcessPeer(ubyte *appSessionHdl, ubyte *eapSessionHdl, ubyte4 instanceId, ubyte id, ubyte *data, ubyte4 len, ubyte *passwordString, ubyte4 passLen, ubyte **eapRespData, ubyte4 *eapRespLen)
Generate an MD5 challenge response.
MOC_EXTERN MSTATUS EAP_MD5_getChallenge(ubyte *buf, ubyte4 len)
Generate a challenge for an MD5 request.
MOC_EXTERN MSTATUS EAP_MD5ProcessAuth(ubyte *appSessionHdl, ubyte *eapSessionHdl, ubyte4 instanceId, eapCode code, ubyte id, ubyte *data, ubyte4 len, ubyte *passwordString, ubyte4 passLen, ubyte *challenge, ubyte4 challengeLen, sbyte4 *cmp)
Validate an MD5 challenge response.