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

Function calc_hash

src/burp/mvol.cpp:179–192  ·  view source on GitHub ↗

____________________________________________________________

Source from the content-addressed store, hash-verified

177//
178//
179static void calc_hash(Firebird::string& valid, Firebird::IDbCryptPlugin* plugin)
180{
181 // crypt verifier
182 const char* sample = "0123456789ABCDEF";
183 char result[16];
184 FbLocalStatus sv;
185
186 plugin->encrypt(&sv, sizeof(result), sample, result);
187 check(&sv);
188
189 // calculate its hash
190 const Firebird::string verifier(result, sizeof(result));
191 Firebird::Sha1::hashBased64(valid, verifier);
192}
193
194//____________________________________________________________
195//

Callers 2

start_cryptFunction · 0.85
write_headerFunction · 0.85

Calls 3

hashBased64Function · 0.85
checkFunction · 0.50
encryptMethod · 0.45

Tested by

no test coverage detected