solokeys / solo1

Solo 1 firmware in C
https://solokeys.com/
Other
2.3k stars 273 forks source link

Storing <any type of> keys in Solo #594

Open eozturk1 opened 2 years ago

eozturk1 commented 2 years ago

I see that there is this function in device.c:

int8_t ctap_store_key(uint8_t index, uint8_t * key, uint16_t len);
  1. Can it be used to store any type of key/data -- assuming it adheres to space limitations?
  2. If this is possible, can the current MAX_KEYS value be increased? It is 1 -- which is a bit limiting.
  3. How can we delete a key stored with this function? ctap_reset?
  4. Lastly, any other ways to store keys? Do we need to convert various types of keys into ResidentKeys?