Lines Matching refs:pkey
131 const struct public_key *pkey; in restrict_link_by_ca() local
136 pkey = payload->data[asym_crypto]; in restrict_link_by_ca()
137 if (!pkey) in restrict_link_by_ca()
139 if (!test_bit(KEY_EFLAG_CA, &pkey->key_eflags)) in restrict_link_by_ca()
141 if (!test_bit(KEY_EFLAG_KEYCERTSIGN, &pkey->key_eflags)) in restrict_link_by_ca()
145 if (test_bit(KEY_EFLAG_DIGITALSIG, &pkey->key_eflags)) in restrict_link_by_ca()
172 const struct public_key *pkey; in restrict_link_by_digsig() local
177 pkey = payload->data[asym_crypto]; in restrict_link_by_digsig()
179 if (!pkey) in restrict_link_by_digsig()
182 if (!test_bit(KEY_EFLAG_DIGITALSIG, &pkey->key_eflags)) in restrict_link_by_digsig()
185 if (test_bit(KEY_EFLAG_CA, &pkey->key_eflags)) in restrict_link_by_digsig()
188 if (test_bit(KEY_EFLAG_KEYCERTSIGN, &pkey->key_eflags)) in restrict_link_by_digsig()