| 67 | } |
| 68 | |
| 69 | RemotePassword::RemotePassword() |
| 70 | : group(RemoteGroup::getGroup()) |
| 71 | { |
| 72 | #if SRP_DEBUG > 1 |
| 73 | privateKey = BigInteger("60975527035CF2AD1989806F0407210BC81EDC04E2762A56AFD529DDDA2D4393"); |
| 74 | #else |
| 75 | privateKey.random(RemotePassword::SRP_KEY_SIZE); |
| 76 | #endif |
| 77 | privateKey %= group->prime; |
| 78 | } |
| 79 | |
| 80 | BigInteger RemotePassword::getUserHash(const char* account, const char* salt, const char* password) |
| 81 | { |
nothing calls this directly
no test coverage detected