PublicShow sourcexmlenc.pl -- XML encryption library

This library is a partial implementation of the XML encryption standard. It implements the decryption part, which is needed by SAML clients.

See also
- https://www.w3.org/TR/xmlenc-core1/
- https://en.wikipedia.org/wiki/Security_Assertion_Markup_Language
Source decrypt_xml(+DOMIn, -DOMOut, :KeyCallback, +Options) is det
Arguments:
KeyCallback- may be called as follows:
  • call(KeyCallback, name, KeyName, Key)
  • call(KeyCallback, public_key, public_key(RSA), Key)
  • call(KeyCallback, certificate, Certificate, Key)
Source load_certificate_from_base64_string(+String, -Certificate) is det
Loads a certificate from a string, adding newlines and header where appropriate so that OpenSSL 1.0.1+ will be able to parse it