Commit graph

3082 commits

Author SHA1 Message Date
bunnie
39cf50aad6 cleanup unused vars, stripped out in previous edits 2024-04-29 04:07:28 +08:00
bunnie
7af47ec260 cleanup warnings, remove dead code 2024-04-29 04:07:08 +08:00
bunnie
f86b51a3b2 cleanup warning 2024-04-29 04:06:52 +08:00
bunnie
fa242696e5 fix the quantum timer service 2024-04-29 03:41:15 +08:00
bunnie
fcf3dfb4cd adjust serial port for console 2024-04-28 02:43:43 +08:00
bunnie
36534b4e3a frequency now confirmed 2024-04-28 02:42:18 +08:00
bunnie
c57debcf1c adjust location of fontmap to match latest build 2024-04-28 02:41:58 +08:00
bunnie
799d1554ae chore: CI fixes 2024-04-09 18:51:36 +08:00
bunnie
49f3570d23 make the test-swapper crate kick out NOCOPY data
makes the test case more comprehensive
2024-04-07 18:56:40 +08:00
bunnie
d6b33159a5 stage version pin bump 2024-04-01 15:46:26 +08:00
bunnie
5add97db90 Merge remote-tracking branch 'eupn/xtask-simplify' into swap 2024-04-01 14:20:45 +08:00
bunnie
5f1e8618f0 more telemetry on xous-swapper 2024-03-31 17:48:54 +08:00
bunnie
2c183c2e18 improve debug output on swapper 2024-03-31 17:20:26 +08:00
bunnie
585f21c9aa check keymap on every call to "type" over USB
this allows us to type into hosts that have different keymappings
from each other without requiring a reboot.
2024-03-31 08:42:41 +08:00
bunnie
2d68807d51
Merge branch 'main' into swap 2024-03-28 18:39:19 -07:00
bunnie
712fd4569b remove engine-25519 as it is now deprecated
also remove "bencharks" as default set in shellchat
2024-03-28 16:22:37 +08:00
bunnie
916ca5f062 use auto-release API and note benchmark results 2024-03-28 16:16:45 +08:00
bunnie
05a7c4ca7e use auto-release of accelerator hardware 2024-03-28 16:15:29 +08:00
bunnie
8a39491532 don't include benchmarks in the default shellchat config 2024-03-25 08:08:21 +08:00
bunnie
4eab8a35b5 don't try to release hardware in hosted mode 2024-03-25 08:08:06 +08:00
bunnie
135c2c2ec0 absorb engine25519-as warning fixes 2024-03-25 08:07:47 +08:00
bunnie
1cc0a7121b Point curve25519 patch to the github version 2024-03-25 07:08:27 +08:00
bunnie
10c4ab80c8 make the swapper register immediately
this means we miss fewer advisories at boot
2024-03-23 11:59:31 +08:00
bunnie
9ddf537115 setup argument unpacking in the swapper 2024-03-23 11:59:31 +08:00
bunnie
21338321cd add a skeleton for swapper test code 2024-03-23 11:59:31 +08:00
bunnie
c2084af2ad make sure the swapper feature is turned on 2024-03-23 11:59:31 +08:00
bunnie
b2cd829adb upgrade api to use the new irq enum discipline
I think this commit message got swapped with the previous one,
the hazards of autocomplete.
2024-03-23 11:59:31 +08:00
bunnie
65599a46d5 add state and handler to the setup
shared state is going to be much more complicated, for now,
just a placeholder
2024-03-23 11:59:31 +08:00
bunnie
fdb1cacf42 fix compile errors 2024-03-23 11:59:31 +08:00
bunnie
5c3edef519 define initial data structures & registration
note that the SMT is a trait that has an implementation
dependent structure, because we can't always assume
that swap is memory-mapped.
2024-03-23 11:59:31 +08:00
bunnie
04ef7ff275 create the swapper crate 2024-03-23 11:59:31 +08:00
bunnie
cb4e5be5ae bring back the low level tests; remove dependency on engine-25519 2024-03-11 18:43:50 +08:00
bunnie
f5fdcf7d5b lock rootkeys into a particular version of the dalek crates + cooperative release of hw accelerator
the cooperative release is THE problem that we need to discuss.
2024-03-11 18:18:37 +08:00
bunnie
3bcc0dcd88 split low-level engine verification routines into a feature flag
to use these, one must include engine-25519 and also not use
the curve25519-dalek native primitives.

Probably what we *should* do is create some backend calls that allow
us to queue up local jobs only for this sort of testing.
2024-03-11 18:17:42 +08:00
bunnie
c3e0bee9dc use PIO as the system timer
other timers might work, but this is the one we can simulate
and pre-flight and know it will work.
2024-03-07 01:32:26 +08:00
bunnie
8622fbdf7a
Merge pull request #508 from betrusted-io/ring-0.17
WIP: Ring 0.17
2024-03-02 01:36:08 +08:00
bunnie
9a43db9654 remove ring-test command that was not ported to 0.17
we'll port it forward if we end up needing to get that deep
into the crate.
2024-03-02 01:21:25 +08:00
bunnie
3b6cba6174 add a "0th order" test of ring/rustls latest API 2024-02-11 17:15:49 +08:00
bunnie
a3f8ff6371 add zeroize API to AES port
this was missed on an earlier pass
2024-02-10 15:04:11 +08:00
bunnie
5fb368ae05 partial progress on porting to ring-0.17 2024-02-09 17:18:41 +08:00
David Kotval
8eb0a26d51 fix: don't break tls
Due to our patch of ring@0.16.0, we must be careful
that none of the transitive deps of the tls packages
try to use a newer ring.
2024-02-08 12:47:45 -06:00
kotval
99a3348695
Merge pull request #6 from betrusted-io/dalek_to_v4
Fix `engine ed` and pull in SHA engine fixes
2024-02-08 10:14:15 -06:00
bunnie
899dd84b5a update benchmark numbers to reflect performance impact of fixes 2024-02-08 17:42:55 +08:00
bunnie
1638ea2e04 bump x25519-dalek API to latest 2024-02-08 17:40:32 +08:00
bunnie
1079157be9 fix engine tests
engine wasn't passing because the *tests* were incorrect, due
to incorrect upgrades on the API. The tests are now to spec.
2024-02-08 17:39:34 +08:00
kotval
eab5751b51
Merge pull request #5 from kotval/dalek_to_v4
fix: use legacy compat for engine 25519 tests
2024-02-08 01:56:27 -06:00
David Kotval
f2af67519f fix: use legacy compat for engine 25519 tests 2024-02-08 01:23:02 -06:00
bunnie
e48832a139 make TRNG API test easier to run
since we're using it, might as well take it out of a comment
and turn it into a gated feature
2024-02-08 15:04:23 +08:00
bunnie
e8599f5554 CHORE: fix typo 2024-02-08 14:57:36 +08:00
bunnie
711f0eeee2 cleanup some rand dependencies that were lagging/inconsistent 2024-02-08 14:22:26 +08:00