summaryrefslogtreecommitdiff
path: root/src/cbootimage.h
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2013-08-23 11:59:12 -0600
committerStephen Warren <swarren@nvidia.com>2013-08-27 10:04:16 -0600
commitce1847a2b3ffc7026db58d800a103e7fdbf9f1ac (patch)
tree00e32a617777d21571e71369e4b188d7e027dd51 /src/cbootimage.h
parent902a58b463f6a59ab48ac0858610cec3ad74685f (diff)
downloadnvidia-cbootimage-ce1847a2b3ffc7026db58d800a103e7fdbf9f1ac.tar.gz
crypto: produce consistent hash for zero-length data
In real-world use-cases, hashing zero-length data likely never happens. However, it is relevant when testing cbootimage with a dummy zero-length bootloader binary, e.g.: touch u-boot.bin cbootimage -t30 ../tamonten-ng/tegra30.img.cfg tegra30-tec-ng.img In this scenario, it's useful to create a consistent hash, so that one can compare the resultant images before and after applying patches, to check for regressions. Hence, zero out the hash data so it has consistent content if it isn't written to. Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'src/cbootimage.h')
0 files changed, 0 insertions, 0 deletions