-
Notifications
You must be signed in to change notification settings - Fork 34
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
Improve documentation for NK_is_AES_supported
and NK_send_startup
#142
Comments
I'd say a general documentation for the usage and especially for API would be very useful. Something with Doxygen, Sphinx (with Breathe and Doxygen), or QDoc would be nice. |
Very true, I was thinking about compiling an overview document once I’m done with nitrokey-rs and nitrocli. |
@robinkrahl |
Could you please also add some more explanations for the |
AFAIR |
Interesting! So it could make sense to warn the user if they try to create a hidden volume outside of these bounds, but one should regard them as a safe choice per se, right? |
And if it returns (20, 80) – does that mean that all accessed blocks were in the range 20..80, or in the ranges 0..20 and 80..100? |
Exactly. In Nitrokey App's UI this is simply not possible, since damaging EV could reveal the HV.
One must never use the EV further on to not damage HV by overwriting it. There are no protections by design, as it must not be revealed. Edit: some FS's write its backup data in the center of the volume (e.g. NTFS), so the inital bounds could be e.g. 20,50. |
Thanks for the explanation! (By the way, 20..80 was just an example – I get 1..99 for an unused Storage.) |
I see. It must be default in the Nitrokey App then. |
After looking at the libnitrokey source and the firmware, I’m still not sure what these functions do:
NK_is_AES_supported
– When would this ever be false? When should I check this?NK_send_startup
– According to the documentation, it is like a combination ofget_status_storage
andset_time
, but libnitrokey never uses the returned data. Why should I call this method and notNK_set_time
?The text was updated successfully, but these errors were encountered: