]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: simplify tcg2_create_digest()
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 22 Apr 2021 11:32:14 +0000 (14:32 +0300)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 24 Apr 2021 04:53:40 +0000 (06:53 +0200)
commit6fe8b4a39d0ddb6cf6de35ab3e1b522ec0824575
treebe0078e375702347f3589ace93b464de6b337f7a
parenta07ee3c198df216b3111c1dc8f79410e3b0bcc4b
efi_loader: simplify tcg2_create_digest()

Bumping the digest list count, for all supported algorithms,  can be
calculated outside of the individual switch statements.  So let's do that
for every loop iteration instead and simplify the code a bit.

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_tcg2.c