Pol Henarejos
f01aca5518
Flash size is obtained dynamically rather than in build time. It will allow to reduce dramatically the number of builds.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2025-05-30 12:06:26 +02:00
Pol Henarejos
1d89c14268
Compute flash memory bounds depending on the partition if available.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-12-30 21:27:46 +01:00
Pol Henarejos
ffaf20da5d
Add memory statistics.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-12-23 19:35:56 +01:00
Pol Henarejos
6625678c30
Rename CCID_ codes to PICOKEY_
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-11-05 18:21:24 +01:00
Pol Henarejos
2497b633ae
Fix flash initialization for RP2350.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-08-28 18:47:31 +02:00
Pol Henarejos
7def35f87c
Remove carriage return \r for better debug.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-04-10 18:16:38 +02:00
Pol Henarejos
ab1b245f4f
Fix write & read to flash partition.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-04-09 19:58:33 +02:00
Pol Henarejos
023039deb2
Attempting to add support to esp32s3.
...
Will it work? Who knows...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-04-04 21:01:55 +02:00
Pol Henarejos
d0dc786f74
Rename project to Pico Keys SDK to avoid confusions with Pico Fido and Pico OpenPGP.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-11-06 13:32:28 +01:00
Pol Henarejos
be03298832
Fix potential crash on delete file.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-03-09 18:16:18 +01:00
Pol Henarejos
43ef33d60b
Switching to new style.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-02-15 00:10:00 +01:00
Pol Henarejos
12bdcbd1f9
Harmonizing coding style.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-02-14 23:23:57 +01:00
Pol Henarejos
4b420a7e8e
Fix important crash.
...
When a file was cleared, file->data was not nulled and it was retained in subsequent calls, which derived onto a flash memory corruption.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-01-14 00:40:22 +01:00
Pol Henarejos
4d06c0fc3d
Fix accessing to mapped memory.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-01-12 20:03:21 +01:00
Pol Henarejos
4919eb980f
Added a major refactoring to include Emulated interface.
...
It works in combination with virtualsmarcard module (vpcd). It properly installed, it creates a virtual reader that can be interfaced via PCSC+vcpd. At user app level, it has no difference of having a physical smart card.
At this moment, it only works emulating a CCID interface.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-01-09 18:06:21 +01:00
Pol Henarejos
36b2924036
If file functions are called with NULL arg silently return.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-12-24 01:39:26 +01:00
Pol Henarejos
40288a85f1
It's a major reorganization.
...
In order to add FIDO2 support, we need to reorganize some USB/CCID calls to specific area (named driver).
Thus, pico-hsm-sdk has two drivers:
- CCID driver implements APDU over USB/CCID ISO-7816 standard procedures.
- HID driver implements APDU over HID.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-08-30 02:00:11 +02:00
Pol Henarejos
8e5d33c4ba
Removing trailing spaces.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-08-19 01:44:03 +02:00
Pol Henarejos
7738c1902e
Added permanent memory region to store data that remains persistent even after an initialization. To delete it, the device must be fully wiped.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-08-18 19:48:13 +02:00
Pol Henarejos
152a2fa031
Fix warnings
2022-05-27 20:58:28 +02:00
Pol Henarejos
d4b0978d50
More fixes
2022-05-26 14:15:16 +02:00
Pol Henarejos
c4e781103f
Fix with write offsets.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-05-24 14:43:08 +02:00
Pol Henarejos
1a58422cd8
flash_write_data_to_file() now accepts offset argument.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-05-24 14:28:30 +02:00
Pol Henarejos
1f33f1417c
Adding first release of Pico CCID. It should be the core for different types of smart cards.
2022-04-19 13:40:45 +02:00