<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://forum.yubico.com/feed.php?f=16&amp;t=628" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2011-01-30T11:59:07+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=16&amp;t=628</id>
<entry>
<author><name><![CDATA[jschroettle]]></name></author>
<updated>2011-01-30T11:59:07+01:00</updated>
<published>2011-01-30T11:59:07+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=628&amp;p=2536#p2536</id>
<link href="https://forum.yubico.com/viewtopic.php?t=628&amp;p=2536#p2536"/>
<title type="html"><![CDATA[Re: Problem with understanding HMAC-SHA1 challenge-response]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=628&amp;p=2536#p2536"><![CDATA[
It works, thank you.<br />I also made the mistake to 'putbuffer' the NIST string in hex encoding.<br />One improvement of the test container could be, that it displays a warning if the user tries to 'putbuffer' something which is not valid according to the current data encoding.<br /><br />Best regards,<br /><br />Josef<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1518">jschroettle</a> — Sun Jan 30, 2011 11:59 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Jakob]]></name></author>
<updated>2011-01-30T03:07:01+01:00</updated>
<published>2011-01-30T03:07:01+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=628&amp;p=2533#p2533</id>
<link href="https://forum.yubico.com/viewtopic.php?t=628&amp;p=2533#p2533"/>
<title type="html"><![CDATA[Re: Problem with understanding HMAC-SHA1 challenge-response]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=628&amp;p=2533#p2533"><![CDATA[
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.<br /><br />In the sample client container, do the following steps:<br /><br />1. Set data encoding to Ascii and click PutBuffer. The string &quot;Sample #2&quot; is written to the buffer<br /><br />2. Set data encoding to hex (you can verify the data in hex by clicking GetBuffer, which then yields VT_BSTR 53616d706c65202332)<br /><br />3. Check config #2<br /><br />4. Press hmacSha1<br /><br />5. The NIST string is displayed in the get field as VT_BSTR 0922d3405faa3d194f82a45830737d5cc6c75d24<br /><br /><br />The sample is maybe a bit unintuitive here so thanks for pointing this out. We shall update the manual.<br /><br />Please let me know if this solved your problem.<br /><br />Best regards,<br /><br />JakobE<br />Hardware- and firmware guy @ Yubico<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=83">Jakob</a> — Sun Jan 30, 2011 3:07 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[jschroettle]]></name></author>
<updated>2011-01-29T22:05:14+01:00</updated>
<published>2011-01-29T22:05:14+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=628&amp;p=2532#p2532</id>
<link href="https://forum.yubico.com/viewtopic.php?t=628&amp;p=2532#p2532"/>
<title type="html"><![CDATA[Problem with understanding HMAC-SHA1 challenge-response]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=628&amp;p=2532#p2532"><![CDATA[
Hi there,<br /><br />I try to integrate HMAC-SHA1 challenge-response into one of my programs.<br />So I set my config #2 to HMAC-SHA1, variable size, NIST test key (3031..43)<br />My first experiments are with the 'Sample YubiClientAPI test container'.<br />When I set the PutBuffer to 'Sample #2' and press 'hmacSha1' I get a different result every time I press the button, but never the NIST vector (0922...) which I should get according to the document 'Yubikey Client COM API' Version 1.0.<br />What am I doing wrong?<br />Why is the result changing and not static?<br />Is the manual wrong or the software?<br />Thank you for your help<br /><br />Josef<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1518">jschroettle</a> — Sat Jan 29, 2011 10:05 pm</p><hr />
]]></content>
</entry>
</feed>