Commit graph

15 commits

Author SHA1 Message Date
bunnie
b3788a54af clarify the dependency policy 2022-01-10 16:50:10 +08:00
bunnie
995915ed4e nail down a couple more dependencies, and add a policy note to Cargo.toml
Each Cargo.toml now includes a comment which remnids maintainers
of the dependency policy for Xous (that is, nail down every dependency
to the minor number).
2022-01-10 15:54:27 +08:00
bunnie
dd943c5416 pin down versions and harmonize versions across servers
Versions are pinned down to the minor number. Yes, this means that
we don't automatically pull in features and bug updates from crates.io,
but it also means we don't pull in new attack surfaces and code that
hasn't been tested or reviewed. I'd like this process to be very deliberate
and not automatic for Xous.

The `rand` crate is almost pinned down to a single version, except
for an odd dependency that's pulled in by hosted mode that depends
on rand 0.8.4 via a subordinate dependency via the `tempfile` crate.
Pondering if it's worth it to try and eliminate that, because the
0.8.4 version doesn't get compiled into any version that touches
real hardware. It just makes it harder to analyze the Cargo.lock
file, mostly. I think I'll leave it as-is.
2022-01-10 15:39:55 +08:00
bunnie
6f5be1e4bb aes-tests into standard formatting 2021-08-19 23:52:54 +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
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