xmlenc

package module
v0.0.0-...-4c889cd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2018 License: BSD-2-Clause Imports: 8 Imported by: 1

README

XML Encryption

This is a very bare-bones implementation of XML Encryption, just enough to decrypt the SAML attributes of the iDIN protocol provided by (mostly) Dutch banks.

Some warnings:

  • This is unfinished. It supports almost nothing except for one specific combination of RSA-OAEP, SHA1, and AES-256-CBC.
  • Do not use unauthenticated XML encryption. It is broken by design and allows for a padding oracle attack. Make sure the messages you're trying to decrypt have been verified in some way (e.g. using an XML signature).
  • This library hasn't been reviewed by a cryptographer so it may contain mistakes. However, as it is only decrypting stuff (which should be already authenticated), there is not a whole lot that can go wrong.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptElement

func DecryptElement(src *etree.Element, sk *rsa.PrivateKey) (*etree.Element, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL