Yubico OTP test vectors

These are static test vectors for Yubico OTP.

Key Private ID Use counter Timestamp low Timestamp high Session counter Random CRC OTP

000102030405060708090a0b0c0d0e0f

010203040506

0001

0001

01

01

0000

fe36

dvgtiblfkbgturecfllberrvkinnctnn

000102030405060708090a0b0c0d0e0f

010203040506

0001

0001

01

02

0000

1152

rnibcnfhdninbrdebccrndfhjgnhftee

000102030405060708090a0b0c0d0e0f

010203040506

0fff

0001

01

01

0000

9454

iikkijbdknrrdhfdrjltvgrbkkjblcbh

88888888888888888888888888888888

888888888888

8888

8888

88

88

8888

d3b6

dcihgvrhjeucvrinhdfddbjhfjftjdei

00000000000000000000000000000000

000000000000

0000

0000

00

00

0000

a96a

kkkncjnvcnenkjvjgncjihljiibgbhbh

c4422890653076cde73d449b191b416a

33c69e7f249e

0001

13a7

24

00

c63c

1c86

iucvrkjiegbhidrcicvlgrcgkgurhjnj

HMAC test vectors

These are static test vectors for the HMAC that is used for both requests and responses

Requests

Client Secret Request (without h=) h=

mG5be6ZJU1qBGz24yPh/ESM3UdU=

id=1&otp=vvungrrdhvtklknvrtvuvbbkeidikkvgglrvdgrfcdft&nonce=jrFwbaYFhn0HoxZIsd9LQ6w2ceU

h=%2Bja8S3IjbX593%2FLAgTBixwPNGX4%3D

Responses

Client Secret Response (without h=) HMAC

mG5be6ZJU1qBGz24yPh/ESM3UdU=

status=OK
t=2019-06-06T05:14:15Z0369
nonce=0123456789abcdef
otp=cccccckdvvulethkhtvkrtbeukiettvfceekurncllcj
sl=25
h=iCV9uFJDtuyELQsxFPnR80Yj2XU=