I'm using pySAML to do some XML validation. By default it uses xmlsec (the binary) but it can be configured to use pyXMLSecurity. pyXMLSecurity does not provide a method with which I can provide the contents of the KeyInfo portion of the signature to use as the verification as a string. xmlsec.verify() only allows me to use a file (which, granted, I have, but I should be using the KeyInfo in the message instead.
I'm using pyXMLSecurity 0.18 with pySAML2 4.6.2.