Nitrokey / libnitrokey

Communicate with Nitrokey devices in a clean and easy manner
https://nitrokey.com/
GNU Lesser General Public License v3.0
65 stars 34 forks source link

Check slot value in NK_create_hidden_volume #147

Open robinkrahl opened 5 years ago

robinkrahl commented 5 years ago

If NK_create_hidden_volume is called with an invalid slot number, it should return an appropriate error code instead of a wrong password error. (This should probably be fixed in the firmware, but it might be good to check it in libnitrokey too, similar to the OTP code.)