otp.h
author Ryan C. Gordon <icculus@icculus.org>
Thu, 09 Apr 2020 02:15:46 -0400
changeset 60 a0629a9e3ee6
parent 56 a573346e6f7b
permissions -rw-r--r--
otp: Some base32-decoding fixes to match what Google Authenticator expects.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
56
a573346e6f7b Added One Time Password support.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     1
#ifndef _OTP_H_
a573346e6f7b Added One Time Password support.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     2
#define _OTP_H_
a573346e6f7b Added One Time Password support.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     3
a573346e6f7b Added One Time Password support.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     4
int totp(const char *base32_secret, char *dst, int dstlen);
a573346e6f7b Added One Time Password support.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     5
a573346e6f7b Added One Time Password support.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     6
#endif
a573346e6f7b Added One Time Password support.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     7
a573346e6f7b Added One Time Password support.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     8
/* end of otp.h ... */
a573346e6f7b Added One Time Password support.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     9