From patchwork Mon Jan 6 14:22:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe REYNES X-Patchwork-Id: 239168 List-Id: U-Boot discussion From: philippe.reynes at softathome.com (Philippe Reynes) Date: Mon, 6 Jan 2020 15:22:37 +0100 Subject: [PATCH V4 4/4] aes: add test unit for aes196 and aes256 In-Reply-To: <1578320557-27956-1-git-send-email-philippe.reynes@softathome.com> References: <1578320557-27956-1-git-send-email-philippe.reynes@softathome.com> Message-ID: <1578320557-27956-5-git-send-email-philippe.reynes@softathome.com> This commit add test unit for aes196 and aes256. Signed-off-by: Philippe Reynes Reviewed-by: Simon Glass --- test/lib/test_aes.c | 4 ++++ 1 file changed, 4 insertions(+) Changelog: v4: - no change 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) diff --git a/test/lib/test_aes.c b/test/lib/test_aes.c index 2b0e894..b7b4b77 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)