Commit graph

544 commits

Author SHA1 Message Date
bunnie
1255bf12d9 FLAG DAY: fix all names to harmonize around 'bao1x'
The code base had evolved through several code names, interim
names, company names and chip names that alternatively did or did
not exist.

Baochip is the definitive name of the company, and the Baochip1x
(full part number BAO1X2S4F-WA) is the definitivey part number of
the SoC. For convenience, the part number is shortened to 'bao1x'
in most feature flags and variable references.

This commit fixes all of the odd names and removes some unmaintained
early targets.
2025-09-18 21:25:51 +08:00
bunnie
ecbac27e76 fix rustc-1.89 warnings 2025-08-19 19:45:29 +08:00
bunnie
098d326b55 note performance improvements 2025-07-27 03:17:15 +08:00
bunnie
a3d350b86f note aes performance on vex-ii; fix typo on aes256soft_test
aes256 soft test was running on hw before by accident.
2025-07-21 17:19:22 +08:00
bunnie
b6ab55c6b8 incorporate arch migration into shellchat 2025-05-11 12:33:50 +08:00
bunnie
c8db01c563 re-org rootkeys-api into common and generation-specific libraries 2025-05-04 19:05:58 +08:00
bunnie
2c47db081d other crates affected by api migration 2025-05-04 18:34:17 +08:00
bunnie
9cbe4a9721 shellchat: use platform-neutral ux-api instead of graphics-server 2025-02-21 17:48:38 +08:00
bunnie
0e6c344f7a shellchat to use blitstr2 2025-02-17 18:25:52 +08:00
bunnie
4f14a67504 formatting changes due to changes in nightly rust
needed to get a clean check on gh
2025-02-01 22:26:40 +08:00
bunnie
043dfd84ae update formatting to latest nightly rules 2024-09-24 01:49:45 +08:00
bunnie
f248be981e fix broken factory test 2024-09-24 00:14:52 +08:00
bunnie
e61a2e3238 reformat shellchat with the latest alphabetization rules 2024-09-23 17:22:47 +08:00
bunnie
ec43c4622c print the debug info for trng pump 2024-09-23 14:18:16 +08:00
bunnie
2f8604299c remove test for deprecated rkyv 2024-09-23 01:17:17 +08:00
bunnie
3c0140bf2d final cleanup on shellchat xous-ipc abstractions
the implementation relied on a quirk of xous-ipc where the message
ID is 0 for string send/receives. This cleans it up so that the API
is transparent and consistent with other API calls in the system.
2024-09-23 00:01:32 +08:00
bunnie
15aaf55e93 fix borrow for argument parsing 2024-09-22 21:54:24 +08:00
bunnie
34e6f46d63 formatting changes that resulted from the regex search
a bunch of lines are shorter or different length now which
triggers a mandatory reformat. this patch cleans that up,
so that going forward the manual rework patches are clearer and
not tied up with formatting patches.
2024-09-22 15:31:14 +08:00
bunnie
6d7a8fdc09 regex search/replace instances of xous_ipc::String to String
split into multiple commits for easier committing
2024-09-22 14:16:36 +08:00
bunnie
bdfeb9917a undo handlers for an aborted experiment 2024-07-14 00:55:59 +08:00
bunnie
12f6192dae add nettype command 2024-07-14 00:01:22 +08:00
bunnie
84bb801432 add clifford benchmark to shellchat 2024-06-19 22:04:18 +08:00
bunnie
916ca5f062 use auto-release API and note benchmark results 2024-03-28 16:16:45 +08:00
bunnie
cb4e5be5ae bring back the low level tests; remove dependency on engine-25519 2024-03-11 18:43:50 +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
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
899dd84b5a update benchmark numbers to reflect performance impact of fixes 2024-02-08 17:42:55 +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
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
fb68eb9dd2 cleanup datetime API deprecation warnings 2024-02-08 13:46:24 +08:00
David Kotval
a70832b3ce wip: dumping deps to get curve25519 to 4.1.1 2024-02-04 14:12:36 -06:00
bunnie
75506afc25 make shellchat sha tests compatible with new API
plus note latest benchmarking results
2024-02-01 00:52:04 +08:00
bunnie
3bfcce9a06 split out sha tests and upgrade api to 0.10 in shellchat 2024-01-31 03:52:32 +08:00
bunnie
f64d0351a4 format services/shellchat
a big bank of AES tests got formatted. I think it's NBD,
the constants for AES testing are...not changing.
2024-01-14 22:41:26 +08:00
bunnie
f196bcf469
Merge pull request #465 from nworbnhoj/sigchat
Link sigchat to existing Signal account
2024-01-08 17:23:09 +08:00
bunnie
de9af9cfd1 add std test templates to shellchat
some tests cherry-picked out of the `std` suite to help look
into locking problems in the kernel. Behind a feature gate
of `locktests`
2024-01-04 23:19:51 +08:00
nworbnhoj
2684a55888 Merge branch 'main' into sigchat 2023-12-20 05:26:19 +11:00
nworbnhoj
96a59422b1 fix use Tls 2023-12-19 06:39:13 +11:00
nworbnhoj
de6b6baab9 extend shellchat net ws to utilize /lib/tls 2023-12-19 05:09:11 +11:00
nworbnhoj
7a75bf73e3
make net ws more robust to test websocket server connection failure 2023-12-12 16:12:22 +11:00
bunnie
fe2eb732a0 add a test for std seek 2023-12-10 12:54:06 +08:00
nworbnhoj
90daccea46 merge main into sigchat 2023-12-05 13:19:49 +11:00
nworbnhoj
e8e875742e replace more TcpStream::connect(&str) with TcpStream::connect((&str, u16))
resolves #453
2023-11-30 20:29:15 +11:00
bunnie
3dda5b967b add notes about net-tests that are intermittent or failing but waiving 2023-10-03 18:39:50 +08:00
bunnie
2faa518df8 add debug level setting on net stack 2023-10-03 17:18:07 +08:00
bunnie
ee18cb8e14 passing most nettests now. mostly an issue of poking at loopbacks. 2023-10-03 17:12:34 +08:00
bunnie
9f57ad96fd
Merge pull request #408 from nworbnhoj/chat
mtxchat app and chat library
2023-09-19 19:09:56 +08:00
nworbnhoj
c22419f7c7 bump rustls to harmonize versions 2023-09-13 06:57:39 +10:00
Sean Cross
5dfad296ae xous: mark MemoryRange::as_slice and friends as unsafe
Mark `MemoryRange::as_slice()` and `MemoryRange::as_slice_mut()` as
unsafe.

This is due to the fact that not all representable types can be cast to
an arbitrary value. For example, if Process A sends random values to
Process B, then Process B casts the memory to a slice of `bool`, then
any values that are not 0 or 1 are undefined.

Because these functions can leak UB into the program, they are marked as
unsafe.

This patch adds `unsafe {}` blocks to all instances where this function
is called. Additionally, all instances have been checked to verify that
they do not cast to any invalid types -- most use `u8` or `u32`.

Additionally, the long-deprecated `MemoryRange::from_parts()` call was
removed, since that causes UB without being marked as unsafe.

Signed-off-by: Sean Cross <sean@xobs.io>
2023-09-12 10:07:38 +08:00