Yubico / yubikey-personalization

YubiKey Personalization cross-platform library and tool
https://developers.yubico.com/yubikey-personalization/
BSD 2-Clause "Simplified" License
300 stars 82 forks source link

ykchalresp documentation: example is incomplete #81

Closed ghost closed 8 years ago

ghost commented 8 years ago

The documentation here says:

The YubiKey challenge-response operation can be demonstrated using the NIST PUB 198 A.2 test vector. First, program a YubiKey with the test vector :

$ ykpersonalize -2 -ochal-resp -ochal-hmac -ohmac-lt64 -a 303132333435363738393a3b3c3d3e3f40414243
 ...
Commit? (y/n) [n]: y
$

However, when a user actually executes

$ ykpersonalize -2 -ochal-resp -ochal-hmac -ohmac-lt64 -a 303132333435363738393a3b3c3d3e3f40414243

then instead of an ellipsis (as in the example quoted above), they are presented with a prompt asking for input:

HMAC key, 20 bytes (40 characters hex) :

What is the user expected to enter here, in order to progress towards successfully demonstrating the YubiKey challenge-response operation using the NIST PUB 198 A.2 test vector? Simply pressing the Enter key results in an error:

Yubikey personalization error: invalid option/argument value