This fixes a lock not being released.

Sometimes, for example for local hashing, user does not have to log in,
thus there won't be an ldap descriptor. So in close_session() icsf_logout
would fail. Thus in token_specific_close_session would fail to release
the sess_list_mutex lock. A new call to openSession would hang since it
was waiting on this lock

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Marcelo Cerri
Remove unsupported hash algorithms

Currently we dont support some of the hash algos. Add them back in when
support is added.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Marcelo Cerri
Add hmac sign and verify in icsf layer.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Marcelo Cerri
Allocate data for chain_data in an array.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Marcelo Cerri
Add token specific sign and verify to ock.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Marcelo Cerri
Add token specific ICSF sign and verify.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Marcelo Cerri
Add HMAC Multipart testcase.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Marcelo Cerri
Cleanup if error in ICSF's token specific sign_init and verify_init.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Marcelo Cerri
Remove MD2.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Marcelo Cerri
icsf: remove mechanisms related to hashed PK signing

These mechanisms will be supported when CSFPOWH is implemented.

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Reviewed-by: Joy Latten
icsf: add support for simple PK signing

This change adda support for signing using one of the following
mechanisms: CKM_RSA_X_509, CKM_RSA_PKCS

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