def test_find_signature_hash(self): """Test happy flow of sign and find_signature_hash""" message = b'je moeder' signature = pkcs1.sign(message, self.priv, 'SHA-256') self.assertEqual('SHA-256', pkcs1.find_signature_hash(signature, self.pub))
def test_find_signature_hash(self): """Test happy flow of sign and find_signature_hash""" message = b"je moeder" signature = pkcs1.sign(message, self.priv, "SHA-256") self.assertEqual("SHA-256", pkcs1.find_signature_hash(signature, self.pub))