<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nitrokey-rs/tests, branch v0.3.0</title>
<subtitle>Rust interface to libnitrokey</subtitle>
<id>https://git.ireas.org/nitrokey-rs/atom?h=v0.3.0</id>
<link rel='self' href='https://git.ireas.org/nitrokey-rs/atom?h=v0.3.0'/>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/'/>
<updated>2019-01-03T23:51:00Z</updated>
<entry>
<title>Update documentation and test for factory_reset</title>
<updated>2019-01-03T23:51:00Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-03T23:48:22Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=c5d5ab12ab8ca6b9889550f050b859b76fa4bdd7'/>
<id>urn:sha1:c5d5ab12ab8ca6b9889550f050b859b76fa4bdd7</id>
<content type='text'>
Contrary to my previous beliefs, build_aes_key has to be called even
after a factory reset using the Nitrokey API.  This patch updates the
documentation and the unit tests based on this insight.
</content>
</entry>
<entry>
<title>Add Device::build_aes_key method</title>
<updated>2019-01-03T17:06:30Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-03T17:04:50Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=616f84c13a4e676d3e2f870533fb1b8778c5f614'/>
<id>urn:sha1:616f84c13a4e676d3e2f870533fb1b8778c5f614</id>
<content type='text'>
This patch adds the build_aes_key method to the Device trait that uses
the NK_build_aes_key function to build new AES keys on the device.  This
effectively resets the password safe and the encrypted storage.  It is
unclear whether other data (e. g. the one-time passwords) are affected
too.
</content>
</entry>
<entry>
<title>Add Device::factory_reset method</title>
<updated>2019-01-03T13:53:06Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-03T13:50:15Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=0a7a62c9af15b11e5dbfad1900ac89924457b272'/>
<id>urn:sha1:0a7a62c9af15b11e5dbfad1900ac89924457b272</id>
<content type='text'>
This patch adds the factory_reset_method to the Device trait that uses
the NK_factory_reset function to perform a factory reset.  The tests
verify that the user and admin PIN are reset and that the OTP storage
and the password safe are deleted.
</content>
</entry>
<entry>
<title>Add Storage::change_update_pin method</title>
<updated>2019-01-03T12:17:54Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-03T12:16:21Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=d60e03b46a6af75056f07394ef66ecaa35f32d77'/>
<id>urn:sha1:d60e03b46a6af75056f07394ef66ecaa35f32d77</id>
<content type='text'>
This patch adds the change_update_pin method to the Storage struct that
uses the NK_change_update_password function to set the password required
for firmware updates.
</content>
</entry>
<entry>
<title>Preserve unknown error code values</title>
<updated>2019-01-03T01:12:17Z</updated>
<author>
<name>Daniel Mueller</name>
<email>deso@posteo.net</email>
</author>
<published>2019-01-02T23:53:18Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=65ead1426e1e9864b7e245fd729a66e689e549b4'/>
<id>urn:sha1:65ead1426e1e9864b7e245fd729a66e689e549b4</id>
<content type='text'>
The CommandError::Unknown variant, which is used whenever a reported
error code is not known, makes it close to impossible to determine the
root cause of, say, a one-off error, because all information explaining
what went wrong is discarded.
With this change we adjust the Unknown variant to include the error
report. In addition, we introduce a new CommandError variant, Undefined,
that is used when no error code is available.
</content>
</entry>
<entry>
<title>Extend unlock_user_pin tests</title>
<updated>2019-01-03T00:40:12Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-03T00:39:22Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=9af5d8d894563f34d063035607bc39a5e8239fa7'/>
<id>urn:sha1:9af5d8d894563f34d063035607bc39a5e8239fa7</id>
<content type='text'>
This patch adds a test case that changes the PIN when calling
unlock_user_pin.  The previous test case only unlocked the current user
PIN.
</content>
</entry>
<entry>
<title>Add force argument to ConfigureOtp::set_time</title>
<updated>2019-01-01T23:43:32Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-01T23:38:14Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=52afed9c6a17ec9c120a5a91b445afa74be87f0e'/>
<id>urn:sha1:52afed9c6a17ec9c120a5a91b445afa74be87f0e</id>
<content type='text'>
This patch adds the force argument to the set_time method in the
ConfigureOtp trait that allows the user to choose whether jumps to the
past are allowed when updating the time.  It is implemented by using the
NK_totp_set_time_soft function.  Previously, jumps where unconditionally
allowed.
</content>
</entry>
<entry>
<title>Fix Storage volume detection for test cases</title>
<updated>2018-12-30T11:46:20Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2018-12-30T11:46:20Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=27f2bb834da85aba3935e14c6069a07f03ac6a45'/>
<id>urn:sha1:27f2bb834da85aba3935e14c6069a07f03ac6a45</id>
<content type='text'>
It seems that with newer firmeware, the model string in the lsblk output
is Nitrokey_Storage instead of Nitrokey Storage.  Therefore this patch
replaces underscores with spaces to account for both versions.
</content>
</entry>
<entry>
<title>Fix formatting using to rustfmt</title>
<updated>2018-12-29T23:04:39Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2018-12-29T23:04:39Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=62d698db4941c06905cb08bdbe4cc35ad54132d5'/>
<id>urn:sha1:62d698db4941c06905cb08bdbe4cc35ad54132d5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add function Device::get_model</title>
<updated>2018-12-29T23:04:23Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2018-12-29T23:04:23Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=3d951ab54daea9c362bdae2e0945701955c412e5'/>
<id>urn:sha1:3d951ab54daea9c362bdae2e0945701955c412e5</id>
<content type='text'>
This patch adds the function Device::get_model that returns the model of
the connected Nitrokey stick.
</content>
</entry>
</feed>
