Ejemplo n.º 1
0
 def test_verify(self):
     signed_xml = top.sign(XML, private_f, KEY_INFO_XML, KEY_SIZE)
     is_verified = top.verify(signed_xml, public_f, KEY_SIZE)
     self.assertTrue(is_verified)
Ejemplo n.º 2
0
 def test_verify(self):
   signed_xml = top.sign(XML, private_f, KEY_INFO_XML, KEY_SIZE)
   is_verified = top.verify(signed_xml, public_f, KEY_SIZE)
   self.assertTrue(is_verified)
Ejemplo n.º 3
0
 def test_verify(self):
   signature_xml = top.sign(XML, private_f, KEY_INFO_XML, KEY_SIZE)
   signed_xml = XML.replace('>', '>'+signature_xml, 1)
   is_verified = top.verify(signed_xml, public_f, KEY_SIZE)
   self.assertTrue(is_verified)