diff mbox series

[U-Boot,V3,5/5] aes: add test unit for aes196 and aes256

Message ID 1573841431-24837-6-git-send-email-philippe.reynes@softathome.com
State Superseded
Delegated to: Tom Rini
Headers show
Series aes: add support for aes192 and aes256 | expand

Commit Message

Philippe REYNES Nov. 15, 2019, 6:10 p.m. UTC
This commit add test unit for aes196 and aes256.

Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
---
 test/lib/test_aes.c | 4 ++++
 1 file changed, 4 insertions(+)

Changelog:
v3:
- new patch in this serie (in the previous version, the test to
  aes was added to pytest, now, we add test unit for aes as proposed by Simon)

Comments

Simon Glass Dec. 22, 2019, 11:48 p.m. UTC | #1
On Fri, 15 Nov 2019 at 11:10, Philippe Reynes
<philippe.reynes@softathome.com> wrote:
>
> This commit add test unit for aes196 and aes256.
>
> Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
> ---
>  test/lib/test_aes.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> Changelog:
> v3:
> - new patch in this serie (in the previous version, the test to
>   aes was added to pytest, now, we add test unit for aes as proposed by Simon)
>

Reviewed-by: Simon Glass <sjg@chromium.org>
diff mbox series

Patch

diff --git a/test/lib/test_aes.c b/test/lib/test_aes.c
index bddeabe..3d4fada 100644
--- a/test/lib/test_aes.c
+++ b/test/lib/test_aes.c
@@ -26,6 +26,10 @@  struct test_aes_s {
 static struct test_aes_s test_aes[] = {
 	{ AES128_KEY_LENGTH, AES128_EXPAND_KEY_LENGTH, TEST_AES_ONE_BLOCK,  1 },
 	{ AES128_KEY_LENGTH, AES128_EXPAND_KEY_LENGTH, TEST_AES_CBC_CHAIN, 16 },
+	{ AES192_KEY_LENGTH, AES192_EXPAND_KEY_LENGTH, TEST_AES_ONE_BLOCK,  1 },
+	{ AES192_KEY_LENGTH, AES192_EXPAND_KEY_LENGTH, TEST_AES_CBC_CHAIN, 16 },
+	{ AES256_KEY_LENGTH, AES256_EXPAND_KEY_LENGTH, TEST_AES_ONE_BLOCK,  1 },
+	{ AES256_KEY_LENGTH, AES256_EXPAND_KEY_LENGTH, TEST_AES_CBC_CHAIN, 16 },
 };
 
 static void rand_buf(u8 *buf, int size)