Add DeriveKey to ock and icsf token.

Signed-off-by: Debora V Babb <dvelarde@us.ibm.com>
Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
derive key in ICSF should accept null attributes.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
CKM_SSL3_SHA1_MAC and CKM_SSL3_MD5_MAC require mechanism parameters
in ICSF token.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Refactored the Diffie Helman testcase in dh_func.c

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Refactored ssl3 testcases in ssl3_func.c

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
More refactoring for ssl3_func.c

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
icsf: add multiple keys derivation

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
icsf: add test case for multiple keys derivation
Add 2 additional assertions.
1. CKM_SSL3_MASTER_KEY_DERIVE has implicit (implied) attributes, so testcase
checks that the implementation adds the required attributes to the derived
key if the user did not specify them.

2. CKM_SSL3_KEY_AND_MAC_DERIVE requires explicit attributes, so testcase
checks that if the attribute template does not include these attributes, then
the implementation sends a CKR_TEMPLATE_INCOMPLETE error.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>