Lines Matching refs:keys
22 * We give each process its own keys, which are shared by all threads. The keys
37 static inline void ptrauth_keys_init_user(struct ptrauth_keys_user *keys)
40 get_random_bytes(&keys->apia, sizeof(keys->apia));
41 get_random_bytes(&keys->apib, sizeof(keys->apib));
42 get_random_bytes(&keys->apda, sizeof(keys->apda));
43 get_random_bytes(&keys->apdb, sizeof(keys->apdb));
47 get_random_bytes(&keys->apga, sizeof(keys->apga));
57 static __always_inline void ptrauth_keys_init_kernel(struct ptrauth_keys_kernel *keys)
60 get_random_bytes(&keys->apia, sizeof(keys->apia));
63 static __always_inline void ptrauth_keys_switch_kernel(struct ptrauth_keys_kernel *keys)
68 __ptrauth_key_install_nosync(APIA, keys->apia);