From 22e378677d5b00a05c021dc6660651608b384e0d Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Thu, 7 Jun 2018 00:22:45 +0200 Subject: Add support for encrypted volume MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch adds support for the commands to enable or disable the encrypted volume on the Nitrokey Storage. To test these commands, the output of lsblk is parsed for the device model “Nitrokey Storage”. This is not perfect but seems to be the best solution for automated testing. As the effect of enabling and disabling volumes is not immediate, a delay of two seconds is added to the tests before checking lsblk. This is sufficient on my machine, yet it would be better to have a portable version of this check. This patch also adds a lock method to Device that executes the lock_device command. This command was previously only used to close the password safe. On the Nitrokey Storage, it also disables the encrypted and hidden volume. --- TODO.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'TODO.md') diff --git a/TODO.md b/TODO.md index 992b501..e2fb3fe 100644 --- a/TODO.md +++ b/TODO.md @@ -4,8 +4,6 @@ - `NK_build_aes_key` - `NK_is_AES_supported` - `NK_send_startup` - - `NK_unlock_encrypted_volume` - - `NK_lock_encrypted_volume` - `NK_unlock_hidden_volume` - `NK_lock_hidden_volume` - `NK_create_hidden_volume` @@ -39,3 +37,4 @@ - Consider implementing `Into` for `(Device, CommandError)` - Check error handling in PasswordSafe::drop(). - Disable creation of multiple password safes at the same time. +- Check timing in Storage tests. -- cgit v1.2.1