Return resulting etree. For callers convenience.
Add parse_xml().

This function can be used to parse XML data while removing whitespace.
Add some function documentation.
Refactor number_of_bits for readability.
parse_xml: Make it possible to skip whitespace removal.
Add test cases for whitespace and C14N.
sign: Documentation.
sign and verify: Extract shared code.

Move signature digest creation to new function
_create_signature_digest().
Documentation.
verify: Return False if no signatures found.
Disable debug info writing to files in /tmp.
Use hash algorithm from message, and support more algorithms.

Adds support for SHA256, SHA384 and SHA512 besides SHA1 that was
already supported - at least in theory. Only SHA1 is tested for now.
Add test cases for sign and verify.

RSA keys are re-used from pySAML2 in order to be able to test
for same output.
Ignore more editor files.
_cert: move to other related code
verify: refactor for efficiency and readability.
Do not use assert for hard checks.

assert() is a no-op when optimization is requested, so it can't be
used to check for invalid input, disallowed conditions etc.
ignore softhsm database (from test cases)
add case.load_test_data()
Add test for signing using PKCS#11.