otp.h
author Ryan C. Gordon <icculus@icculus.org>
Sun, 18 Jun 2017 19:40:30 -0400
changeset 56 a573346e6f7b
permissions -rw-r--r--
Added One Time Password support. This is only for time-based OTP for now ("TOPT" algorithm), but that's more or less what one expects to see in the wild anyhow. This is sort of a placeholder UI until I replace the entire existing UI with something better.
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