MCPcopy Create free account
hub / github.com/AGWA/git-crypt / explicit_memset

Function explicit_memset

util.cpp:111–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void* explicit_memset (void* s, int c, std::size_t n)
112{
113 volatile unsigned char* p = reinterpret_cast<unsigned char*>(s);
114
115 while (n--) {
116 *p++ = c;
117 }
118
119 return s;
120}
121
122static bool leakless_equals_char (const unsigned char* a, const unsigned char* b, std::size_t len)
123{

Callers 3

~Aes_ctr_encryptorMethod · 0.85
EntryMethod · 0.85
~Aes_ecb_encryptorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected