Fix formatting of tpm_stdll/Makefile.am

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Task4: refactor dig_mgr for TPM token.

This patch updates TPM token to use common code for dig_mgr.c and
replaces "tpm_stdll/dig_mgr.c" with "common/dig_mgr.c". The common
version of dig_mgr.c supports more mechanisms than TPM, however the
mechanism check behaviour is kept because mechanism support for each
token is already check by SC_* functions.

This patch causes a difference in functional behaviour of opencryptoki.
The file  "common/dig_mgr.c" has additional cleanups that are called by
SC_DigestFinal. Because of this some test cases in digest_tests will
fail any more when running with TPM. The following errors should be
fixed by this patch:

  ------
  * TESTCASE do_DigestUpdate BEGIN Starting SHA-1 Multipart Digest with test vector 1.
  * TESTCASE do_DigestUpdate ERROR (digest_func.c:163)) C_DigestInit rc=CKR_OPERATION_ACTIVE

  ------
  * TESTCASE do_DigestUpdate BEGIN Starting MD5 Multipart Digest with test vector 1.
  * TESTCASE do_DigestUpdate ERROR (digest_func.c:163)) C_DigestInit rc=CKR_OPERATION_ACTIVE

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Task4: refactor sign_mgr for TPM token.

This patch replaces "tpm_stdll/sign_mgr.c" with "common/sign_mgr.c" for
TPM.

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Fix formatting of cca_stdll/Makefile.am

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Task4: update common/sign_mgr.c with mechanisms supported by CCA

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Task4: update CCA token to use common/sign_mgr.c

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Task4: refactor verify_mgr for TPM token.

This patch replaces "tpm_stdll/verify_mgr.c" with "common/verify_mgr.c"
for TPM.

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Task4: update common/verify_mgr.c with mechanisms supported by CCA

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Task4: refactor verify_mgr for CCA token.

This patch replaces "cca_stdll/verify_mgr.c" with "common/verify_mgr.c"
for TPM.

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Task4: TPM's mech_list moved from globals.c to tpm_specific.c

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Task4: refactor globals.c for TPM token.

This patch replaces "tpm_stdll/globals.c" with "common/globals.c" for
TPM.

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Task4: refactor globals.c for CCA token.

This patch replaces "tpm_stdll/globals.c" with "common/globals.c" for
CCA.

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Task4: add token_specific_get_mechanism_{list,info} functions for TPM.

This patch implements token_specific_get_mechanism_list and
token_specific_get_mechanism_info functions for TPM and adds them to
token_specific structure.

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Task4: Update mechanism check to consider the type of operation.

This patch updates the macro VALID_MECH in "common/new_host.c" to test
if the called function is support.

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Task4: Update TPM mechanism check to consider the type of operation.

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Task4: Update CCA mechanism check to consider the type of operation.

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Task4: update mech_list for ica_s390_stdll

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>