Commit graph

1456 commits

Author SHA1 Message Date
bunnie
adde48bc2d update buildpush script to comply to latest locations for prebuild artefacts 2021-06-11 16:54:19 +08:00
bunnie
77cd652a0e minor bugs/typos in urandomtest path 2021-06-11 16:45:53 +08:00
bunnie
14f8685168 update xtask to invoke urandomtest 2021-06-11 16:33:45 +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
ff5af4d66e update precursors to incorporate the correct git rev 2021-06-04 02:33:17 +08:00
bunnie
8b78a45b40 Merge branch 'bunnie-dev' of github.com:betrusted-io/xous-core into bunnie-dev 2021-06-04 02:33:04 +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
bunnie
bbfe0fb605 Merge remote-tracking branch 'betrusted/aes' into bunnie-dev 2021-06-02 14:49:11 +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
758bb64578 Merge branch 'bunnie-dev' of github.com:betrusted-io/xous-core into bunnie-dev 2021-06-02 04:04:21 +08:00
bunnie
1f7add35a1 update docs for usb updater 2021-06-02 04:04:04 +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
837885798d xtask: add renode-aes-test as a target
This generates an image that allows for testing AES.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-01 20:02:15 +08:00
Sean Cross
0644d681c5 emulation: add simple vexriscv aes engine
This Python-based engine implements the vexriscv accelerated
instructions.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-01 20:01:43 +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
Sean Cross
b22ec0369e xous: asm: add aes calls for vexriscv
VexRiscv has accelerated AES instructions. This adds ASM hooks for these
instructions so they can be called from Rust.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-01 19:52:37 +08:00
Sean Cross
8ee3b2cc1b Merge branch 'master' of github.com:betrusted-io/xous-core 2021-06-01 17:57: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
2f9fa57bdd clock-gate based power management now seems to be more or less working 2021-05-31 23:14:35 +08:00
bunnie
d9e56fd321 very preliminary power savings working 2021-05-31 05:20:54 +08:00
bunnie
7c55925926 intermediate check-in on wfi 2021-05-30 23:07:16 +08:00
bunnie
d5318ba643
Update memory.md 2021-05-30 19:56:57 +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
8145473167 remove what i think is no longer a necessary comment 2021-05-25 05:31:21 +08:00
bunnie
7f62851671 update xtask to be consistent with update docs 2021-05-25 05:29:00 +08:00
bunnie
25a77ddb19 EC updating seems to work. 2021-05-25 05:13:20 +08:00