4.2 library(xmlenc): XML encryption library
- See also
- - https://www.w3.org/TR/xmlenc-core1/
- https://en.wikipedia.org/wiki/Security_Assertion_Markup_Language
This library is a partial implementation of the XML encryption standard. It implements the decryption part, which is needed by SAML clients.
- [det]decrypt_xml(+DOMIn, -DOMOut, :KeyCallback, +Options)
-
KeyCallback may be called as follows: call(KeyCallback, name, KeyName, Key)call(KeyCallback, public_key, public_key(RSA), Key)call(KeyCallback, certificate, Certificate, Key)
Options:
- weak_algorithms(+Boolean)
- If
true(defaultfalse), accept RSA PKCS#1 v1.5 key transport, which is vulnerable to padding oracle attacks.
The CipherReference element is not supported. Note that the CBC block cipher modes do not protect the integrity of the data. Decryption errors are reported using the same exception to avoid padding oracles.
- [det]load_certificate_from_base64_string(+String, -Certificate)
- Loads a certificate from a string, adding newlines and header where appropriate so that OpenSSL 1.0.1+ will be able to parse it