File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1212
1313__author__ = 'roland'
1414
15- TMPL_NO_HEADER = """<xenc:EncryptedData xmlns:xenc ="http://www.w3.org/2001/04/xmlenc #" xmlns:ds ="http://www.w3.org/2000/09/xmldsig #" Id="{ed_id}" Type="http://www.w3.org/2001/04/xmlenc#Element"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc" /><ds:KeyInfo><xenc:EncryptedKey Id="{ek_id}"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5" /><ds:KeyInfo><ds:KeyName>my-rsa-key</ds:KeyName></ds:KeyInfo><xenc:CipherData><xenc:CipherValue /></xenc:CipherData></xenc:EncryptedKey></ds:KeyInfo><xenc:CipherData><xenc:CipherValue /></xenc:CipherData></xenc:EncryptedData>"""
15+ TMPL_NO_HEADER = """<xenc:EncryptedData xmlns:ds ="http://www.w3.org/2000/09/xmldsig #" xmlns:xenc ="http://www.w3.org/2001/04/xmlenc #" Id="{ed_id}" Type="http://www.w3.org/2001/04/xmlenc#Element"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc" /><ds:KeyInfo><xenc:EncryptedKey Id="{ek_id}"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5" /><ds:KeyInfo><ds:KeyName>my-rsa-key</ds:KeyName></ds:KeyInfo><xenc:CipherData><xenc:CipherValue /></xenc:CipherData></xenc:EncryptedKey></ds:KeyInfo><xenc:CipherData><xenc:CipherValue /></xenc:CipherData></xenc:EncryptedData>"""
1616TMPL = "<?xml version='1.0' encoding='UTF-8'?>\n %s" % TMPL_NO_HEADER
1717
1818IDENTITY = {"eduPersonAffiliation" : ["staff" , "member" ],
@@ -123,5 +123,6 @@ def test_enc2():
123123
124124 assert enc_resp
125125
126+
126127if __name__ == "__main__" :
127128 test_enc1 ()
You can’t perform that action at this time.
0 commit comments