Lines Matching refs:keyring
22 static struct key *keyring[INTEGRITY_KEYRING_MAX]; variable
46 if (!keyring[id]) { in integrity_keyring_from_id()
47 keyring[id] = in integrity_keyring_from_id()
49 if (IS_ERR(keyring[id])) { in integrity_keyring_from_id()
50 int err = PTR_ERR(keyring[id]); in integrity_keyring_from_id()
52 keyring[id] = NULL; in integrity_keyring_from_id()
57 return keyring[id]; in integrity_keyring_from_id()
63 struct key *keyring; in integrity_digsig_verify() local
68 keyring = integrity_keyring_from_id(id); in integrity_digsig_verify()
69 if (IS_ERR(keyring)) in integrity_digsig_verify()
70 return PTR_ERR(keyring); in integrity_digsig_verify()
75 return digsig_verify(keyring, sig + 1, siglen - 1, digest, in integrity_digsig_verify()
78 return asymmetric_verify(keyring, sig, siglen, digest, in integrity_digsig_verify()
87 struct key *keyring; in integrity_modsig_verify() local
89 keyring = integrity_keyring_from_id(id); in integrity_modsig_verify()
90 if (IS_ERR(keyring)) in integrity_modsig_verify()
91 return PTR_ERR(keyring); in integrity_modsig_verify()
93 return ima_modsig_verify(keyring, modsig); in integrity_modsig_verify()
103 keyring[id] = keyring_alloc(keyring_name[id], KUIDT_INIT(0), in __integrity_init_keyring()
106 if (IS_ERR(keyring[id])) { in __integrity_init_keyring()
107 err = PTR_ERR(keyring[id]); in __integrity_init_keyring()
110 keyring[id] = NULL; in __integrity_init_keyring()
113 set_platform_trusted_keys(keyring[id]); in __integrity_init_keyring()
115 load_module_cert(keyring[id]); in __integrity_init_keyring()
154 if (!keyring[id]) in integrity_add_key()
157 key = key_create_or_update(make_key_ref(keyring[id], 1), "asymmetric", in integrity_add_key()