The EncryptedAssertion element in the SAML sets attribute type="EncryptedAssertion"
<EncryptedAssertion xmlns:d2p1="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:oasis:names:tc:SAML:2.0:assertion" d2p1:type="EncryptedAssertion">
But according to this documentation for EncryptedAssertion the type value should be ´EncryptedElementType´
<EncryptedAssertion xmlns:d2p1="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:oasis:names:tc:SAML:2.0:assertion" d2p1:type="EncryptedElementType">