Commit graph

450 commits

Author SHA1 Message Date
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
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
nworbnhoj
1a8c5fb080 update shellchat net tls notes 2023-07-04 17:11:25 +10:00
nworbnhoj
0545a08c8e remove redundant use rustls from net_cmd.rs 2023-06-29 13:13:01 +10:00
nworbnhoj
b8b591401f reconfigure [features] tls rootCA & websocket 2023-06-28 06:05:44 +10:00
nworbnhoj
aeeff17a6a relocate shellchat net tls sub-commands to libs/tls/src/cmd.rs 2023-06-27 14:38:11 +10:00
nworbnhoj
d6fe702278 improve tls error handling 2023-06-26 19:32:57 +10:00
nworbnhoj
ab8d40189a modify shellchat net tls test to use trusted CA certificates 2023-06-26 16:00:21 +10:00
nworbnhoj
6ef1e8d67c show help when: shellchat net tls <no sub-command> 2023-06-26 15:25:46 +10:00
nworbnhoj
33169f9df9 implement shellchat net tls trusted
list trusted Certificate Authority certificates
2023-06-26 12:38:12 +10:00
nworbnhoj
42eb72b3bd implement shellchat net tls mozilla
save/trust all Root CA's in webpki-roots en-masse
2023-06-26 11:46:54 +10:00
nworbnhoj
a741e7988b tidy-up tls cargo & use 2023-06-26 08:15:09 +10:00
nworbnhoj
4ea0c8457d implement tls::danger::StifledCertificateVerification
StifledCertificateVerification::verify_server_cert() will verify the certificate with the default rustls WebPkiVerifier, BUT specifically override a `CertificateError::UnknownIssuer` and return ServerCertVerified::assertion()

This allows us to use rustls to open a tls connection to a host with an untrusted certificate chain. And subsequently get to see the certificate chain, and possibly choose to trust the chain, or links in it.
2023-06-25 12:31:23 +10:00
nworbnhoj
5feaac2bae simplify shellchat net tls probe 2023-06-24 15:37:10 +10:00
nworbnhoj
a874ba307d implement shellchat "net tls probe" 2023-06-20 21:02:12 +10:00
nworbnhoj
e6ed977065 demote shellchat "net tls" to "net tls test" 2023-06-20 20:48:58 +10:00
Jean-Pierre De Jesus DIAZ
2af737b57e
xous-rs: move LANG variable to locales
This change is made with the intention of making the xous-rs crate a bit
more freestanding without depending on the xtask build system.

Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-06-15 18:23:12 +02:00
bunnie
118716da7b fix another 1.70 error 2023-06-05 01:45:10 +08:00
bunnie
0b32ac073b add scan state information to ssid scans
ssid scans can now be in-progress, and they also record
the time elapsed since the last scan was performed.

this allows the network manager to be a bit smarter about when
it decides to kick off a scan.

the ssid scan dialog box is also updated to show
the scan results in progress. This addresses #336.
2023-05-29 02:12:28 +08:00
bunnie
1b29ea0421 fixes #339
use the same API call used by `status` as in `shellchat`.
this should also fix the status bar reflecting the correct state.

code fixed but not explicitly tested; if I got this wrong
please re-open!
2023-05-28 18:01:46 +08:00
Jean-Pierre De Jesus DIAZ
3e2eb63663
imports: remove com_rs-ref
The crate just re-exports the com_rs crate. This patch changes usages of
com_rs-ref to use com_rs directly.

Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-05-02 14:33:17 +02:00
bunnie
e5f9a6f155 update benchmark numbers 2023-04-27 22:17:20 +08:00
bunnie
814be033dc add HW TRNG serial mode; simplify console mode calls 2023-04-17 03:47:48 +08:00
bunnie
5a10bb8fd8 add console management commands 2023-04-16 02:23:43 +08:00
bunnie
7a8741922d enable console connection on shellchat 2023-04-16 01:43:29 +08:00
bunnie
210c501bb7 initial USB-serial mode working 2023-04-14 13:01:06 +08:00
Patryk Laurent
19f18ef59e shellchat pddb write now replaces/creates; rename write to writeover 2023-03-31 10:02:53 -07:00
bunnie
f4fabc3f8e fix #337
Adds MAC display to preference dialog box

also offer both hex and decimal formatting outputs on wlan status
2023-03-24 23:07:29 +08:00
bunnie
2bb58bb63f fix #337 2023-03-24 22:53:19 +08:00