fips-hash.sh now works out the in core integrity digest from the length
of the verifyCore literal in fips_test.c (64 hex SHA-256, 96 hex SHA-384,
128 hex SHA-512), falling back to a WC_SHA256 HMAC type named in the
source for placeholder values. A reported hash of the wrong length is
rejected instead of being written, and the rewrite is verified.
fips-hash-offline.sh gains HMAC-SHA-512 for v7 and checks coreKey
against the per digest key size (128 bytes for v7) instead of assuming
it matches the digest length.
1. The openssl interop test script should check that it should run before
doing anything else.
2. The process to create a random port number was using a non-portable
option to the head command. Changed to use the od tool reading from
/dev/random.
3. Ran into a sed that doesn't use the -i option, so changed it to cp its
own bak file and sed from that.