Discuss this help topic in SecureBlackbox Forum

Use passwords or symmetric keys for decryption

To decrypt the data or the encryption key using a password or a secret (symmetric) key, you need to employ TElXMLKeyInfoSymmetricData class. All you need to do is

  1. create an instance of TElXMLKeyInfoSymmetricData class;
  2. create an instance of TElSymmetricKeyMaterial class and assign it to KeyData property of TElXMLKeyInfoSymmetricData class;
  3. set Algorithm property of TElSymmetricKeyMaterial class to the desired symmetric algorithm;
  4. set the Key and IV (if needed) properties of TElSymmetricKeyMaterial class

If you are using the instance of TElXMLKeyInfoSymmetricData class for decryption of the data, assign it to KeyData property of TElXMLDecryptor class.
If you are using the instance of TElXMLKeyInfoSymmetricData class for decryption of the encryption key (when KeyEncryptionType property of TElXMLDecryptor class is set to xetKeyWrap), assign it to KeyEncryptionKeyData property.

Note, that you can use KeyName property of TElXMLDecryptor as a hint for how to select the key.

Discuss this help topic in SecureBlackbox Forum