Actually perform all checks in 2fa

This commit is contained in:
Lonami Exo
2018-12-24 14:16:50 +01:00
parent a623006ea0
commit d2ac7e5b0a
3 changed files with 12 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ async def do_authentication(sender):
# Step 2 sending: DH Exchange
p, q = Factorization.factorize(pq)
p, q = rsa.get_byte_array(min(p, q)), rsa.get_byte_array(max(p, q))
p, q = rsa.get_byte_array(p), rsa.get_byte_array(q)
new_nonce = int.from_bytes(os.urandom(32), 'little', signed=True)
pq_inner_data = bytes(PQInnerData(