card-iasecc.c support for partial hash to use with final hash on card
card-iasecc.c support for partial hash to use with final hash on card

Update to use  EVP_Digest* for SHA1 or SHA256 in iasecc_qsign_data_sha1
and iasecc_qsign_data_sha256. These routines extract partial hash data
before EVP_DigestFinal. The data is then sent to the card to do
the final round of the hash.

LibreSSL, OpenSSL 1.1.m and 3.0.1 all define in sha.h identical
SHA_CTX and SHA256_CTX structures. But if 3.0.1 is built with no-depracated
the definition of the structures (and other defines) are undefined.
In this these are defind in card-iasecc.c

All three versions have a way to access the data in these structures:
 LibreSSL: md_data = (SHA_CTX *)mdctx->md_data;
 1.1.1m:   md_data = EVP_MD_CTX_md_data(mdctx);
 3.0.1:    md_data = EVP_MD_CTX_get0_md_data(mdctx);

I believe that the depraction of the structures in 3.0.1 is an oversight
as EVP_MD_CTX_get0_md_data (added in 3.0.0) will return the address of
the structure but not the definition of the structure.

 On branch sc-ossl-compat-cleanup
 Changes to be committed:
	modified:   card-iasecc.c

philipWendland/OpenSC,philipWendland/OpenSC,philipWendland/OpenSC,mouse07410/OpenSC,mouse07410/OpenSC,LudovicRousseau/OpenSC,OpenSC/OpenSC,metsma/OpenSC,dengert/OpenSC,OpenSC/OpenSC,dengert/OpenSC,metsma/OpenSC,OpenSC/OpenSC,metsma/OpenSC,LudovicRousseau/OpenSC,mouse07410/OpenSC,LudovicRousseau/OpenSC,dengert/OpenSC