icsf: add functions for symmetric decryption and encryption

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Joy Latten
add token-specific functions for symmetric decryption and encryption

Add 8 new token-specific functions to symmetric key
encryption/decryption.

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Joy Latten
new_host.c: fix formatting for decryption and encryption functions

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Joy Latten
icsf: update de/encryption functions to return the expected length

Update icsf_secret_key_encrypt() and icsf_secret_key_decrypt() to
return the expected length of the output buffer when it is NULL.

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Joy Latten
icsf: add function to get block sizes used by ICSF

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Joy Latten
icsf: add token-specific functions to de/encrypt data

Add the token-specific functions related to the following PKCS#11
functions:

 - C_EncryptInit()
 - C_Encrypt()
 - C_EncryptUpdate()
 - C_EncryptFinal()
 - C_DecryptInit()
 - C_Decrypt()
 - C_DecryptUpdate()
 - C_DecryptFinal()

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