Home
last modified time | relevance | path

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

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