MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / RemoteGroup

Method RemoteGroup

src/auth/SecureRemotePassword/srp.cpp:29–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
48private:
49 static InitInstance<RemoteGroup> group;

Callers

nothing calls this directly

Calls 4

processIntMethod · 0.80
lengthMethod · 0.45
processMethod · 0.45
getIntMethod · 0.45

Tested by

no test coverage detected