Fix logging when decrypting

When attribute encryption is configured, the parameter enctext contains
an EncryptedData object (which has no len() function) and therefore
generated an error. Converting the EncryptedData to a string does allow
to check the length.

When assertion encryption is configured, enctext contains a string.