tpm2_encryptdecrypt: Fix issue with pkcs7 padding in wrong mode
tpm2_encryptdecrypt: Fix issue with pkcs7 padding in wrong mode

There was a bug in the code where in pkcs7 padding was applied
for every mode including the cfb which is not a valid mode for
pkcs7 padding application.

Signed-off-by: Imran Desai <d01faadd01d89088a38277c634ffb396f2b368f8@intel.com>

01org/tpm2.0-tools,01org/tpm2.0-tools,01org/tpm2.0-tools