Home
last modified time | relevance | path

Searched refs:fs_key (Results 1 – 1 of 1) sorted by relevance

/system/vold/
DKeyUtil.cpp119 static bool fillKey(const KeyBuffer& key, fscrypt_key* fs_key) { in fillKey() argument
124 static_assert(FSCRYPT_MAX_KEY_SIZE == sizeof(fs_key->raw), "Mismatch of max key sizes"); in fillKey()
125 fs_key->mode = 0; // unused by kernel in fillKey()
126 memcpy(fs_key->raw, key.data(), key.size()); in fillKey()
127 fs_key->size = key.size(); in fillKey()
160 fscrypt_key& fs_key = *reinterpret_cast<fscrypt_key*>(fsKeyBuffer.data()); in installKeyLegacy() local
162 if (!fillKey(key, &fs_key)) return false; in installKeyLegacy()
168 add_key("logon", ref.c_str(), (void*)&fs_key, sizeof(fs_key), device_keyring); in installKeyLegacy()