[PATCH V3 1/5] aes: add a define for the size of a block
Simon Glass
sjg at chromium.org
Mon Dec 23 00:48:13 CET 2019
On Fri, 15 Nov 2019 at 11:10, Philippe Reynes
<philippe.reynes at softathome.com> wrote:
>
> In the code, we use the size of the key for the
> size of the block. It's true when the key is 128 bits,
> but it become false for key of 192 bits and 256 bits.
> So to prepare the support of aes192 and 256,
> we introduce a constant for the iaes block size.
>
> Signed-off-by: Philippe Reynes <philippe.reynes at softathome.com>
> ---
> cmd/aes.c | 2 +-
> include/uboot_aes.h | 5 +++--
> lib/aes.c | 34 +++++++++++++++++-----------------
> 3 files changed, 21 insertions(+), 20 deletions(-)
>
> Changelog:
> v3:
> - no change
> v2:
> - no change
>
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list