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:
parent
496bd4632b
commit
f3f8ccc9c3
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue