Skip to content

Commit e23963d

Browse files
committed
rsa: Introduce rsa driver
Add rsa driver based on the implementation in aspeed zephyr sdk. The patch also add functional test and rsa test data generator. How to verify driver: 1. You may use the existing test vectors in tests/functional/rsa_test_vec.rs, or 2. Generate fresh vectors by running: python3 scripts/rsa_test_vec_gen.py > src/tests/functional/rsa_test_vec.rs 3. Build and run the image Signed-off-by: Steven Lee <steven_lee@aspeedtech.com>
1 parent 9331f94 commit e23963d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ fn main() -> ! {
148148
let mut rsa = AspeedRsa::new(&secure, delay);
149149
run_rsa_tests(&mut uart_controller, &mut rsa);
150150

151+
let mut rsa = AspeedRsa::new(&secure, delay);
152+
run_rsa_tests(&mut uart_controller, &mut rsa);
153+
151154
test_wdt(&mut uart_controller);
152155
// Initialize the peripherals here if needed
153156
loop {}

0 commit comments

Comments
 (0)