Task4: Update TPM mechanism check to consider the type of operation.
Task4: Update TPM mechanism check to consider the type of operation.

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

joylatten/opencryptoki,fingunter/OpenCryptoki,fingunter/OpenCryptoki,joylatten/opencryptoki,joylatten/opencryptoki,fingunter/OpenCryptoki,joylatten/opencryptoki,fingunter/OpenCryptoki,joylatten/opencryptoki