Lines Matching refs:crypt

80 	memcpy(psta->x_UncstKey.skey, param->u.crypt.key,
81 (param->u.crypt. key_len > 16 ? 16 : param->u.crypt.key_len));
82 if (strcmp(param->u.crypt.alg, "TKIP") == 0) { /* set mic key */
84 &param->u.crypt.key[16], 8);
86 &param->u.crypt.key[24], 8);
101 if (param->u.crypt.idx > 0 &&
102 param->u.crypt.idx < 3) {
104 memcpy(gk[param->u.crypt.idx - 1].skey,
105 param->u.crypt.key,
106 (param->u.crypt.key_len > 16 ? 16 :
107 param->u.crypt.key_len));
108 memcpy(gtk[param->u.crypt.idx - 1].skey,
109 &param->u.crypt.key[16], 8);
110 memcpy(grk[param->u.crypt.idx - 1].skey,
111 &param->u.crypt.key[24], 8);
113 r8712_set_key(padapter, &padapter->securitypriv, param->u.crypt.idx);
357 param->u.crypt.err = 0;
358 param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0';
359 if (param_len != (u32)((u8 *) param->u.crypt.key - (u8 *)param) +
360 param->u.crypt.key_len)
365 if (param->u.crypt.idx >= WEP_KEYS) {
367 param->u.crypt.idx = 0;
369 if (strcmp(param->u.crypt.alg, "WEP") == 0) {
370 netdev_info(dev, "r8712u: %s: crypt.alg = WEP\n", __func__);
375 wep_key_idx = param->u.crypt.idx;
376 wep_key_len = param->u.crypt.key_len;
395 memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength);
396 if (param->u.crypt.set_tx) {
433 if (param->u.crypt.set_tx == 1)
1730 strscpy((char *)param->u.crypt.alg, alg_name, IEEE_CRYPT_ALG_NAME_LEN);
1732 param->u.crypt.set_tx = 0;
1734 param->u.crypt.set_tx = 1;
1735 param->u.crypt.idx = (pencoding->flags & 0x00FF) - 1;
1737 memcpy(param->u.crypt.seq, pext->rx_seq, 8);
1739 param->u.crypt.key_len = pext->key_len;