sha256: Calculate hashes correctly for both X64 and IA32

In fact, the hash calculation was working more by luck than judgement.  We
need to be very careful dealing with the sections to make sure we use the
correct part of the optional header.

Signed-off-by: James Bottomley <JBottomley@Parallels.com>
5 files changed