[PATCH V3 4/5] aes: add test unit for aes128

Simon Glass sjg at chromium.org
Mon Dec 23 00:48:17 CET 2019


Hi Philippe,

On Fri, 15 Nov 2019 at 11:10, Philippe Reynes
<philippe.reynes at softathome.com> wrote:
>
> This commit add test unit for aes128.
>
> Signed-off-by: Philippe Reynes <philippe.reynes at softathome.com>
> ---
>  test/lib/Makefile   |   1 +
>  test/lib/test_aes.c | 162 ++++++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 163 insertions(+)
>  create mode 100644 test/lib/test_aes.c
>
> 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 at chromium.org>

nit below

[..]

> diff --git a/test/lib/test_aes.c b/test/lib/test_aes.c
> new file mode 100644
> index 0000000..bddeabe
> --- /dev/null
> +++ b/test/lib/test_aes.c
> @@ -0,0 +1,162 @@
> +// SPDX-License-Identifier: GPL-2.0+
> +/*
> + * Copyright (c) 2019 Philippe Reynes <philippe.reynes at softathome.com>
> + *
> + * Unit tests for aes functions
> + */
> +
> +#include <common.h>
> +#include <command.h>
> +#include <hexdump.h>
> +#include <test/lib.h>
> +#include <test/test.h>
> +#include <test/ut.h>
> +#include <uboot_aes.h>

Put test/ headers at the end.

Regards,
Simon


More information about the U-Boot mailing list