Lines Matching refs:t
334 struct secaeskeytoken *t = (struct secaeskeytoken *)seckey; in pkey_verifykey() local
345 *pkeysize = t->bitsize; in pkey_verifykey()
457 static int nonccatokaes2pkey(const struct clearkeytoken *t, in nonccatokaes2pkey() argument
465 keysize = pkey_keytype_aes_to_size(t->keytype); in nonccatokaes2pkey()
468 __func__, t->keytype); in nonccatokaes2pkey()
471 if (t->len != keysize) { in nonccatokaes2pkey()
473 __func__, t->len); in nonccatokaes2pkey()
478 rc = pkey_clr2protkey(t->keytype, t->clearkey, in nonccatokaes2pkey()
488 rc = cca_clr2seckey(0xFFFF, 0xFFFF, t->keytype, t->clearkey, tmpbuf); in nonccatokaes2pkey()
498 rc = pkey_clr2ep11key(t->clearkey, t->len, in nonccatokaes2pkey()
516 static int nonccatokecc2pkey(const struct clearkeytoken *t, in nonccatokecc2pkey() argument
522 switch (t->keytype) { in nonccatokecc2pkey()
540 __func__, t->keytype); in nonccatokecc2pkey()
544 if (t->len != keylen) { in nonccatokecc2pkey()
546 __func__, t->len); in nonccatokecc2pkey()
551 rc = pkey_clr2protkey(t->keytype, t->clearkey, in nonccatokecc2pkey()
572 struct protaeskeytoken *t; in pkey_nonccatok2pkey() local
576 t = (struct protaeskeytoken *)key; in pkey_nonccatok2pkey()
577 rc = pkey_verifyprotkey(t->protkey, t->len, t->keytype); in pkey_nonccatok2pkey()
580 memcpy(protkey, t->protkey, t->len); in pkey_nonccatok2pkey()
581 *protkeylen = t->len; in pkey_nonccatok2pkey()
582 *protkeytype = t->keytype; in pkey_nonccatok2pkey()
586 struct clearkeytoken *t = (struct clearkeytoken *)key; in pkey_nonccatok2pkey() local
589 keylen != sizeof(*t) + t->len) in pkey_nonccatok2pkey()
591 switch (t->keytype) { in pkey_nonccatok2pkey()
595 rc = nonccatokaes2pkey(t, protkey, in pkey_nonccatok2pkey()
603 rc = nonccatokecc2pkey(t, protkey, in pkey_nonccatok2pkey()
608 __func__, t->keytype); in pkey_nonccatok2pkey()
840 struct secaeskeytoken *t = (struct secaeskeytoken *)key; in pkey_verifykey2() local
848 *ksize = (enum pkey_key_size)t->bitsize; in pkey_verifykey2()
851 ZCRYPT_CEX3C, AES_MK_SET, t->mkvp, 0, 1); in pkey_verifykey2()
858 0, t->mkvp, 1); in pkey_verifykey2()
870 struct cipherkeytoken *t = (struct cipherkeytoken *)key; in pkey_verifykey2() local
879 if (!t->plfver && t->wpllen == 512) in pkey_verifykey2()
881 else if (!t->plfver && t->wpllen == 576) in pkey_verifykey2()
883 else if (!t->plfver && t->wpllen == 640) in pkey_verifykey2()
888 ZCRYPT_CEX6, AES_MK_SET, t->mkvp0, 0, 1); in pkey_verifykey2()
895 0, t->mkvp0, 1); in pkey_verifykey2()
1093 struct secaeskeytoken *t = (struct secaeskeytoken *)key; in pkey_apqns4key() local
1096 cur_mkvp = t->mkvp; in pkey_apqns4key()
1098 old_mkvp = t->mkvp; in pkey_apqns4key()
1100 struct cipherkeytoken *t = (struct cipherkeytoken *)key; in pkey_apqns4key() local
1104 cur_mkvp = t->mkvp0; in pkey_apqns4key()
1106 old_mkvp = t->mkvp0; in pkey_apqns4key()
1117 struct eccprivkeytoken *t = (struct eccprivkeytoken *)key; in pkey_apqns4key() local
1120 if (t->secid == 0x20) { in pkey_apqns4key()
1122 cur_mkvp = t->mkvp; in pkey_apqns4key()
1124 old_mkvp = t->mkvp; in pkey_apqns4key()