MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / xorStringObjectDigest

Function xorStringObjectDigest

src/debug.cpp:106–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void xorStringObjectDigest(unsigned char *digest, robj *o) {
107 o = getDecodedObject(o);
108 xorDigest(digest,(const unsigned char*)ptrFromObj(o),sdslen(szFromObj(o)));
109 decrRefCount(o);
110}
111
112/* This function instead of just computing the SHA1 and xoring it
113 * against digest, also perform the digest of "digest" itself and

Callers

nothing calls this directly

Calls 6

getDecodedObjectFunction · 0.85
xorDigestFunction · 0.85
ptrFromObjFunction · 0.85
sdslenFunction · 0.85
szFromObjFunction · 0.85
decrRefCountFunction · 0.85

Tested by

no test coverage detected