bunnie
d56e58cb06
ux now to the point of gathering all the required passwords.
2021-07-31 03:54:10 +08:00
bunnie
d7d052b6ff
refactor ux flow, now on a good footing
2021-07-31 03:27:16 +08:00
bunnie
41843db988
intermediate progress on the main UX flow again
...
does not build clean because still deciding on how to handle
UX feedback.
2021-07-30 19:04:02 +08:00
bunnie
151d1ee229
add tests to bcrypt and fix some corner cases
2021-07-30 15:28:47 +08:00
bunnie
919e9e87ff
add bcrypt for password hashing, take care of life cycle of plaintext
2021-07-30 04:07:10 +08:00
bunnie
17be958d87
convert defacement to an XOR
...
this ensures that "all back" dialog boxes that are fake
are also defaced (as opposed to just drawing black, which
would not deface a "fake" dialog box).
2021-07-29 22:13:44 +08:00
bunnie
86a5c34a5b
refactor root-keys to use the latest UX features
...
UX flow for requesting passwords is now more or less complete...
this yak is shaved?
2021-07-29 03:30:03 +08:00
bunnie
78c0b30382
refactor menu
...
- move it to the status thread, out of the GAM
- this allows us to refactor the menu code into its own module
2021-07-29 01:04:22 +08:00
bunnie
8b992bbe38
fix shorter-than-one-line text fitting problem
...
right character gets cut off, but it's because the cursor is
the top left of the last character. add one character height plus
margin to the shortening, because the margin itself could be 0
in many case.
2021-07-29 01:02:44 +08:00
bunnie
03a9719884
Merge branch 'bunnie-dev' into main
2021-07-28 23:58:46 +08:00
bunnie
8cdf3c148b
clean up warnings before merge to main
2021-07-28 23:58:15 +08:00
bunnie
f5a9cce4ac
fix minor bugs in rtc set routine
2021-07-28 23:15:53 +08:00
bunnie
e60478d8d3
checkbox and radiobox now working.
2021-07-28 23:00:25 +08:00
bunnie
9ae5feab78
refactor to add helper threads to the UX format; documentation
2021-07-28 17:35:25 +08:00
bunnie
9f3615fd3d
extend RTC setting with UX
...
not because this is so important, but because it's a simple
test case that exercises a lot of features.
2021-07-28 04:27:14 +08:00
bunnie
b6c443145c
extend modal functions; refactor status into its own server
2021-07-28 01:01:39 +08:00
bunnie
9b51edfe6c
add backspace (derp)
2021-07-27 18:00:09 +08:00
bunnie
4affdabc73
password modal box now nominally works
2021-07-27 17:30:37 +08:00
bunnie
1a65cd3389
password dialog box basic layout is kind of there
...
a little ugly, but...this has already taken too long.
2021-07-27 04:40:12 +08:00
bunnie
53f35f9928
intermediate work toward getting the password box going
...
lots of changes, maybe finally getting out of the UX rathole now
that basic localization is in place
2021-07-26 00:51:22 +08:00
bunnie
86e113b678
add locale to front-end; update menus to suppress 🔇 characters automatically
2021-07-26 00:49:33 +08:00
bunnie
2b57e1c4f8
add static localization
2021-07-25 23:46:03 +08:00
Sam Blenny
a614ccffb7
Fix wlan_leave() to send correct verb
...
wlan_leave() was mistakenly sending the verb for WLAN_JOIN.
Signed-off-by: samblenny
2021-07-24 02:51:32 +00:00
bunnie
bc5d262431
Update README.md
2021-07-23 17:19:50 +08:00
bunnie
556f0aaea5
beginnings of a password dialog system
2021-07-22 03:04:16 +08:00
bunnie
5280d232e5
figuring out which way is up on the RootKeys implementation
2021-07-21 19:47:09 +08:00
Sam Blenny
5c93365acd
implement COM bus txrx for wlan commands
...
Signed-off-by: samblenny
2021-07-21 09:06:12 +00:00
Sam Blenny
803f6d496f
fix passphrase length limit to match WF200 API
...
Signed-off-by: samblenny
2021-07-21 09:06:12 +00:00
Sam Blenny
03ad8bd2e4
add support for wlan commands to com server
...
Signed-off-by: samblenny
2021-07-21 09:06:12 +00:00
Sam Blenny
2bbb8d05b9
add ip shellchat command
...
This is for testing out the IP stack: list dhcp info, send pings,
send UDP message, and receive UDP message.
Signed-off-by: samblenny
2021-07-21 09:06:12 +00:00
Sam Blenny
e8bdf91cc3
add wlan shell command
...
This is for turning the WF200 wifi radio on and off, setting the
SSID and password, joining an AP, leaving an AP, and checking the
AP connection status.
Signed-off-by: samblenny
2021-07-21 09:06:12 +00:00
bunnie
ce18716b88
add the boilerplate for the keys server
2021-07-20 01:59:52 +08:00
bunnie
d0804ed330
add some notes about the keys block
2021-07-20 01:46:14 +08:00
bunnie
e362e2579f
un-break hosted mode
2021-07-18 18:29:24 +08:00
bunnie
d98f296499
fixed ordering bug in spinor driver
...
works now!
2021-07-18 18:02:46 +08:00
bunnie
7257dbcaef
add cache flush after array write
2021-07-18 16:04:44 +08:00
bunnie
91fe69ca27
add some real-hardware tests for spinor writes
...
definitely still bugs.
need to sleep on it.
2021-07-18 02:36:31 +08:00
bunnie
904f6f6f38
add more tests
2021-07-17 23:33:57 +08:00
bunnie
168d0fc2cb
start of some basic tests
2021-07-17 17:12:23 +08:00
bunnie
cc0f37a80e
rewrite the spinor services
...
- you can only "patch" regions of memory. caller provides a slice
to the region of data they are patching, so that patches can be
computed by the lib-side code of the server.
- erasing is done with a "patch" with all 0xff's as the write data.
a sequence of pure 0xff for a page does not actually cause a write,
the condition is detected and the write is skipped after an erase.
- patches attempt to be somewhat intelligent and not re-write unchnaged
data, or erase blocks that don't need udpating. However, if a user
submits a "sparse patch" with just a couple bytes modified in a
megabyte region they can expect bad performance. Ideally, in that
scenario, each of the smaller modifications are submitted as
individual calls to the patch function, instead of regurgitating
all the data and hoping that hthe patch function does some intelligent
diffing to be as light-fingered as possible about updating the flash.
In other words, the onus is on the calling server to format
patches intelligently. The patch server does only the simplest,
safest optimizations. You don't want to be shuttling megabytes of
redundant data anyways between servers for many other reasons....!
2021-07-17 02:04:22 +08:00
bunnie
7e7ae82156
pivot spinor implementation
...
realizing some core assumptions were wrong, so, scrapping and
restarting
2021-07-15 23:00:50 +08:00
bunnie
98c0054d7e
some progress on spinor drivers
2021-07-14 00:01:09 +08:00
bunnie
69d34d38dc
Merge branch 'main' into bunnie-dev
2021-07-13 23:11:46 +08:00
bunnie
7cd8b4107a
clear keyboard state vectors on resume
...
if any keys were pressed in the middle of a suspend...
probably, the user didn't care to have them still pressed on resume!
2021-07-13 23:10:10 +08:00
bunnie
ef93196cfc
stash commit to fix a bootloader issue
2021-07-13 22:28:46 +08:00
bunnie
8045e0aac8
add the keys command
...
this is the beginning of where key management goes. for now,
all you can do is just turn USB debug on and off.
2021-07-13 00:47:05 +08:00
bunnie
a4f8346c34
reflect the latest fixes to the secure boot process
...
also patch up some issues with sha512 reset and loose
ends on docs and updates
2021-07-13 00:46:31 +08:00
bunnie
5d62af49a5
simple signature checks in the bootloader now
...
checks xous.img as a single blob before accepting it.
2021-07-12 17:16:22 +08:00
bunnie
84a2e9f768
fix status bar so that it redraws out of suspend/resume
...
the bootloader modifies the screen, so all elements must
be redrawn regardless of the pervious state change!
2021-07-11 18:47:19 +08:00
bunnie
1949c1bbc9
a semblance of sanity, finally
2021-07-09 23:01:50 +08:00
bunnie
3ac17a99db
reduce miniruns count to save on gates
2021-07-08 15:58:59 +08:00
bunnie
d846c5ad0e
add a memory stress tester
2021-07-06 01:35:19 +08:00
bunnie
2c6ba2f127
fix brokenness with ptr_meta crate
2021-07-05 17:17:33 +08:00
bunnie
6ee6316beb
Merge branch 'main' into bunnie-dev
2021-07-05 17:12:43 +08:00
bunnie
6c697de512
add l2 cache support (suspend/resume flushing)
...
also noted some performance benchmark improvements
2021-07-05 17:05:10 +08:00
bunnie
1b5d4bd79b
push of spinor changes to validate l2cache
2021-07-05 00:08:58 +08:00
bunnie
47c1a98d13
fix the aesthetics of the suspend screen
2021-07-03 21:46:58 +08:00
bunnie
00be94d913
devboot mode support
2021-07-03 21:08:39 +08:00
bunnie
3f08dcccee
increase the susres timeout to be less aggressive
...
now that we have auto-clock throttling, fast SR cycles are not
as critical to power saving. They are more a mechanism to be
invoked based on user command, not automatically, and thus it's
not as critical to shut things down ungracefully if the CPU is
heavily loaded.
2021-06-30 19:05:20 +08:00
bunnie
674faa46d9
button up after debugging the ed25519 issue
2021-06-29 23:46:15 +08:00
bunnie
d00717bc17
try to make a simpler example
2021-06-29 01:35:03 +08:00
bunnie
c880eda822
commit renode changes
2021-06-29 00:51:52 +08:00
bunnie
0bad1ad755
isolate a potential compiler bug
2021-06-29 00:10:46 +08:00
bunnie
8da62390ad
add RFC7748 test vectors for diffie hellman
2021-06-28 19:01:22 +08:00
bunnie
e01676d563
move the montgomery multiply code into the engine server
...
this saves a fairly substantial amount of time marshalling
re-used bits of microcode around on the benchmarks.
2021-06-28 18:41:34 +08:00
bunnie
ee87fd35a8
add hw acceleration for the affine transform on curve25519
2021-06-28 04:43:56 +08:00
bunnie
89b3875bfc
commit before working on acceleration code
2021-06-28 02:33:32 +08:00
bunnie
4a3258f6bd
Merge branch 'bunnie-dev' into main
2021-06-28 01:33:42 +08:00
bunnie
0563bfb8ad
remove local paths so we can push to CI
2021-06-28 01:32:17 +08:00
bunnie
e2ada8f8fe
attempt to fix up some build system warts
2021-06-28 01:31:43 +08:00
bunnie
7dfa77de11
Merge branch 'bunnie-dev' into main
2021-06-27 03:19:50 +08:00
bunnie
906882be71
un-break hosted mode
2021-06-27 03:19:22 +08:00
bunnie
5ab0c0b426
commit a version that should be able to build in CI now
2021-06-27 03:14:50 +08:00
bunnie
e39c2200cd
fix up the build system warts & integration with dalek crates
...
we are at least now only requiring users to use our patched
curve25519-dalek crate, which now builds cleanly in both
xous and std environments, but the higher-level crates can be
directly used from crates.io
2021-06-27 03:07:39 +08:00
bunnie
6efdb7e0db
stash a version with XousEngine25519 traits in case we want it back later
2021-06-27 00:31:15 +08:00
bunnie
9ebd181694
engine25519 core services now working
2021-06-25 19:35:31 +08:00
bunnie
1d9b474a6d
add in a missing redraw command
2021-06-25 09:09:42 +08:00
bunnie
1d274e4d7c
engine passs tests, but still some issues with power management
2021-06-25 04:40:06 +08:00
bunnie
6825e2e7e8
reset the i2c machine every new transaction
2021-06-25 03:41:42 +08:00
bunnie
f7874aab94
add in a missing redraw command
2021-06-25 03:38:54 +08:00
bunnie
75dca6bd4c
checkin for a rollback to sanity check some things
2021-06-25 02:09:42 +08:00
Sean Cross
a99839ecd6
xous: mark MemoryRange fields as private
...
Mark the private fields in a `MemoryRange` struct as being private. This
allows us to perform operations on the memory range armed with the
knowledge that the entire range is valid and unaliased.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-24 17:41:16 +08:00
bunnie
afa55055ea
add serial console mux setting
2021-06-24 13:52:44 +08:00
bunnie
3b0a4f2bf4
clean up some obvious bugs
...
stuff doesn't crash but also doesn't work
2021-06-24 03:38:32 +08:00
bunnie
ae25142acb
engine25519 doesn't crash on boot, at least.
...
ManagedMemory structure for susres has some issues with large
blocks, so use "heap-allocated" structures
2021-06-24 03:17:32 +08:00
bunnie
16ec932286
refactor to sync/async apis split
2021-06-23 19:12:43 +08:00
bunnie
5d21ef0c76
beginnings of the curve25519 accelerator engine core driver
...
the engine-25519 server just takes microcode jobs and runs them
on the curve25519 accelerator engine.
all the fancy crypto stuff comes from other crates, which will
be filled in later.
2021-06-22 01:48:51 +08:00
bunnie
e8dc10977a
clarify trng hosted mode messages, reduce noise
2021-06-21 22:21:40 +08:00
bunnie
96959bfe0d
add version reporting to boot log
2021-06-21 22:18:39 +08:00
bunnie
7ea45b8e5b
fix bias in deface lines
2021-06-21 00:54:18 +08:00
bunnie
58f0c8626f
build a skeleton for engine25519
2021-06-20 18:42:37 +08:00
bunnie
e9499586f1
right. status loop was a mess.
...
classic code rot resulting from adding stuff that was never designed
to be in part of what was originally just a test loop to show
uptime.
cleaned it up, idle CPU load drops from 8% -> 2-3%.
2021-06-20 01:55:57 +08:00
bunnie
f4fbe84b78
improve redraw performance on menu
...
it helps to actually redraw the menu instead of relying
upon status updates to redo the Ux.
2021-06-20 00:44:59 +08:00
bunnie
c0d4cbe81d
make the menu object more generic; demo with emoji selection
2021-06-19 04:44:21 +08:00
bunnie
b5630b74ce
update documentation
2021-06-19 01:36:35 +08:00
bunnie
2b5ba61552
add some useful messages on boot for the hosted mode users
2021-06-19 01:05:42 +08:00
bunnie
69a22adee9
menus basically working
2021-06-19 00:25:18 +08:00
bunnie
aa967a5a17
quiet up hosted mode build warnings
2021-06-18 22:37:08 +08:00
bunnie
769c90764c
menu Ux is now nominally doing something menu-like
2021-06-18 19:35:03 +08:00
bunnie
65cc8dd90c
defacement first-pass seems working
2021-06-18 17:40:00 +08:00
bunnie
0f937037e4
just getting to the point of implementing defacement
...
menu now pops up. does nothing, but we can at least
change contexts for the Ux into a different Ux theme.
2021-06-18 16:20:56 +08:00
bunnie
62c9737bbc
tenuous addition of a menu object
...
things don't crash, but...haven't really validated if they work, either!
2021-06-18 04:10:41 +08:00
bunnie
3664ff6718
clean up keyboard event handling so the GAM is the gateway server
...
this allows the GAM to handle authentication for listening requests.
2021-06-17 01:12:25 +08:00
bunnie
4b1495a8ef
change cargo xtask run to something that fails
2021-06-16 17:51:02 +08:00
bunnie
03bcf18348
clean up enum-based dispatch for Layouts, pulling in enum_dispatch crate.
2021-06-16 17:41:47 +08:00
bunnie
356b07dacc
works on "real hardware" but some issues with hosted mode
2021-06-16 17:03:28 +08:00
bunnie
5301f4af20
major refactor of the Ux -- can create, redirect I/O contexts
...
getting ready for Precursor to do more than just one thing.
2021-06-16 04:50:26 +08:00
bunnie
13a8cf7417
it helps to save the file before committing it
2021-06-15 17:46:10 +08:00
bunnie
8cd84d3be0
Merge branch 'bunnie-dev' into ux-refactor
...
incorporates the upstreamed xous-names connection count patch
2021-06-15 17:45:07 +08:00
bunnie
eee9f4e765
refactor xous-names to permit only a fixed number of connections
...
this prevents less trusted processes from connecting to servers
after the kernel initializations are done.
this works so long as we don't have disconnects from the kernel
servers. In order to support disconnects we will also need a
way to re-enumerate the SID to guarantee that we don't have a re-use
problem. But for now, the kernel is not designed with any practical
disconnect mechanism; there is no code that calls the Quit mechanism
on any server.
2021-06-15 17:41:14 +08:00
bunnie
4058b56aae
intermediate checkin of UX refactor
2021-06-15 12:50:29 +08:00
bunnie
7e141aba91
commit some API changes before making even more API changes
...
yo dawg i herd u liek API changes so I made API changes to ur API changes
2021-06-14 02:51:41 +08:00
bunnie
0db9ad9e6f
add status bar extension to inform of security states
...
- inverted text indicates a trusted message. policy is enforced in the GAM.
- we don't have a way to lock the USB port yet; but at least now it's communicated.
2021-06-13 04:40:50 +08:00
bunnie
943c07e38b
improve richness of error feedback from trng
2021-06-12 15:12:44 +08:00
bunnie
ad72c0ee7d
update trng test ram locations
...
we're starting to fill up enough memory that we have to relocate
these buffers
2021-06-12 01:49:56 +08:00
bunnie
77cd652a0e
minor bugs/typos in urandomtest path
2021-06-11 16:45:53 +08:00
bunnie
a70b858812
convert to using the urandom interface
2021-06-11 16:29:25 +08:00
bunnie
abbd1574e5
add trng test and management commands
2021-06-08 21:29:23 +08:00
bunnie
2174ab7677
upgrade TRNG with health tests and reporting facilities
2021-06-08 01:22:07 +08:00
bunnie
b64d610d69
re-org the vex code a bit so it's not as repetative
2021-06-04 02:16:19 +08:00
bunnie
5a153d8fa9
add AES256 vex instructions support
2021-06-04 02:02:44 +08:00
bunnie
b1d027bc52
adding AES native instruction support
2021-06-04 00:49:34 +08:00
bunnie
7fa06866dd
remove inappropriate readme
2021-06-03 14:14:25 +08:00
bunnie
d14d987f44
Merge remote-tracking branch 'origin/aes' into bunnie-dev
2021-06-02 14:49:42 +08:00
Sean Cross
f69bbb2085
aes-test: add const versions of some functions
...
These may compile to faster code, but that hasn't been determined.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 14:36:07 +08:00
Sean Cross
c365fad962
services: start removing some C array -isms
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 14:28:20 +08:00
Sean Cross
ee36638b5e
aes-test: rename get_u32_* to get_u32_[bl]e
...
These functions are better described using this nomenclature.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 13:57:19 +08:00
Sean Cross
27c4444d7c
aes-test: more pruning of C-isms
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 13:52:16 +08:00
Sean Cross
e6816ce982
aes-test: fix AES-128 test vectors
...
Some values got swapped around.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 13:52:03 +08:00
Sean Cross
a137ac3848
aes-test: implement looping tests
...
Add looping tests for AES-128, -192, and -256.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 13:44:41 +08:00
Sean Cross
668a9c758d
aes-test: implement AES-192
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 13:44:28 +08:00
Sean Cross
41e9a70977
aes-test: move low_level_tests to their own mod
...
The low-level tests are useful in validating that the hardware works,
however they generally are not useful. Split them into their own module.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 12:22:27 +08:00
Sean Cross
7a675cdbc4
aes-test: get decryption working
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 12:15:24 +08:00
Sean Cross
a77e8e32be
aes-test: get initial tests passing
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 11:09:05 +08:00
bunnie
77ed8972f6
Merge branch 'aes' into bunnie-dev
2021-06-02 04:08:00 +08:00
bunnie
fadc9c29ab
Merge remote-tracking branch 'origin/master' into bunnie-dev
2021-06-02 03:59:25 +08:00
bunnie
b9f3182bb9
mods for hosted mode to work again
2021-06-02 03:45:15 +08:00
bunnie
25e6bced00
add power-on utilization reporting
...
there is now an extra field in the status bar that gives
the %'age of time that the clocks are running.
2021-06-02 01:08:31 +08:00
Sean Cross
9638c67aae
aes-test: add test program
...
This is a basic program that exercises the AES core
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-01 20:01:23 +08:00
bunnie
ee2e38be05
add commands to help manage wfi/power debugging
2021-06-01 17:02:30 +08:00
bunnie
61f95363fd
mark a commit for the latest build submitted for testing
2021-06-01 15:33:48 +08:00
bunnie
9f3647f3a3
have audio off by default on power-on to save power
2021-06-01 00:44:33 +08:00
bunnie
7c55925926
intermediate check-in on wfi
2021-05-30 23:07:16 +08:00
bunnie
1e2d46366a
attempt to convert sha512 to use xous::wait_event()
...
doesn't work, for some reason the interrupt doesn't want to fire.
cross-check against hardware simulations...
2021-05-30 16:18:23 +08:00
bunnie
0e1464b815
turn off wdt for now
2021-05-30 04:50:54 +08:00
bunnie
afe8d8733d
updates to use the always-on power domain timers
2021-05-30 04:29:03 +08:00
bunnie
52c32cc4d1
auto-powerdown of sha block when not in use
2021-05-30 00:12:18 +08:00
bunnie
3c0e951803
woo i have a dvorak layout now.
2021-05-29 02:28:54 +08:00
bunnie
25a77ddb19
EC updating seems to work.
2021-05-25 05:13:20 +08:00
bunnie
c483581716
debugging some timing issues
2021-05-25 02:53:24 +08:00