* Returns a string (consisting of 8 random bytes) suitable for use as an * obfuscating XOR key. */
| 219 | * obfuscating XOR key. |
| 220 | */ |
| 221 | std::vector<unsigned char> CDBWrapper::CreateObfuscateKey() const |
| 222 | { |
| 223 | unsigned char buff[OBFUSCATE_KEY_NUM_BYTES]; |
| 224 | GetRandBytes(buff, OBFUSCATE_KEY_NUM_BYTES); |
| 225 | return std::vector<unsigned char>(&buff[0], &buff[OBFUSCATE_KEY_NUM_BYTES]); |
| 226 | |
| 227 | } |
| 228 | |
| 229 | bool CDBWrapper::IsEmpty() |
| 230 | { |
nothing calls this directly
no test coverage detected