[PATCH 1/10]: add new token_specific_shaX calls to the header files.

Signed-off-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
[PATCH 2/10]: Remove ckm_* calls and make one call into the hash functions.
Add single-part SHAs, instead of calling both update and final to do
what should really be one call for the token.

Signed-off-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
[PATCH 3/10]: Replace calls to ckm_* with their new counterparts.
Also to allow the shaX_* calls to be called internally, remove
the check for a session. It is done earlier when called from api.

Signed-off-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
[PATCH 4/10]: Add token-specific single-part shaX to ica token.
Remove doing single-part with update and final calls.
Now ctx->multi should only be TRUE when doing update and final to
indicate was a multi-part operation.

Signed-off-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
[PATCH 5/10]: Add single-part sha2 to cca token.
Remove doing single-part sha2 within tokn_specific_sha2_update and final.
Made corrections in token_specific_sha2_update and token_specific_sha2_init
so that we do not malloc the saved buffer in ctx. No need to do this if
we send data once we have a multiple of the blocksize. The CSNBOWH has
ability to chain data, so best to use it. Thus saved data is always going
to be less than blocksize and don't need to realloc or malloc it.

Signed-off-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
[PATCH 6/10] : Add support for SHA384 and SHA512 to cca token.

Signed-off-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
[PATCH 7/10]: Add single-part sha to ep11 token.
Also, in the shaX_init and sign_init, only add state and set
to active if the m_XXX_init call succeeds.

Signed-off-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
[PATCH 8/10]: Only icsf token supports multi-part hmac. But icsf is only
token with no "identifiable" properties, so only run hmac multipart
if not the other tokens.

Signed-off-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
[PATCH 9/10]: Additional published test vectors for SHA256, 384 and 512.

Signed-off-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
[PATCH 10/10]: ep11 sha hmacs require certain keys lengths.
Check for the supported keylens in the hmac digest testcases.

Signed-off-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
In ep11, only set context if m_VerifyInit was successful.

Signed-off-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
ep11 is not building because not setting with_zcrypt correctly.

Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>