Searched refs:keyring_id (Results 1 – 3 of 3) sorted by relevance
/system/security/fsverity_init/ |
D | fsverity_init.cpp | 31 bool LoadKeyToKeyring(key_serial_t keyring_id, const char* desc, const char* data, size_t size) { in LoadKeyToKeyring() argument 32 key_serial_t key = add_key("asymmetric", desc, data, size, keyring_id); in LoadKeyToKeyring() 40 void LoadKeyFromDirectory(key_serial_t keyring_id, const char* keyname, const char* dir) { in LoadKeyFromDirectory() argument 50 if (!LoadKeyToKeyring(keyring_id, keyname, content.c_str(), content.size())) { in LoadKeyFromDirectory() 56 void LoadKeyFromVerifiedPartitions(key_serial_t keyring_id) { in LoadKeyFromVerifiedPartitions() argument 59 LoadKeyFromDirectory(keyring_id, "fsv_system", "/system/etc/security/fsverity"); in LoadKeyFromVerifiedPartitions() 60 LoadKeyFromDirectory(keyring_id, "fsv_product", "/product/etc/security/fsverity"); in LoadKeyFromVerifiedPartitions() 64 key_serial_t keyring_id = android::GetKeyringId(".fs-verity"); in main() local 65 if (keyring_id < 0) { in main() 76 LoadKeyFromVerifiedPartitions(keyring_id); in main() [all …]
|
/system/core/libkeyutils/mini_keyctl/ |
D | mini_keyctl_utils.cpp | 47 key_serial_t keyring_id; in GetKeyringId() local 48 if (android::base::ParseInt(keyring_desc.c_str(), &keyring_id)) { in GetKeyringId() 49 return keyring_id; in GetKeyringId() 74 if (!android::base::ParseInt(key_id.c_str(), &keyring_id)) { in GetKeyringId() 78 return keyring_id; in GetKeyringId()
|
D | mini_keyctl.cpp | 58 key_serial_t keyring_id = android::GetKeyringId(keyring); in Unlink() local 59 if (keyctl_unlink(key, keyring_id) < 0) { in Unlink() 73 key_serial_t keyring_id = android::GetKeyringId(keyring); in Add() local 74 key_serial_t key = add_key(type.c_str(), desc.c_str(), data.c_str(), data.size(), keyring_id); in Add() 86 key_serial_t keyring_id = android::GetKeyringId(keyring); in Padd() local 97 key_serial_t key = add_key(type.c_str(), desc.c_str(), data.c_str(), data.size(), keyring_id); in Padd() 109 key_serial_t keyring_id = android::GetKeyringId(keyring); in RestrictKeyring() local 110 if (keyctl_restrict_keyring(keyring_id, nullptr, nullptr) < 0) { in RestrictKeyring()
|