sha256: do not align raw section sizes

A vmlinuz hash was failing because it was being aligned up to the
context.fileAlignment (which is 32) which adds a spurious 16 bytes to
the section size.

Additionally, only hash additional data if the remaining data is
larger than the security directory.

Signed-off-by: James Bottomley <>
1 file changed