[PATCH] Add support for SHA-512-224 and SHA-512-256 in sha512.c