aes: add a define for the size of a block
authorPhilippe Reynes <philippe.reynes@softathome.com>
Mon, 6 Jan 2020 14:22:34 +0000 (15:22 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 17 Jan 2020 15:15:49 +0000 (10:15 -0500)
commit7012c04ef3dea6ab05cab74879e1ab97c7a086e2
treedb64b7e0029c5a6d4cc700808ab0bc3f77471ee7
parentd7bb6aceb2e99a832efbb96f9bf480bf95602192
aes: add a define for the size of a block

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@softathome.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/aes.c
include/uboot_aes.h
lib/aes.c