<?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=1872" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2015-05-31T20:31:59+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=16&amp;t=1872</id>
<entry>
<author><name><![CDATA[bobo]]></name></author>
<updated>2015-05-31T20:31:59+01:00</updated>
<published>2015-05-31T20:31:59+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1872&amp;p=7380#p7380</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1872&amp;p=7380#p7380"/>
<title type="html"><![CDATA[Re: Yubikey Challenge-Response (HmacSha1) integration in jav]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1872&amp;p=7380#p7380"><![CDATA[
Using the Yubikey 3.2 with the Usb4java library, I get the following errors:<br /><br />Using the libusb-win32 driver (from Zadig):<br />Exception in thread &quot;main&quot; org.usb4java.LibUsbException: USB error 12: Unable to open USB device: Operation not supported or unimplemented on this platform at org.toporin.yubikey4java.YubikeyConnector.main(YubikeyConnector.java:366)<br /><br />Using the default hidusb 6.2.92:<br />Exception in thread &quot;main&quot; org.usb4java.LibUsbException: USB error 3: Unable to open USB device: Access denied (insufficient permissions) at org.toporin.yubikey4java.YubikeyConnector.main(YubikeyConnector.java:366)<br /><br />The error is thrown when trying to open the device (&quot;result = LibUsb.open(device, handle);&quot;)<br /><br />With the same configuration but a Yubikey 3.4, it works fine with the libusb-win32 driver.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2990">bobo</a> — Sun May 31, 2015 8:31 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Klas]]></name></author>
<updated>2015-05-29T11:48:35+01:00</updated>
<published>2015-05-29T11:48:35+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1872&amp;p=7375#p7375</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1872&amp;p=7375#p7375"/>
<title type="html"><![CDATA[Re: Yubikey Challenge-Response (HmacSha1) integration in jav]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1872&amp;p=7375#p7375"><![CDATA[
Hello,<br /><br />yubikey-personalization uses a windows specific backend (<!-- m --><a class="postlink" href="https://github.com/Yubico/yubikey-personalization/blob/master/ykcore/ykcore_windows.c">https://github.com/Yubico/yubikey-perso ... _windows.c</a><!-- m -->) which basically uses the same functions as hidapi to talk with the device, so it should be possible to get the same behaviour from them. python-yubico on the other hand uses libusb which might run into other restrictions.<br /><br />There has been quite a few changes in the Neo platform since 3.2.0 so it's hard to point to anything specific that might have changed behaviour like this, it'd help if you could post specifically what goes wrong (and what is read/written at that point).<br /><br />/klas<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2019">Klas</a> — Fri May 29, 2015 11:48 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[bobo]]></name></author>
<updated>2015-05-28T21:15:33+01:00</updated>
<published>2015-05-28T21:15:33+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1872&amp;p=7374#p7374</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1872&amp;p=7374#p7374"/>
<title type="html"><![CDATA[Re: Yubikey Challenge-Response (HmacSha1) integration in jav]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1872&amp;p=7374#p7374"><![CDATA[
I made a small java project that uses the Usb4java library to communicate with the Yubikey. Only the the Hmac-Sha1 challenge-response is supported so far. The code is available here:<br /><br /><!-- m --><a class="postlink" href="https://github.com/Toporin/yubikey4java">https://github.com/Toporin/yubikey4java</a><!-- m --><br /><br />Apparently, it is not possible to communicate with the Yubikey via the Windows Hid driver and Hidapi library because Windows blocks access to mouse and keyboard (user page 0x06) with this driver. Is it correct?<br /><br />The workaround is to use the usb4java/libusb library and install a libusb-win32/WinUSB driver for the Yubikey, for example using Zadig (to replace the default Hidusb default driver on interface 1).<br /><br />This works fine using a Yubikey with firmware version 3.4.0 (VID:1050 &amp; PID:114), However communication fails with a Yubikey Neo (VID:1050 &amp; PID:111) with firmware 3.2.0. Communication also fails using the python-yubico library (which also uses libusb), but it works with the yubico-personalization tool written in C. Any idea why?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2990">bobo</a> — Thu May 28, 2015 9:15 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[bobo]]></name></author>
<updated>2015-05-11T09:39:19+01:00</updated>
<published>2015-05-11T09:39:19+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1872&amp;p=7294#p7294</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1872&amp;p=7294#p7294"/>
<title type="html"><![CDATA[Re: Yubikey Challenge-Response (HmacSha1) integration in jav]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1872&amp;p=7294#p7294"><![CDATA[
Thanks for the indication, I'll have a look at that!<br /><br />I would like to use the HmacSha1 challenge-response mechanism to authorize transaction signature in a javacard Bitcoin Wallet based on the yubikey neo. See the project here: <!-- m --><a class="postlink" href="https://bitcointalk.org/index.php?topic=995415.0">https://bitcointalk.org/index.php?topic=995415.0</a><!-- m -->. <br /><br />The wallet would send a challenge request and sign a transaction only if the user provides the correct response to the challenge.<br /><br />Best regards<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2990">bobo</a> — Mon May 11, 2015 9:39 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[henrik]]></name></author>
<updated>2015-05-08T12:48:27+01:00</updated>
<published>2015-05-08T12:48:27+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1872&amp;p=7290#p7290</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1872&amp;p=7290#p7290"/>
<title type="html"><![CDATA[Re: Yubikey Challenge-Response (HmacSha1) integration in jav]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1872&amp;p=7290#p7290"><![CDATA[
Hi!<br /><br />There's no Java library for talking via USB with the YubiKey.<br /><br />Your best bets in Java is probably to use the C lib: <!-- m --><a class="postlink" href="https://developers.yubico.com/yubikey-personalization/">https://developers.yubico.com/yubikey-personalization/</a><!-- m --><br /><br />...or to implement to protocol yourself using <!-- m --><a class="postlink" href="https://github.com/nyholku/purejavahidapi">https://github.com/nyholku/purejavahidapi</a><!-- m --><br /><br /><br />May I ask what kind of project you're working on?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2968">henrik</a> — Fri May 08, 2015 12:48 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[bobo]]></name></author>
<updated>2015-05-08T07:25:26+01:00</updated>
<published>2015-05-08T07:25:26+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1872&amp;p=7288#p7288</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1872&amp;p=7288#p7288"/>
<title type="html"><![CDATA[Yubikey Challenge-Response (HmacSha1) integration in java]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1872&amp;p=7288#p7288"><![CDATA[
Hello,<br /><br />I would like to integrate the challenge-response mechanism of the Yubikey in a java project, i.e. the program sends a 64-byte challenge to the yubikey, which ansers with the corresponding HmacSha1.<br /><br />I found a python library that supports that (<!-- m --><a class="postlink" href="https://github.com/Yubico/python-yubico/blob/master/examples/nist_challenge_response">https://github.com/Yubico/python-yubico ... e_response</a><!-- m -->).<br />Is there a similar library in java, or any documentation available?<br /><br />Thanks for your help.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2990">bobo</a> — Fri May 08, 2015 7:25 am</p><hr />
]]></content>
</entry>
</feed>