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

Method hashBased64

src/common/sha.cpp:348–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346namespace Firebird {
347
348 void Sha1::hashBased64(string& hash, const string& data)
349 {
350 SHA_INFO si;
351 sha_init(&si);
352 sha_update(&si, reinterpret_cast<const unsigned char*>(data.c_str()), data.length());
353 UCharBuffer b;
354 sha_final(b.getBuffer(SHA_DIGESTSIZE), &si);
355 fb_utils::base64(hash, b);
356 }
357
358 Sha1::Sha1()
359 : active(false)

Callers

nothing calls this directly

Calls 7

sha_initFunction · 0.85
sha_updateFunction · 0.85
sha_finalFunction · 0.85
base64Function · 0.85
c_strMethod · 0.45
lengthMethod · 0.45
getBufferMethod · 0.45

Tested by

no test coverage detected