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

Function is_long_name_file

libcppcryptfs/filename/cryptfilename.cpp:64–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64bool is_long_name_file(const WCHAR *filename)
65{
66 size_t len = wcslen(filename);
67
68 return len > (LONGNAME_PREFIX_LEN + LONGNAME_SUFFIX_LEN) && !wcsncmp(filename, LONGNAME_PREFIX_W, LONGNAME_PREFIX_LEN) && !wcscmp(filename + len - LONGNAME_SUFFIX_LEN, LONGNAME_SUFFIX_W);
69}
70
71bool
72derive_path_iv(CryptContext *con, const WCHAR *path, unsigned char *iv, const char *type)

Callers 2

is_interesting_nameFunction · 0.85
rt_is_name_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected