kusanagy

Core/Auth: Per SRP6a protocol, terminate connection of A % N

Aug 20th, 2019
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.22 KB | None | 0 0
  1. @@ -477,7 +477,7 @@ bool AuthSession::HandleLogonProof()
  2.     A.SetBinary(logonProof->A, 32);
  3.  
  4.     // SRP safeguard: abort if A == 0
  5.     if (A.IsZero())
  6.     if ((A % N).IsZero())
  7.         return false;
  8.  
  9.     SHA1Hash sha;
Advertisement
Add Comment
Please, Sign In to add comment