• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

4.2 library(xmlenc): XML encryption library
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog SSL Interface
        • XML cryptographic libraries
          • library(xmlenc): XML encryption library
            • decrypt_xml/4
            • load_certificate_from_base64_string/2
Availability::- use_module(library(xmlenc)).(can be autoloaded)
Source[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 (default false), 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.

ClioPatria (version V3.1.1-59-g7b9a7a3)