Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creation/unlocking of hidden volume not possible after sleep #40

Open
szszszsz opened this issue Jun 20, 2017 · 2 comments
Open

Creation/unlocking of hidden volume not possible after sleep #40

szszszsz opened this issue Jun 20, 2017 · 2 comments
Labels

Comments

@szszszsz
Copy link
Member

Description

Creation of hidden volume is not possible: device returns status: 6.
In the firmware's source code it is defined as:

#define OUTPUT_CMD_STICK20_STATUS_NO_USER_PASSWORD_UNLOCK   6

After device reinsertion creation of hidden volume works. My guess is this is caused by Smartcard being powered off during PC's sleep mode stage or some other power management issue.

Environment

Storage v0.46
OSX Sierra 10.12.3 / 10.12.5 (latest)
Macbook Pro
Nitrokey App v1.1

Scenario

It looks like this is reproducible by following scenario:
Precond:

  • Application opened v1.1, v0.46
  • Hidden volume set up with known password, 70%-90%, slot 0, exFAT+MBR
  1. Enable encrypted volume
  2. Go into sleep mode for 30 seconds, wake up
  3. Unlock hidden volume set up earlier

Currently this will result in device responding with status 6.
Reinserting the device fixes the issue.

Expected behaviour

Expected behaviour is to unlock/create the hidden volume without issues.

@szszszsz szszszsz added the bug label Aug 16, 2017
@szszszsz
Copy link
Member Author

To retest on latest Nitrokey App.

@szszszsz szszszsz added the test label Oct 25, 2017
@szszszsz
Copy link
Member Author

Issue is still occurring. Tested also on older Nitrokey App version - v0.6.3.

@szszszsz szszszsz removed the test label Oct 30, 2017
NKelias pushed a commit to NKelias/nitrokey-storage-firmware that referenced this issue May 25, 2019
Remove most of the build warnings. src/Library files are not impacted.
Warnings generated with -Wall. Some of the -Wextra were solved too.
Now any warning in our codebase (not src/Library; using -Wall switch)
would make a compilation error.
Compilation made on GCC 6.3.1 and 4.9.3. The latter build used for
testing.

Tested against:

    libnitrokey v3.3-12-g391a276 (pytest -sv test_pro.py --count 3)
    nitrokey-hotp-verification v1.0 (./test_hotp)

Closes Nitrokey#44
Fixes Nitrokey#40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant