Fix ock_test.sh.in so that make installcheck will work.

Signed-off-by: Joy Latten <latten@austin.ibm.com>
Fix ock_err_msg array.

Signed-off-by: Ross McIlroy <rmcilroy@google.com>
Add CKM_SHAXXX_RSA_PKCS support to ica token.

Signed-off-by: Ingo Tuchscherer <ingo.tuchscherer@de.ibm.com>
Allow cca token to import rsa keys via createobject.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Signed-off-by: Rajiv Andrade <mail@srajiv.net>
token_specific_sha2_final gets called for a single part digest and it
calls CSNBOWH again which messes up the already computed hash.
After calling CSNBOWH the first time, copy hash to output buffer.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Add sha2, sha3 and sha5 test vectors.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Dont creat a key object in the testcase.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Bump up to version 2.4.3

Signed-off-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
Allow private keys imported into cca token to decrypt.

Signed-off-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
Bump up version to 2.4.3.1

Signed-off-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
Task1: re-factor token specific structure.

Signed-off-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
Reviewed-by: Kent Yoder <key@linux.vnet.ibm.com>
Reviewed-by: Marcelo Cerri <mhcerri@br.ibm.com>
Task2: Modify token_specific definition for ica and tpm to include
       the new token_spec_t.

Signed-off-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
Reviewed-by: Kent Yoder <key@linux.vnet.ibm.com>
Reviewed-by: Marcelo Cerri <mhcerri@br.ibm.com>
Commented all NULLs in token specific structs.

Signed-off-by: Debora Babb <dvelarde@us.ibm.com>
Reviewed-by: Kent Yoder <key@linux.vnet.ibm.com>
Reviewed-by: Marcelo Cerri <mhcerri@br.ibm.com>
Task3: Refactored mech_rsa such for all tokens.

Signed-off-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
Reviewed-by: Kent Yoder <key@linux.vnet.ibm.com>
Reviewed-by: Marcelo Cerri <mhcerri@br.ibm.com>
1.Removed ckm_rsa_* calls. Instead make token specfic calls directly.
2.Also replaced code to find modulus and keyclass with a function.

Signed-off-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
Reviewed-by: Kent Yoder <key@linux.vnet.ibm.com>
Reviewed-by: Marcelo Cerri <mhcerri@br.ibm.com>
Task3: testcase correction so that rsa test work with tpm.
tpm only allows public exponent 65537 and modbits 512, 1024, and 2048.

Signed-off-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
Reviewed-by: Marcelo Cerri <mhcerri@br.ibm.com>
Task3: refactor mech_aes for all tokens to use.

Signed-off-by: Joy Latten:<jmlatten@linux.vnet.ibm.com>
Reviewed-by: Kent Yoder <key@linux.vnet.ibm.com>
Reviewed-by: Marcelo Cerri <mhcerri@br.ibm.com>
Task3: re-factor mech_sha.c for all tokens to use.

Signed-off-by: Debora Babb <dvelarde@us.ibm.com>
Reviewed-by: Marcelo Cerri <mhcerr@br.ibm.com>
Reviewed-by: Joy Latten <jmlatten@linux.vnet.ibm.com
Task3: Re-factor mech_des and mech_des3 so that all tokens
       may use the one set of files.

Signed-off-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
Reviewed-by: Marcelo Cerri <mhcerri@br.ibm.com>
Task3: tokenize mech_rng to fit new scheme.

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