There have been requests for more test vectors for real OTPs, so here is a bunch from a key with this AES key:
Code:
B64 secret: BoKVLTNj8iVlS1inOxMSWQ==
Hex secret: 0682952d3363f225654b58a73b131259
Modhex secret: chjdkgdteehevddghgfngjlienbebdgk
A few OTPs are:
Code:
ndgtriluugngkuhguutjdfihfkleuvnjtjiljkbtbngb
ndgtriluugnghggtkhvrbbrrgtdfeivgklbkviteggcu
ndgtriluugngvlbnjllchllugvhhftndludrjubuuvkh
ndgtriluugngvukkrdlbvnettvhdhcjfgtjljkufulfe
ndgtriluugngnfdeicbdnfhlinhjvkufikdvbunjjvbn
ndgtriluugngbclrcivunvrbghicrfkeflvgrkdrfbve
ndgtriluugngvkdlfkvljfcvbehdvbtelhuutgdhfdku
You should be able to print debug info using the 'tool' program from the yubico-c project, see:
http://code.google.com/p/yubico-c/Outputs for the first two OTPs are:
Code:
jas@mocca:~$ tool chjdkgdteehevddghgfngjlienbebdgk ndgtriluugngkuhguutjdfihfkleuvnjtjiljkbtbngb
warning: overlong token, ignoring prefix: ndgtriluugng
Input:
token: kuhguutjdfihfkleuvnjtjiljkbtbngb
9e 65 ee d8 24 76 49 a3 ef b8 d8 7a 89 1d 1b 51
aeskey: chjdkgdteehevddghgfngjlienbebdgk
06 82 95 2d 33 63 f2 25 65 4b 58 a7 3b 13 12 59
Output:
c5 fc 55 c3 76 7f 0d 00 00 00 00 00 1a 33 6d 9d
Struct:
uid: c5 fc 55 c3 76 7f
counter: 13 (0x000d)
timestamp (low): 0 (0x0000)
timestamp (high): 0 (0x00)
session use: 0 (0x00)
random: 13082 (0x331a)
crc: 40301 (0x9d6d)
Derived:
cleaned counter: 13 (0x000d)
modhex uid: rgvrggreihiv
triggered by caps lock: no
crc: F0B8
crc check: ok
jas@mocca:~$
Code:
jas@mocca:~$ tool chjdkgdteehevddghgfngjlienbebdgk ndgtriluugnghggtkhvrbbrrgtdfeivgklbkviteggcu
warning: overlong token, ignoring prefix: ndgtriluugng
Input:
token: hggtkhvrbbrrgtdfeivgklbkviteggcu
65 5d 96 fc 11 cc 5d 24 37 f5 9a 19 f7 d3 55 0e
aeskey: chjdkgdteehevddghgfngjlienbebdgk
06 82 95 2d 33 63 f2 25 65 4b 58 a7 3b 13 12 59
Output:
c5 fc 55 c3 76 7f 0d 00 16 00 00 01 5f 97 0b 46
Struct:
uid: c5 fc 55 c3 76 7f
counter: 13 (0x000d)
timestamp (low): 22 (0x0016)
timestamp (high): 0 (0x00)
session use: 1 (0x01)
random: 38751 (0x975f)
crc: 17931 (0x460b)
Derived:
cleaned counter: 13 (0x000d)
modhex uid: rgvrggreihiv
triggered by caps lock: no
crc: F0B8
crc check: ok
jas@mocca:~$
Happy hacking,
Simon