Invalid parameters passed to the SRP code can be overrun an internal buffer. Add sanity check that g, A, B < N to SRP code. Thanks to Sean Devlin and Watson Ladd of Cryptography Services, NCC Group for reporting this issue.
PR: 3165 Submitted by: Daniel Richard G. (cherry picked from commit 2df9ec01d5)
2df9ec01d5