fix SRP authentication and RC4 encryption