An 80-byte key makes no sense, since HMAC hashes keys longer than 64

bytes.  Google Authenticator uses 20-byte keys.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@677 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
Dag-Erling Smørgrav 2013-03-18 21:19:41 +00:00
parent 496bd4632b
commit f3f8ccc9c3
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ char *oath_key_to_uri(const struct oath_key *);
#define DUMMY_LABEL ("oath-dummy-key")
#define DUMMY_LABELLEN (sizeof DUMMY_LABEL)
#define DUMMY_KEYLEN 80
#define DUMMY_KEYLEN 64
struct oath_key *oath_dummy_key(enum oath_mode, enum oath_hash, unsigned int);