41 Commits

Author SHA1 Message Date
Nicolas Stalder 0a463c6a27 Re-export Interchange 2021-01-31 12:23:33 +01:00
Nicolas Stalder e7ddc0a130 Consolidate "board", shortening "runner" 2021-01-31 12:23:33 +01:00
Nicolas Stalder f575868187 Purge ufmt; add build-pc to CI 2021-01-06 23:36:01 +01:00
Nicolas Stalder c99731afc2 CI fix 2021-01-06 22:07:17 +01:00
Nicolas Stalder 3da5d1d8e8 Semihosting flusher seems to work; open questions for USB serial 2021-01-06 22:07:17 +01:00
Nicolas Stalder a08e732e41 Big whoops, missed committing an earlier refactor 2021-01-06 02:28:20 +01:00
Nicolas Stalder e9b48a1f33 Document + streamline RNG construction 2021-01-06 01:38:45 +01:00
Nicolas Stalder 4738693661 Replace wg::blocking::rng with rand_core::RngCore 2021-01-06 01:38:45 +01:00
Conor Patrick 29578f2fcd trim any leading zeros on filenames for secrets 2021-01-06 01:38:45 +01:00
Conor Patrick be5d8b4536 add+use fill_random_bytes to be used for all rng needs 2021-01-06 01:38:45 +01:00
Conor Patrick 321354b8b4 improve rng construction
Had to get slightly hacky in the test to verify that multiple "boots" of trussed do not produce the same rng.
2021-01-06 01:38:45 +01:00
Nicolas Stalder 43fc8eef39 Move client/platform out of traits directory 2021-01-05 01:31:38 +01:00
Conor Patrick 9eb2b765fe fix trussed tests 2021-01-05 01:31:38 +01:00
Conor Patrick 61d2fcbfa2 refactor TrussedClient to be a trait + trait impl with Syscall param 2021-01-05 01:31:38 +01:00
Conor Patrick 4d1f12e22a add reboot method to trussed and trussed UI trait 2021-01-05 00:24:50 +01:00
Conor Patrick df1378c4af fix no-encryption & enforce that prince is provisioned when encryption is enabled 2021-01-05 00:24:50 +01:00
Conor Patrick 7066f1880b combine ui, uptime and make the ui idle update nicer 2020-10-09 16:20:12 +02:00
Conor Patrick 68fad77eb6 speed up p256 signing by not computing public key 2020-10-09 16:20:12 +02:00
Conor Patrick 1b8a5c65c9 handle UP timeout, reorg initialization, interrupt priorities 2020-10-09 16:20:12 +02:00
Conor Patrick 83ab5e0963 reorganize rgb and threebuttons behind UserInterface trussed trait, add uptime 2020-10-09 16:20:12 +02:00
Nicolas Stalder 1233b7d150 Fix rebase bugs and squelch some warnings 2020-09-11 00:54:57 +02:00
Nicolas Stalder 859376f481 Very basic UP request indication
- USB breaks if user waits too long to press
- pattern is static, need to fix how UI updates are done
  with RTIC
2020-09-11 00:54:57 +02:00
Nicolas Stalder 83dc00a221 Very minimal user presence check for FIDO 2020-09-11 00:54:57 +02:00
Nicolas Stalder 681124e1cd trussed-board crate, trussed Board trait
* All of `trussed` relies on certain facilities implemented by
  a "board". These are not tightly tied to "Solo Bee", so we move
  them into a crate that `trussed` itself depends on.
* The existing boards then implement this instead
* Preparing for addition of UI resources to the trussed service
  (buttons, LEDs), we model a "Board" trait that on the one hand
  gives access to the resources trussed needs, but on the other
  hand (like the approach in littlefs/Store) is *not* generic, but
  instead uses associated types. This is to prevent "generics
  explosion" in the code base
2020-09-11 00:54:57 +02:00
Conor Patrick 7be3d7f6d1 passing all tests reliably 2020-09-09 21:00:50 +02:00
Conor Patrick 2025234809 fix issues with deleting multiple credentials 2020-09-09 21:00:50 +02:00
Conor Patrick a8d81ccdab substitute all uses of semihosting and funnel with logging crate 2020-08-23 14:36:29 +02:00
Nicolas Stalder 410d0743f1 sd rtfm rtic $(fd --type file) 2020-07-17 00:35:54 +02:00
Nicolas Stalder 5f3b20fa89 Simplify adpu-manager logic, rename to apdu-dispatch 2020-07-16 23:29:07 +02:00
Nicolas Stalder e7018323cb Partition key handle space somewhat more formally 2020-07-11 15:10:15 +02:00
Conor Patrick e9c251382a use fido2 attestation cert+key if available instead of self signed 2020-07-11 15:10:15 +02:00
Nicolas Stalder 4ccd8b8b25 Some general cleanup 2020-06-09 22:24:59 +02:00
Nicolas Stalder c3eeb0b66c Replace use of two-queues with interchange throughout 2020-06-04 05:44:32 -07:00
Nicolas Stalder fc704a3fe6 Get rid of block!/syscall! code duplication 2020-05-31 15:01:16 +02:00
Nicolas Stalder f4f921614b Hackety-hack: implement TOTP-over-CTAP. Also downsize littlefs to "fix" micro-ecc by optimizing less 2020-05-26 03:27:20 +02:00
Nicolas Stalder 0018be868c WIP commit (adjust to changes in heapless) 2020-05-22 23:48:50 +02:00
Nicolas Stalder d8726c1ca9 Get rid of heapless-bytes: use hopefully soon to be upstreamed heapless additions 2020-05-22 01:51:09 +02:00
Nicolas Stalder 94fc1fbf76 IT WORKS: This commit is pushed via Solo 🐝 PIV 2020-05-18 01:18:23 +02:00
Nicolas Stalder fce067d925 Soo close to setup. Need some CCID fixes 2020-05-16 03:04:43 +02:00
Nicolas Stalder 4d442e013d PIV is slowly growing. Many intermediate bugs ;) 2020-05-16 00:29:25 +02:00
Nicolas Stalder a3060d43b1 Rename crypto-service -> trussed. Introduce iso7816 component 2020-05-14 18:10:23 +02:00