<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nitrokey-rs/tests, branch v0.5.2</title>
<subtitle>Rust interface to libnitrokey</subtitle>
<id>https://git.ireas.org/nitrokey-rs/atom?h=v0.5.2</id>
<link rel='self' href='https://git.ireas.org/nitrokey-rs/atom?h=v0.5.2'/>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/'/>
<updated>2020-01-14T15:53:52Z</updated>
<entry>
<title>Add the fill_sd_card function to Storage</title>
<updated>2020-01-14T15:53:52Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2020-01-14T15:15:40Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=2e543445c3059fa9decdbef718caf84696bb8786'/>
<id>urn:sha1:2e543445c3059fa9decdbef718caf84696bb8786</id>
<content type='text'>
This patch adds support for libnitrokey’s
NK_fill_SD_card_with_random_data function.  It is executed by the
fill_sd_card function of the Storage struct.  We also add a new test
case that is set to ignore because it takes between 30 and 60 minutes to
run.
</content>
</entry>
<entry>
<title>Add the get_operation_status function to the Storage struct</title>
<updated>2020-01-14T15:53:45Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2020-01-14T12:48:56Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=f266ea63039c87886f871b068ef3dcdf851a1eca'/>
<id>urn:sha1:f266ea63039c87886f871b068ef3dcdf851a1eca</id>
<content type='text'>
This patch adds support for the NK_get_progress_bar_value function:  It
adds the OperationStatus enum that stores the return value of this
command and adds the get_operation_status function to the Storage struct
that executes the command.
</content>
</entry>
<entry>
<title>Add the get_sd_card_usage function to the Storage struct</title>
<updated>2020-01-14T11:06:23Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2020-01-14T11:00:15Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=73c8aebac338d3454d7e345ffd687324317077ec'/>
<id>urn:sha1:73c8aebac338d3454d7e345ffd687324317077ec</id>
<content type='text'>
This patch adds support for the NK_get_SD_usage_data function.  It
returns a range of the SD card that has not been accessed during this
power cycle.
</content>
</entry>
<entry>
<title>Rename Status::get_status to get_storage_status</title>
<updated>2020-01-11T19:26:40Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2020-01-11T19:13:22Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=6142752da1563c1ab873dc7069aeec72522cca99'/>
<id>urn:sha1:6142752da1563c1ab873dc7069aeec72522cca99</id>
<content type='text'>
In the last patch, we added the get_status function to the Device trait.
This patch renames the Storage::get_status function to
get_storage_status to resolve the name clash – though allowed by the
compiler, it is rather confusing for the end user.
</content>
</entry>
<entry>
<title>Add support for the GET_STATUS command</title>
<updated>2020-01-11T19:25:56Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2020-01-11T19:05:39Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=dbee55efa41496c8a683bfab96163facc93d6639'/>
<id>urn:sha1:dbee55efa41496c8a683bfab96163facc93d6639</id>
<content type='text'>
This patch adds support for the GET_STATUS command that returns the
status information common to all Nitrokey devices.  It can be accessed
using the Device::get_status function and is stored in a Status struct.

Due to a bug in the Storage firmware [0], the GET_STATUS command returns
wrong firmware versions and serial numbers.  Until this is fixed in
libnitrokey [1], we have to manually execute the GET_DEVICE_STATUS
command to fix these values for the Nitrokey Storage.

Also, this leads to a name clash with the existing Storage::get_status
function, which will be renamed in an upcoming patch.

[0] https://github.com/Nitrokey/nitrokey-storage-firmware/issues/96
[1] https://github.com/Nitrokey/libnitrokey/issues/166
</content>
</entry>
<entry>
<title>Add the connect_path function to the Manager struct</title>
<updated>2020-01-07T10:33:34Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-12-29T12:15:04Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=97c772724dd1fe395e7154e0d71c3b2408436082'/>
<id>urn:sha1:97c772724dd1fe395e7154e0d71c3b2408436082</id>
<content type='text'>
This patch adds the connect_path function to the Manager struct that
uses NK_connect_with_path to connect to a Nitrokey device at a given USB
path.
</content>
</entry>
<entry>
<title>Add list_devices function</title>
<updated>2020-01-07T10:33:27Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-12-29T11:51:28Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=c74b8b3ea8dc4fe7c6891ae120540f8da5623227'/>
<id>urn:sha1:c74b8b3ea8dc4fe7c6891ae120540f8da5623227</id>
<content type='text'>
This patch adds support for libnitrokey’s NK_list_devices function by
introducing the top-level list_devices function.  It returns a vector of
DeviceInfo structs with information about all connected Nitrokey
devices.
</content>
</entry>
<entry>
<title>Use dyn keyword for trait arguments in tests/otp.rs</title>
<updated>2019-12-29T22:00:09Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-12-29T22:00:09Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=0e07d9cdd6b333ebd16160d673f8735940af3a43'/>
<id>urn:sha1:0e07d9cdd6b333ebd16160d673f8735940af3a43</id>
<content type='text'>
To fix a compiler warning, we use the dyn keyword for trait arguments in
the otp.rs instead of using the trait directly.
</content>
</entry>
<entry>
<title>Check retry count before building AES key in test</title>
<updated>2019-07-09T11:37:42Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-07-09T11:34:53Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=fe8161ba51d65382a20650a75f06e1cc7b753e68'/>
<id>urn:sha1:fe8161ba51d65382a20650a75f06e1cc7b753e68</id>
<content type='text'>
Due to a timing issue, some calls to the build_aes_key function may fail
after a factory reset.  As a workaround for this firmware bug, we check
the user retry count before building the aes key in the factory_reset
test.  For details, see the upstream issue:
	https://github.com/Nitrokey/nitrokey-pro-firmware/issues/57
</content>
</entry>
<entry>
<title>Use into_manager in device connection tests</title>
<updated>2019-07-09T11:07:52Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-07-09T11:03:01Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=a0ebd37765027121b85dfd6b78b453a50adc69c9'/>
<id>urn:sha1:a0ebd37765027121b85dfd6b78b453a50adc69c9</id>
<content type='text'>
To avoid a ConcurrentAccessError, we have to use the
Device::into_manager function instead of calling take to obtain a
Manager instance.
</content>
</entry>
</feed>
