openssl: stop using deprecated SHA512_* functions

The openssl/sha.h header is deprecated for OpenSSL 3 along with all the
functions in it.  Switch to use the EVP_MD interfaces.

Tested: This code purposefully only changes the production code so that
the test cases still use the old SHA512 functions and confirm the two
have matching results.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I91959eef65793f1092536f7e4c027839ce6cdf52
1 file changed