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

Method clientProof

src/auth/SecureRemotePassword/srp.cpp:181–199  ·  view source on GitHub ↗

H(H(prime) ^ H(g), H(I), s, A, B, K)

Source from the content-addressed store, hash-verified

179
180// H(H(prime) ^ H(g), H(I), s, A, B, K)
181BigInteger RemotePassword::clientProof(const char* account, const char* salt, const UCharBuffer& sessionKey)
182{
183 hash.reset();
184 hash.processInt(group->prime);
185 BigInteger n1;
186 hash.getInt(n1);
187
188 hash.reset();
189 hash.processInt(group->generator);
190 BigInteger n2;
191 hash.getInt(n2);
192 n1 = n1.modPow(n2, group->prime);
193
194 hash.reset();
195 hash.process(account);
196 hash.getInt(n2);
197
198 return makeProof(n1, n2, salt, sessionKey);
199}
200
201RemotePassword::~RemotePassword()
202{ }

Callers 3

authenticateMethod · 0.80
runTestFunction · 0.80
authenticateMethod · 0.80

Calls 5

processIntMethod · 0.80
modPowMethod · 0.80
resetMethod · 0.45
getIntMethod · 0.45
processMethod · 0.45

Tested by 1

runTestFunction · 0.64