tillitis / tillitis-key1

Board designs, FPGA verilog, firmware for TKey, the flexible and open USB security key 🔑
https://www.tillitis.se
398 stars 24 forks source link

fw: Persistent storage syscalls #275

Open mchack-work opened 3 weeks ago

mchack-work commented 3 weeks ago

Placeholder! Please fill in.

Implement persistent storage syscalls:

  1. Retrieve information about if the device app has an allocated storage area or not.

  2. Allocate or deallocate a storage area. The FW shall return status indicating if the allocation was successful or not.

  3. Perform read or write operations of data to the allocated storage area.

(Cut from investigation report.)

A list of current syscalls:

    BLAKE2S = 0,
    ALLOC_AREA,
    DEALLOC_AREA,
    WRITE_DATA,
    READ_DATA,
    ERASE_DATA,
    PRELOAD_STORE,
    PRELOAD_STORE_FINALIZE,
    PRELOAD_DELETE,
    MGMT_APP_REGISTER,
    MGMT_APP_UNREGISTER,

Implement support for a device manager application with more priveleged access to flash.

dehanj commented 6 days ago

Unimplemented features and/or open questions

Some of these might be useful if someone wants to completely erase the storage or have forgotten the USS to an app that has an allocated area.