As there is only one buffer for both in- and out transaction, the input data must be written for each request. If sequential HMAC operations are performed, the input data is taken from the previous operation's out data and I guess that is why you experience this behavior.
In the sample client container, do the following steps:
1. Set data encoding to Ascii and click PutBuffer. The string "Sample #2" is written to the buffer
2. Set data encoding to hex (you can verify the data in hex by clicking GetBuffer, which then yields VT_BSTR 53616d706c65202332)
3. Check config #2
4. Press hmacSha1
5. The NIST string is displayed in the get field as VT_BSTR 0922d3405faa3d194f82a45830737d5cc6c75d24
The sample is maybe a bit unintuitive here so thanks for pointing this out. We shall update the manual.
Please let me know if this solved your problem.
Best regards,
JakobE Hardware- and firmware guy @ Yubico
|