def verify(modulus, exponent, message, signature): if RSA: rsa = RSA((modulus, exponent)) return rsa._verify(message, signature) else: return True