Home
last modified time | relevance | path

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

/system/vold/
DKeyUtil.cpp147 static bool fscryptKeyring(key_serial_t* device_keyring) { in fscryptKeyring() argument
148 *device_keyring = keyctl_search(KEY_SPEC_SESSION_KEYRING, "keyring", "fscrypt", 0); in fscryptKeyring()
149 if (*device_keyring == -1) { in fscryptKeyring()
163 key_serial_t device_keyring; in installKeyLegacy() local
164 if (!fscryptKeyring(&device_keyring)) return false; in installKeyLegacy()
168 add_key("logon", ref.c_str(), (void*)&fs_key, sizeof(fs_key), device_keyring); in installKeyLegacy()
170 PLOG(ERROR) << "Failed to insert key into keyring " << device_keyring; in installKeyLegacy()
173 LOG(DEBUG) << "Added key " << key_id << " (" << ref << ") to keyring " << device_keyring in installKeyLegacy()
184 key_serial_t device_keyring; in installProvisioningKey() local
185 if (!fscryptKeyring(&device_keyring)) return false; in installProvisioningKey()
[all …]
/system/core/init/
Dfscrypt_init_extensions.cpp49 key_serial_t device_keyring = add_key("keyring", "fscrypt", 0, 0, KEY_SPEC_SESSION_KEYRING); in FscryptInstallKeyring() local
51 if (device_keyring == -1) { in FscryptInstallKeyring()
55 LOG(INFO) << "Keyring created with id " << device_keyring << " in process " << getpid(); in FscryptInstallKeyring()