| 27 | BigInteger prime, generator, k; |
| 28 | |
| 29 | explicit RemoteGroup(Firebird::MemoryPool&) |
| 30 | : prime(primeStr), generator(genStr), k() |
| 31 | { |
| 32 | Auth::SecureHash<Firebird::Sha1> hash; |
| 33 | |
| 34 | hash.processInt(prime); |
| 35 | if (prime.length() > generator.length()) |
| 36 | { |
| 37 | unsigned int pad = prime.length() - generator.length(); |
| 38 | char pb[1024]; |
| 39 | memset(pb, 0, pad); |
| 40 | |
| 41 | hash.process(pad, pb); |
| 42 | } |
| 43 | hash.processInt(generator); |
| 44 | |
| 45 | hash.getInt(k); |
| 46 | } |
| 47 | |
| 48 | private: |
| 49 | static InitInstance<RemoteGroup> group; |
nothing calls this directly
no test coverage detected