Lines Matching refs:t

56 	struct secaeskeytoken *t = (struct secaeskeytoken *)token;  in cca_check_secaeskeytoken()  local
60 if (t->type != TOKTYPE_CCA_INTERNAL) { in cca_check_secaeskeytoken()
63 __func__, (int)t->type, TOKTYPE_CCA_INTERNAL); in cca_check_secaeskeytoken()
66 if (t->version != TOKVER_CCA_AES) { in cca_check_secaeskeytoken()
69 __func__, (int)t->version, TOKVER_CCA_AES); in cca_check_secaeskeytoken()
72 if (keybitsize > 0 && t->bitsize != keybitsize) { in cca_check_secaeskeytoken()
75 __func__, (int)t->bitsize, keybitsize); in cca_check_secaeskeytoken()
96 struct cipherkeytoken *t = (struct cipherkeytoken *)token; in cca_check_secaescipherkey() local
101 if (t->type != TOKTYPE_CCA_INTERNAL) { in cca_check_secaescipherkey()
104 __func__, (int)t->type, TOKTYPE_CCA_INTERNAL); in cca_check_secaescipherkey()
107 if (t->version != TOKVER_CCA_VLSC) { in cca_check_secaescipherkey()
110 __func__, (int)t->version, TOKVER_CCA_VLSC); in cca_check_secaescipherkey()
113 if (t->algtype != 0x02) { in cca_check_secaescipherkey()
116 __func__, (int)t->algtype); in cca_check_secaescipherkey()
119 if (t->keytype != 0x0001) { in cca_check_secaescipherkey()
122 __func__, (int)t->keytype); in cca_check_secaescipherkey()
125 if (t->plfver != 0x00 && t->plfver != 0x01) { in cca_check_secaescipherkey()
128 __func__, (int)t->plfver); in cca_check_secaescipherkey()
131 if (t->wpllen != 512 && t->wpllen != 576 && t->wpllen != 640) { in cca_check_secaescipherkey()
134 __func__, (int)t->wpllen); in cca_check_secaescipherkey()
140 if (t->wpllen != (t->plfver ? 640 : 512)) in cca_check_secaescipherkey()
144 if (t->wpllen != (t->plfver ? 640 : 576)) in cca_check_secaescipherkey()
148 if (t->wpllen != 640) in cca_check_secaescipherkey()
162 if (checkcpacfexport && !(t->kmf1 & KMF1_XPRT_CPAC)) { in cca_check_secaescipherkey()
183 struct eccprivkeytoken *t = (struct eccprivkeytoken *)token; in cca_check_sececckeytoken() local
187 if (t->type != TOKTYPE_CCA_INTERNAL_PKA) { in cca_check_sececckeytoken()
190 __func__, (int)t->type, TOKTYPE_CCA_INTERNAL_PKA); in cca_check_sececckeytoken()
193 if (t->len > keysize) { in cca_check_sececckeytoken()
196 __func__, (int)t->len, keysize); in cca_check_sececckeytoken()
199 if (t->secid != 0x20) { in cca_check_sececckeytoken()
202 __func__, (int)t->secid); in cca_check_sececckeytoken()
205 if (checkcpacfexport && !(t->kutc & 0x01)) { in cca_check_sececckeytoken()
818 struct cipherkeytoken *t; in cca_gencipherkey() local
872 t = (struct cipherkeytoken *)preqparm->kb.tlv3.gen_key_id_1; in cca_gencipherkey()
873 t->kmf1 |= (u16)(keygenflags & 0x0000FF00); in cca_gencipherkey()
874 t->kmf1 &= (u16)~(keygenflags & 0x000000FF); in cca_gencipherkey()
924 t = (struct cipherkeytoken *)prepparm->kb.tlv1.gen_key; in cca_gencipherkey()
926 if (*keybufsize >= t->len) in cca_gencipherkey()
927 memcpy(keybuf, t, t->len); in cca_gencipherkey()
931 *keybufsize = t->len; in cca_gencipherkey()
996 struct cipherkeytoken *t; in _ip_cprb_helper() local
1085 t = (struct cipherkeytoken *)prepparm->kb.tlv1.key_token; in _ip_cprb_helper()
1086 memcpy(key_token, t, t->len); in _ip_cprb_helper()
1087 *key_token_size = t->len; in _ip_cprb_helper()
1104 struct cipherkeytoken *t; in cca_clr2cipherkey() local
1120 t = (struct cipherkeytoken *)token; in cca_clr2cipherkey()
1121 t->kmf1 |= (u16)(keygenflags & 0x0000FF00); in cca_clr2cipherkey()
1122 t->kmf1 &= (u16)~(keygenflags & 0x000000FF); in cca_clr2cipherkey()