verity: output salt if we had one

BUG=chromium-os:12138
TEST=Adhoc
verity mode=create alg=sha256 payload=foo hashtree=bar [salt=0]
Check that with no salt, no salt is emitted, and with a salt, the right salt is
re-emitted (and the root hexdigest differs).

Change-Id: Ibb9de2956b937efed7aa98ee40342034458b1b38
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/7100
Reviewed-by: Mandeep Singh Baines <msb@chromium.org>
1 file changed