[U-Boot] [PATCH V3 0/4] pytest: add a simple test to check the command aes

Philippe Reynes philippe.reynes at softathome.com
Tue Sep 24 09:32:26 UTC 2019


This serie fix the command aes on sandbox and add a simple pytest for aes.

The first and second patch enable the command aes on sandbox and sandbox64.
Thr third patch fix the command aes on sandbox (adding map_sysmem to avoid
a segfault), the forth patch add a simple pytest for the command aes.

Philippe Reynes (4):
  sandbox: enable command aes
  sandbox64: enable command aes
  cmd: aes: use map_sysmem when accessing memory
  pytest: add a new test for aes

Changelog:
v3:
- add unmap_sysmem (thanks Simon)
v2:
- add binary file (key128.bin, iv128.bin and plaintext.bin)

 cmd/aes.c                       | 14 ++++++++----
 configs/sandbox64_defconfig     |  1 +
 configs/sandbox_defconfig       |  1 +
 test/py/tests/aes/iv128.bin     |  1 +
 test/py/tests/aes/key128.bin    |  1 +
 test/py/tests/aes/plaintext.bin |  1 +
 test/py/tests/test_aes.py       | 48 +++++++++++++++++++++++++++++++++++++++++
 7 files changed, 63 insertions(+), 4 deletions(-)
 create mode 100644 test/py/tests/aes/iv128.bin
 create mode 100644 test/py/tests/aes/key128.bin
 create mode 100644 test/py/tests/aes/plaintext.bin
 create mode 100644 test/py/tests/test_aes.py

-- 
2.7.4



More information about the U-Boot mailing list