Lines Matching refs:key

2  * \brief WEP broadcast key derivation implementation.
43 * MODULE: WEP broadcast key derivation *
44 * PURPOSE: WEP broadcast key derivation *
64 * TKIP key derivation init function:
66 * - Resets the key material in the system control block
92 * TKIP key derivation function:
93 * - Decodes the key material.
94 * - Distribute the decoded key material to the driver.
98 * I - p - Pointer to the encoded key material.
108 securityKeys_t key;
116 key.keyType = TKIP_KEY;
117 key.keyIndex = (UINT8)pEncodedKey->keyId;
118 key.encLen = KEY_DERIVE_TKIP_ENC_LEN;
124 ("KEY_DERIVE_TKIP: ERROR: wrong key length %d !!!\n", key.encLen));
129 /* Copy encryption key */
130 os_memoryCopy(pKeyDerive->hOs, (void *)key.encKey, (void *)keyMaterialTkip->encKey, KEY_DERIVE_TKIP_ENC_LEN);
133 os_memoryCopy(pKeyDerive->hOs, (void *)key.micTxKey, (void *)keyMaterialTkip->micRxKey, KEY_DERIVE_TKIP_MIC_LEN);
135 os_memoryCopy(pKeyDerive->hOs, (void *)key.micRxKey, (void *)keyMaterialTkip->micTxKey, KEY_DERIVE_TKIP_MIC_LEN);
139 os_memoryCopy(pKeyDerive->hOs, (void *)key.micRxKey, (void *)keyMaterialTkip->micRxKey, KEY_DERIVE_TKIP_MIC_LEN);
141 os_memoryCopy(pKeyDerive->hOs, (void *)key.micTxKey, (void *)keyMaterialTkip->micTxKey, KEY_DERIVE_TKIP_MIC_LEN);
144 /* Copy MAC address key */
145 os_memoryCopy(pKeyDerive->hOs, (void *)key.macAddress.addr, (void *)keyMaterialTkip->macAddress, MAC_ADDR_LEN);
147 os_memoryCopy(pKeyDerive->hOs, (void *)key.keyRsc, (void *)keyMaterialTkip->keyRSC, KEY_RSC_LEN);
150 status = pKeyDerive->pMainKeys->setKey(pKeyDerive->pMainKeys, &key);
153 os_memoryCopy(pKeyDerive->hOs, &pKeyDerive->key, pEncodedKey, sizeof(encodedKeyMaterial_t));
165 * WEP broadcast key removal function:
166 * - Remove the key material from the driver.
180 securityKeys_t key;
182 os_memoryZero(pKeyDerive->hOs, &key, sizeof(securityKeys_t));
183 key.keyType = TKIP_KEY;
184 key.keyIndex = (UINT8)pEncodedKey->keyId;
185 key.encLen = KEY_DERIVE_TKIP_ENC_LEN;
186 os_memoryCopy(pKeyDerive->hOs, (void *)key.macAddress.addr, pEncodedKey->pData, MAC_ADDR_LEN);
188 status = pKeyDerive->pMainKeys->removeKey(pKeyDerive->pMainKeys, &key);
191 os_memoryZero(pKeyDerive->hOs, &pKeyDerive->key, sizeof(encodedKeyMaterial_t));