Commit graph

641 commits

Author SHA1 Message Date
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
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
711f0eeee2 cleanup some rand dependencies that were lagging/inconsistent 2024-02-08 14:22:26 +08:00
bunnie
65fd32e181 update chrono pins
This is the weirdest damn thing. All the crates say 0.4.19 as
the chrono version, but the actual version in the lockfile
is 0.4.33. And there isn't an error about it?

Anyways, this update the pins to reflect what's in the lockfile.
2024-02-08 13:51:30 +08:00
bunnie
fb68eb9dd2 cleanup datetime API deprecation warnings 2024-02-08 13:46:24 +08:00
bunnie
315d9b96d4 Merge branch 'main' into dalek_to_v4 2024-02-07 22:52:24 +08:00
bunnie
699004e7b0 bump xous pins 2024-02-06 14:49:10 +08:00
David Kotval
a70832b3ce wip: dumping deps to get curve25519 to 4.1.1 2024-02-04 14:12:36 -06:00
bunnie
40423f9448 fix hosted and renode modes 2024-02-01 01:42:18 +08:00
bunnie
3598cff50b de-select the testing package for sha 2024-02-01 01:12:48 +08: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
55d88587a9 upgrade all the subordinate Cargo.toml files to match the patch
looks like about 9 crates will be affected by this. Point them
all to the latest version of the API, and specify the
"precursor" feature (which activates our patch)
2024-01-30 01:43:09 +08:00
bunnie
e274fa8873 relate perlib to the libs/ directory
perflib was made before we had libs, so put it into its new, proper
home.
2024-01-15 00:52:43 +08:00
bunnie
0267a56989 format Cargo.tomls
because apparently cargo fmt doesn't format Cargo.toml files???
2024-01-15 00:14:39 +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
05c991e3a2 Merge branch 'main' into sigchat 2023-12-26 08:14:42 +11:00
bunnie
fda782663a bump version pins for xous change 2023-12-26 00:13:10 +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
bunnie
fa3f349a0a bump pins as xous-rs has changed 2023-12-01 21:20:01 +08:00
nworbnhoj
e8e875742e replace more TcpStream::connect(&str) with TcpStream::connect((&str, u16))
resolves #453
2023-11-30 20:29:15 +11:00
bunnie
6ab88117f6 bump xous-api-log version & fix version pins 2023-10-31 20:07:28 +08:00
bunnie
d63b5912b1 absorb new xous-rs version 2023-10-10 16:50:00 +08:00
bunnie
83256257e1 bump xous-rs crate to absorb Send derives on Messages
this is necessary for the smoltcp port
2023-10-03 20:54:14 +08:00
bunnie
c072b18df6 remove nettest from the default args 2023-10-03 18:43:38 +08: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
bunnie
478a612c02 commit version bump 2023-09-12 16:25:10 +08: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
bunnie
53469a68d0 publish package updates, sync to release tag 2023-08-08 14:35:49 +08:00
bunnie
b127cd093f bump version pins for change to xous-rs 2023-08-03 13:29:39 +08:00