| 78 | } |
| 79 | |
| 80 | BigInteger RemotePassword::getUserHash(const char* account, const char* salt, const char* password) |
| 81 | { |
| 82 | hash.reset(); |
| 83 | hash.process(account); |
| 84 | hash.process(":"); |
| 85 | hash.process(password); |
| 86 | UCharBuffer hash1; |
| 87 | hash.getHash(hash1); |
| 88 | |
| 89 | hash.reset(); |
| 90 | hash.process(salt); |
| 91 | hash.process(hash1); |
| 92 | BigInteger rc; |
| 93 | hash.getInt(rc); |
| 94 | |
| 95 | return rc; |
| 96 | } |
| 97 | |
| 98 | BigInteger RemotePassword::computeVerifier(const string& account, const string& salt, const string& password) |
| 99 | { |