Exemplo n.º 1
0
def test_rsassa_pkcs1_v15_verify():
    for example in data.examples:
        public_key = example.public_key
        for sample in example.samples:
            message = sample.message
            signature = sample.signature
            assert len(signature) == public_key.byte_size
            assert rsassa_pkcs1_v15.verify(public_key, message, signature)
Exemplo n.º 2
0
 def test_rsassa_pkcs1_v15_verify(self):
     for example in self.data.examples:
         public_key = example.public_key
         for sample in example.samples:
             message = sample.message
             signature = sample.signature
             self.assertEqual(len(signature), public_key.byte_size)
             self.assertTrue(rsassa_pkcs1_v15.verify(public_key, message,
                     signature))
Exemplo n.º 3
0
 def test_rsassa_pkcs1_v15_verify(self):
     for example in self.data.examples:
         public_key = example.public_key
         for sample in example.samples:
             message = sample.message
             signature = sample.signature
             self.assertEqual(len(signature), public_key.byte_size)
             self.assertTrue(rsassa_pkcs1_v15.verify(public_key, message,
                     signature))