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>
1 parent 23c9657 commit b77582effd360f15da2a42c2ad3c45f8cbc6dba9
@Andrey Smirnov Andrey Smirnov authored on 12 Jan 2019
Sascha Hauer committed on 16 Jan 2019
Showing 1 changed file
View
crypto/digest.c