diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-05-08 14:17:22 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-05-09 11:46:11 +0200 |
commit | b933013b65df63a6607253d1162c770c835c5e59 (patch) | |
tree | 4058af6581df0b3be50193eadef3c860206e8619 /common | |
parent | 41cfc409fd80a2b2f57da89031dfb925329b8487 (diff) | |
download | barebox-b933013b65df63a6607253d1162c770c835c5e59.tar.gz barebox-b933013b65df63a6607253d1162c770c835c5e59.tar.xz |
crypto: digest: fix digesting file windows
When digesting a file we always try toread PAGE_SIZE bytes. When we get a
short read because we reached the file end then the code works
correctly. If instead we only want to digest a part of the file then
we must make sure to only read up to 'size' bytes.
Fixes: b77582effd ("crypto: digest: Split memory vs. file code into separate functions")
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions