MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / KeyBuf

Class KeyBuf

libcppcryptfs/util/KeyCache.h:37–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35using namespace std;
36
37struct KeyBuf {
38 BYTE* ptr;
39 size_t len;
40 static void CopyBuffers(const vector<KeyBuf>& kbv, const BYTE* ptr, size_t len)
41 {
42 // Must be locked when called if ptr is from cache
43
44 size_t offset = 0;
45 for (size_t i = 0; i < kbv.size(); i++) {
46 memcpy(kbv[i].ptr, ptr + offset, kbv[i].len);
47 offset += kbv[i].len;
48 }
49 }
50};
51
52struct KeyCacheEntry {
53 LockZeroBuffer<BYTE>* pbuf;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected