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

Method getUserHash

src/auth/SecureRemotePassword/srp.cpp:80–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80BigInteger 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
98BigInteger RemotePassword::computeVerifier(const string& account, const string& salt, const string& password)
99{

Callers

nothing calls this directly

Calls 4

resetMethod · 0.45
processMethod · 0.45
getHashMethod · 0.45
getIntMethod · 0.45

Tested by

no test coverage detected