Nitrokey / nitrokey-pro-firmware

Firmware for the Nitrokey Pro device
GNU General Public License v3.0
117 stars 21 forks source link

New error code for a missing AES key #55

Open robinkrahl opened 5 years ago

robinkrahl commented 5 years ago

Currently, the PWS commands return an AES decryption failed error if the AES key could not be decrypted. It would be helpful to have a separate error code for the case when no AES key is present (i. e. a factory reset has been performed) to show a helpful error message to the user.

This also applies to the Storage – should I open a second issue for that?

szszszsz commented 5 years ago

I will link it, thank you!