From f3f8ccc9c342dd58cb7923b45fb001d688b5871a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Mon, 18 Mar 2013 21:19:41 +0000 Subject: [PATCH] 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 --- include/security/oath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/security/oath.h b/include/security/oath.h index 733fc46..3329042 100644 --- a/include/security/oath.h +++ b/include/security/oath.h @@ -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);