Discuss this help topic in SecureBlackbox Forum
XML: Read properties of encrypted data
After loading xenc:EncryptedData element into TElXMLDecryptor instance using TElXMLDecryptor.Load() method you can use TElXMLDecryptor.EncryptedDataType and TElXMLDecryptor.MimeType properties to find out what data is encrypted in this xenc:EncryptedData element. Next use TElXMLDecryptor.EncryptionMethod property to get the encryption algorithm.
You can use KeyName, EncryptKey, KeyEncryptionType, KeyTransportMethod, KeyWrapMethod properties to determine the type of the key and find the key for decryption.
If the EncryptKey property is true, then you should check KeyEncryptionType property to determine the type of the key. If KeyEncryptionType is set to xetKeyWrap, you need to use a symmetric key for decrypto. Otherwise use asymmetric private key.