23 #ifndef __OTP_HEADER__ 24 #define __OTP_HEADER__ 32 #define OTP_RESULT_SIZE (8) 33 #define OTP_STR_RESULT_SIZE (20) 58 MOC_EXTERN MSTATUS
OTP_otp(MOC_HASH(hwAccelDescr hwAccelCtx) ubyte ht_type,
const sbyte* seed,
const sbyte* pwd, ubyte4 seq, ubyte res[8]);
79 MOC_EXTERN MSTATUS
OTP_otpEx(MOC_HASH(hwAccelDescr hwAccelCtx)
const sbyte* challenge,
const sbyte* pwd, sbyte res[20]);
MOC_EXTERN MSTATUS OTP_otp(MOC_HASH(hwAccelDescr hwAccelCtx) ubyte ht_type, const sbyte *seed, const sbyte *pwd, ubyte4 seq, ubyte res[8])
Computes a one-time password.
MOC_EXTERN MSTATUS OTP_otpEx(MOC_HASH(hwAccelDescr hwAccelCtx) const sbyte *challenge, const sbyte *pwd, sbyte res[20])
Computes a one-time password from a challange string.