| 96 | } |
| 97 | |
| 98 | BigInteger RemotePassword::computeVerifier(const string& account, const string& salt, const string& password) |
| 99 | { |
| 100 | BigInteger x(getUserHash(account.c_str(), salt.c_str(), password.c_str())); |
| 101 | return group->generator.modPow(x, group->prime); |
| 102 | } |
| 103 | |
| 104 | void RemotePassword::genClientKey(string& pubkey) |
| 105 | { |