#include "extern.h"
#include <string.h>
#include <openssl/des.h>
#include <openssl/md5.h>
#include <openssl/hmac.h>
Go to the source code of this file.
Macros | |
#define | _FR_MD4_H |
#define | _FR_SHA1_H |
Functions | |
size_t | otp_gen_state (char state[OTP_MAX_RADSTATE_LEN], char const challenge[OTP_MAX_CHALLENGE_LEN], size_t clen, int32_t flags, int32_t when, uint8_t const key[16]) |
Generate an OTP state value. More... | |
#define _FR_MD4_H |
Definition at line 26 of file otp_radstate.c.
#define _FR_SHA1_H |
Definition at line 27 of file otp_radstate.c.
size_t otp_gen_state | ( | char | state[OTP_MAX_RADSTATE_LEN], |
char const | challenge[OTP_MAX_CHALLENGE_LEN], | ||
size_t | clen, | ||
int32_t | flags, | ||
int32_t | when, | ||
uint8_t const | key[16] | ||
) |
Generate an OTP state value.
Generates an OTP state value (an string of ASCII hexits in an opaque binary string).
[out] | state | buffer in which to write the generated state value. |
[in] | challenge | The challenge value. |
[in] | clen | The length of the challenge data. |
[in] | flags | to remember. |
[in] | when | the challenge was originally generated. |
[in] | key | HMAC key. |
Definition at line 108 of file otp_radstate.c.