Nitrokey / opcard-rs

OpenPGP card implementation
49 stars 1 forks source link

Use external storage #117

Closed sosthene-nitrokey closed 1 year ago

sosthene-nitrokey commented 1 year ago

This PR makes the storage used configurable via the options, and makes it to be External by default.

For better readability, it renames the Internal state to Persistent and the Runtime state to Volatile.

Open question: should we allow more granular control of the storage used? For example storing the keys on the Internal storage but storing the state in the external storage?

daringer commented 1 year ago

Open question: should we allow more granular control of the storage used? For example storing the keys on the Internal storage but storing the state in the external storage?

I don't see a use-case for this right now, so we should keep it simple and either entirely have all data on the external or the internal flash. Towards SE050 support we have to think about this again either way.