summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-01-12 00:24:54 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2019-01-16 08:33:34 +0100
commitb77582effd360f15da2a42c2ad3c45f8cbc6dba9 (patch)
treeb6401f3d26c3c317c9deaa53b65132d2eaa69a25 /commands
parent23c9657eb120019097b364820bc17bac5d172d12 (diff)
downloadbarebox-b77582effd360f15da2a42c2ad3c45f8cbc6dba9.tar.gz
barebox-b77582effd360f15da2a42c2ad3c45f8cbc6dba9.tar.xz
crypto: digest: Split memory vs. file code into separate functions
Instead of trying to fit two rather different cases into a single loop, split digesting memory and digesting files into separate subroutines. While duplicating some of the code shared by both of the while() loops this makes the body of the loop easier to follow as well as gets rid of poorly named "flags" variable. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
0 files changed, 0 insertions, 0 deletions