You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if not (is_prime(p) and is_prime(q)):
return False
if not (powmod(g, q, p) == 1 and g > 1 and (p - 1) % q == 0):
return False
return True
def validate_sign(r, s, q):
if r <= 0 or r >= q:
return False
if s <= 0 or s >= q:
return False
return True```
Return true will break out of the function
Should be or and not and