Specifying the Key Transport Algorithm
The key transport algorithm is the public key encryption algorithm used for the symmetric keys (see https://www.w3.org/TR/xmlenc-core/Opens in a new tab). By default, this is $$$SOAPWSrsaoaep. You can instead use $$$SOAPWSrsa15. To do so, call the SetEncryptionMethod() method of your instance of %XML.Security.EncryptedKeyOpens in a new tab, created in the previous step. The argument to this method can be either $$$SOAPWSrsaoaep (the default) or $$$SOAPWSrsa15
For example:
do enckey.SetEncryptionMethod($$$SOAPWSrsa15)
This information is also applicable when you create an <EncryptedKey> in other scenarios, as described elsewhere.