Lines Matching refs:apqns
74 struct pkey_apqn *apqns, size_t *nr_apqns) in ep11_apqns4key() argument
130 if (apqns) { in ep11_apqns4key()
134 memcpy(apqns, _apqns, _nr_apqns * sizeof(u32)); in ep11_apqns4key()
146 struct pkey_apqn *apqns, size_t *nr_apqns) in ep11_apqns4type() argument
173 if (apqns) { in ep11_apqns4type()
177 memcpy(apqns, _apqns, _nr_apqns * sizeof(u32)); in ep11_apqns4type()
187 static int ep11_key2protkey(const struct pkey_apqn *apqns, size_t nr_apqns, in ep11_key2protkey() argument
226 if (!apqns || (nr_apqns == 1 && in ep11_key2protkey()
227 apqns[0].card == 0xFFFF && apqns[0].domain == 0xFFFF)) { in ep11_key2protkey()
236 apqns = local_apqns; in ep11_key2protkey()
243 rc = ep11_kblob2protkey(apqns[i].card, apqns[i].domain, in ep11_key2protkey()
249 rc = ep11_kblob2protkey(apqns[i].card, apqns[i].domain, in ep11_key2protkey()
255 rc = ep11_kblob2protkey(apqns[i].card, apqns[i].domain, in ep11_key2protkey()
279 static int ep11_gen_key(const struct pkey_apqn *apqns, size_t nr_apqns, in ep11_gen_key() argument
317 if (!apqns || (nr_apqns == 1 && in ep11_gen_key()
318 apqns[0].card == 0xFFFF && apqns[0].domain == 0xFFFF)) { in ep11_gen_key()
328 apqns = local_apqns; in ep11_gen_key()
332 rc = ep11_genaeskey(apqns[i].card, apqns[i].domain, in ep11_gen_key()
352 static int ep11_clr2key(const struct pkey_apqn *apqns, size_t nr_apqns, in ep11_clr2key() argument
396 if (!apqns || (nr_apqns == 1 && in ep11_clr2key()
397 apqns[0].card == 0xFFFF && apqns[0].domain == 0xFFFF)) { in ep11_clr2key()
407 apqns = local_apqns; in ep11_clr2key()
411 rc = ep11_clr2keyblob(apqns[i].card, apqns[i].domain, in ep11_clr2key()
427 u32 nr_apqns, *apqns = NULL; in ep11_verifykey() local
447 rc = ep11_findcard2(&apqns, &nr_apqns, *card, *dom, in ep11_verifykey()
455 *card = ((struct pkey_apqn *)apqns)->card; in ep11_verifykey()
456 *dom = ((struct pkey_apqn *)apqns)->domain; in ep11_verifykey()
471 rc = ep11_findcard2(&apqns, &nr_apqns, *card, *dom, in ep11_verifykey()
479 *card = ((struct pkey_apqn *)apqns)->card; in ep11_verifykey()
480 *dom = ((struct pkey_apqn *)apqns)->domain; in ep11_verifykey()
488 kfree(apqns); in ep11_verifykey()
500 static int ep11_slowpath_key2protkey(const struct pkey_apqn *apqns, in ep11_slowpath_key2protkey() argument