Commit graph

18 commits

Author SHA1 Message Date
bunnie
81c5a1da57 format services/aes-test 2024-01-14 22:04:34 +08:00
Jean-Pierre De Jesus DIAZ
8c62e84284
services/aes-test: update to use the aes crate
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-04-20 15:42:18 +02:00
Jean-Pierre De Jesus DIAZ
792754a7e2
services/aes-test: use single lifetime for AesEcbTest
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-04-20 15:42:18 +02:00
Jean-Pierre De Jesus DIAZ
1dbc8700a1
services/aes-test: remove kind field and rename struct
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-04-20 15:42:18 +02:00
Jean-Pierre De Jesus DIAZ
14e9b4162b
xous-rs: move vex AES functions to services/aes
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-04-20 15:42:18 +02:00
Sean Cross
3ae9d8abf0 apps/services: remove xous::xous_main macro usage
This macro will be removed, since it is no longer necessary. Remove this
macro across the project and replace it with a standard `main()`
function.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-05-31 13:33:30 +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