Encrypts an XML element with XML Encryption to a certificate's key, through common/crypto.js, with the artifact log injected.
common/crypto.js
the element
the recipient's certificate
Optional
the cipher and key transport, and the options crypto.js takes
crypto.js
what crypto.js's encryptElement() answers
encryptElement()
Encrypts an XML element with XML Encryption to a certificate's key, through
common/crypto.js, with the artifact log injected.