Searched refs:fs_key (Results 1 – 1 of 1) sorted by relevance
/system/vold/ |
D | KeyUtil.cpp | 66 static bool fillKey(const KeyBuffer& key, fscrypt_key* fs_key) { in fillKey() argument 71 static_assert(FS_AES_256_XTS_KEY_SIZE <= sizeof(fs_key->raw), "Key too long!"); in fillKey() 72 fs_key->mode = FS_ENCRYPTION_MODE_AES_256_XTS; in fillKey() 73 fs_key->size = key.size(); in fillKey() 74 memset(fs_key->raw, 0, sizeof(fs_key->raw)); in fillKey() 75 memcpy(fs_key->raw, key.data(), key.size()); in fillKey() 105 fscrypt_key& fs_key = *reinterpret_cast<fscrypt_key*>(fsKeyBuffer.data()); in installKey() local 107 if (!fillKey(key, &fs_key)) return false; in installKey() 108 *raw_ref = generateKeyRef(fs_key.raw, fs_key.size); in installKey() 114 add_key("logon", ref.c_str(), (void*)&fs_key, sizeof(fs_key), device_keyring); in installKey()
|