Changeset 677 in openpam


Ignore:
Timestamp:
Mar 18, 2013, 9:19:41 PM (8 years ago)
Author:
Dag-Erling Smørgrav
Message:

An 80-byte key makes no sense, since HMAC hashes keys longer than 64
bytes. Google Authenticator uses 20-byte keys.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/security/oath.h

    r655 r677  
    4545#define DUMMY_LABEL     ("oath-dummy-key")
    4646#define DUMMY_LABELLEN  (sizeof DUMMY_LABEL)
    47 #define DUMMY_KEYLEN    80
     47#define DUMMY_KEYLEN    64
    4848
    4949struct oath_key *oath_dummy_key(enum oath_mode, enum oath_hash, unsigned int);
Note: See TracChangeset for help on using the changeset viewer.