Description
Documentation says to pass "EncryptedData" to decrypt. However, you actually need the entire "EncryptedAssertion" , so that "EncryptedKey" can be referenced from "EncryptedData". Existing code, actually, handles this right now (sort of). I passed in "EncryptedAssertion", and decrypt function (via decryptKeyInfo) did successfully handle finding the "keyEncryptionAlgorighm"; but failed in decryptKeyInfoWithScheme with "Error: Encrypted message length is invalid" from rsa libs. So, I think the documentation needs to be updated to denote entire "EncryptedAssertion" and possibly run through to make sure it's still working as expected when entire "EncryptedAssertion" is passed in.
Attachment in the ref below has sample EncryptedAssertion with ref to "EncryptedKey" from "EncryptedData".
#Ref tngan/samlify#85