Home
last modified time | relevance | path

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

/system/core/libkeyutils/include/
Dkeyutils.h38 typedef int32_t key_serial_t; typedef
40 key_serial_t add_key(const char* type, const char* description, const void* payload,
41 size_t payload_length, key_serial_t ring_id);
43 key_serial_t keyctl_get_keyring_ID(key_serial_t id, int create);
45 long keyctl_revoke(key_serial_t id); /* TODO: remove this */
47 long keyctl_search(key_serial_t ring_id, const char* type, const char* description,
48 key_serial_t dest_ring_id);
50 long keyctl_setperm(key_serial_t id, int permissions);
52 long keyctl_unlink(key_serial_t key, key_serial_t keyring);
54 long keyctl_restrict_keyring(key_serial_t keyring, const char* type, const char* restriction);
[all …]
/system/core/libkeyutils/
Dkeyutils.cpp37 key_serial_t add_key(const char* type, const char* description, const void* payload, in add_key()
38 size_t payload_length, key_serial_t ring_id) { in add_key()
42 key_serial_t keyctl_get_keyring_ID(key_serial_t id, int create) { in keyctl_get_keyring_ID()
46 long keyctl_revoke(key_serial_t id) { in keyctl_revoke()
50 long keyctl_search(key_serial_t ring_id, const char* type, const char* description, in keyctl_search()
51 key_serial_t dest_ring_id) { in keyctl_search()
55 long keyctl_setperm(key_serial_t id, int permissions) { in keyctl_setperm()
59 long keyctl_unlink(key_serial_t key, key_serial_t keyring) { in keyctl_unlink()
63 long keyctl_restrict_keyring(key_serial_t keyring, const char* type, const char* restriction) { in keyctl_restrict_keyring()
67 long keyctl_get_security(key_serial_t id, char* buffer, size_t buflen) { in keyctl_get_security()
Dkeyutils_test.cpp37 ASSERT_EQ(4U, sizeof(key_serial_t)); in TEST()
/system/core/libkeyutils/mini_keyctl/
Dmini_keyctl.cpp49 static key_serial_t parseKeyOrDie(const char* str) { in parseKeyOrDie()
50 key_serial_t key; in parseKeyOrDie()
57 int Unlink(key_serial_t key, const std::string& keyring) { in Unlink()
58 key_serial_t keyring_id = android::GetKeyringId(keyring); in Unlink()
73 key_serial_t keyring_id = android::GetKeyringId(keyring); in Add()
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()
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()
117 std::string RetrieveSecurityContext(key_serial_t key) { in RetrieveSecurityContext()
[all …]
Dmini_keyctl_utils.cpp45 key_serial_t GetKeyringId(const std::string& keyring_desc) { in GetKeyringId()
47 key_serial_t keyring_id; in GetKeyringId()
Dmini_keyctl_utils.h25 key_serial_t GetKeyringId(const std::string& keyring_desc);
/system/security/fsverity_init/
Dfsverity_init.cpp31 bool LoadKeyToKeyring(key_serial_t keyring_id, const char* desc, const char* data, size_t size) { in LoadKeyToKeyring()
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()
56 void LoadKeyFromVerifiedPartitions(key_serial_t keyring_id) { in LoadKeyFromVerifiedPartitions()
64 key_serial_t keyring_id = android::GetKeyringId(".fs-verity"); in main()
/system/vold/
DKeyUtil.cpp147 static bool fscryptKeyring(key_serial_t* device_keyring) { in fscryptKeyring()
163 key_serial_t device_keyring; in installKeyLegacy()
167 key_serial_t key_id = in installKeyLegacy()
184 key_serial_t device_keyring; in installProvisioningKey()
194 key_serial_t key_id = add_key("fscrypt-provisioning", ref.c_str(), (void*)&provisioning_key, in installProvisioningKey()
314 key_serial_t device_keyring; in evictKeyLegacy()
336 key_serial_t device_keyring; in evictProvisioningKey()
412 key_serial_t device_keyring; in reloadKeyFromSessionKeyring()
/system/core/init/
Dfscrypt_init_extensions.cpp49 key_serial_t device_keyring = add_key("keyring", "fscrypt", 0, 0, KEY_SPEC_SESSION_KEYRING); in FscryptInstallKeyring()