Searched refs:device_keyring (Results 1 – 2 of 2) sorted by relevance
/system/extras/ext4_utils/ |
D | ext4_crypt_init_extensions.cpp | 84 key_serial_t device_keyring = add_key("keyring", "e4crypt", 0, 0, in e4crypt_install_keyring() local 87 if (device_keyring == -1) { in e4crypt_install_keyring() 93 device_keyring, getpid()); in e4crypt_install_keyring()
|
/system/vold/ |
D | Ext4Crypt.cpp | 147 static bool e4crypt_keyring(key_serial_t* device_keyring) { in e4crypt_keyring() argument 148 *device_keyring = keyctl_search(KEY_SPEC_SESSION_KEYRING, "keyring", "e4crypt", 0); in e4crypt_keyring() 149 if (*device_keyring == -1) { in e4crypt_keyring() 163 key_serial_t device_keyring; in install_key() local 164 if (!e4crypt_keyring(&device_keyring)) return false; in install_key() 166 add_key("logon", ref.c_str(), (void*)&ext4_key, sizeof(ext4_key), device_keyring); in install_key() 168 PLOG(ERROR) << "Failed to insert key into keyring " << device_keyring; in install_key() 171 LOG(DEBUG) << "Added key " << key_id << " (" << ref << ") to keyring " << device_keyring in install_key()
|