Pol Henarejos
7f53d7f748
Fix warnings
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2026-05-14 19:18:39 +02:00
Pol Henarejos
b4813e9db2
Fix build
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2026-05-01 12:59:36 +02:00
Pol Henarejos
cc78469c01
Add stdio header.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2026-04-21 00:13:37 +02:00
Pol Henarejos
e24eb9b150
More renames.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2026-04-21 00:06:28 +02:00
Pol Henarejos
26de18608f
A refactor.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2026-04-20 17:34:42 +02:00
Pol Henarejos
8e6c6c1fcc
Apply strict build.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2026-03-08 19:27:23 +01:00
Pol Henarejos
802a706587
Fixed rare race condition.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2026-03-08 17:31:27 +01:00
Pol Henarejos
4cd437ed35
Fix strict non-prototype declaration warn.
...
Fixes #22 .
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2026-03-07 17:12:40 +01:00
Pol Henarejos
1be3691a95
Increase buffer size for non-pico.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2026-02-25 19:33:28 +01:00
Pol Henarejos
6f996c67c2
Fix phy marker write.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2026-02-01 20:33:39 +01:00
Pol Henarejos
081f473815
Add a PHY marker for RP2040 to preserve the serial number in BOOTSEL.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2026-01-29 16:03:09 +01:00
Pol Henarejos
d410a4cfc2
Add support for RP2354.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2025-11-15 19:56:46 +01:00
Pol Henarejos
8f907b25ba
Relicense project under the GNU Affero General Public License v3 (AGPLv3)
...
and add the Enterprise / Commercial licensing option.
Main changes:
- Replace GPLv3 headers with AGPLv3 headers in source files.
- Update LICENSE file to the full AGPLv3 text.
- Add ENTERPRISE.md describing the dual-licensing model:
* Community Edition: AGPLv3 (strong copyleft, including network use).
* Enterprise / Commercial Edition: proprietary license for production /
multi-user / OEM use without the obligation to disclose derivative code.
- Update README with a new "License and Commercial Use" section pointing to
ENTERPRISE.md and clarifying how companies can obtain a commercial license.
Why this change:
- AGPLv3 ensures that modified versions offered as a service or deployed
in production environments must provide corresponding source code.
- The Enterprise / Commercial edition provides organizations with an
alternative proprietary license that allows internal, large-scale, or OEM
use (bulk provisioning, policy enforcement, inventory / revocation,
custom attestation, signed builds) without AGPL disclosure obligations.
This commit formally marks the first release that is dual-licensed:
AGPLv3 for the Community Edition and a proprietary commercial license
for Enterprise customers.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2025-10-26 20:06:16 +01:00
Pol Henarejos
233e6594c6
Add casts to fix warnings.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2025-10-12 18:52:07 +02:00
Pol Henarejos
6f6004c57b
Fix build for non-pico boards.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2025-09-23 00:02:20 +02:00
Pol Henarejos
4edc506759
Fix build for non-pico boards.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2025-09-22 23:35:46 +02:00
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
68a816895e
Fix build for RP2040.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-12-30 21:37:38 +01: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
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
3235cd8595
Use mutex/semaphores for emulation, like in Pico and ESP.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-08-30 12:42:22 +02:00
Pol Henarejos
7a88a2b8e7
Improved multicore synchronization. Now they exchange signals and protect areas atomically.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-08-23 19:24:18 +02:00
Pol Henarejos
65fea84df1
Fix warnings.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-08-23 13:17:10 +02:00
al heisner
e920bff3f4
Change total flash pages (needed for pico-hsm)
2024-06-21 11:41:02 -05:00
Pol Henarejos
6adfe4344f
When flash is written, map must be reopened.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-04-10 18:16:05 +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
06fd241f49
Second round to make it work for ESP32S3.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-04-08 16:47:16 +02:00
Pol Henarejos
49f05e9e13
Now it builds the image.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-04-05 17:57:56 +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
a9dc6fd7f8
Added support for building emulation in Windows.
...
It has not been tested but it should not break any linux build.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-01-01 01:54:49 +01: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
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
b4c1375961
Fix readin cached pages.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-01-14 00:40:39 +01:00
Pol Henarejos
9bdde87b63
Fix reading memory when they are mapped.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-01-13 18:07:33 +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
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
152a2fa031
Fix warnings
2022-05-27 20:58:28 +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