/system/wlan/ti/sta_dk_4_0_4_32/common/src/hal/security/ |
H A D | whalWep.c | 101 int whalWep_KeyAdd (TI_HANDLE hWhalWep, securityKeys_t* pKey, void *CB_Func, TI_HANDLE CB_handle) argument 106 if (pKey->keyType != WEP_KEY) 110 if ( MAC_NULL(&pKey->macAddress) ) 113 return (whal_hwCtrl_WepDefaultKeyAdd (pWhalWep->pWhalCtrl->pHwCtrl, pKey, CB_Func, CB_handle)); 117 return (whal_hwCtrl_WepMappingKeyAdd (pWhalWep->pWhalCtrl->pHwCtrl, pKey, CB_Func, CB_handle)); 131 int whalWep_KeyRemove (TI_HANDLE hWhalWep, securityKeys_t* pKey, void *CB_Func, TI_HANDLE CB_handle) argument 136 if (pKey->keyType != WEP_KEY) 140 if ( MAC_NULL(&pKey->macAddress) ) 142 return (whal_hwCtrl_WepDefaultKeyRemove (pWhalWep->pWhalCtrl->pHwCtrl, pKey, CB_Func, CB_handle)); 146 return (whal_hwCtrl_WepMappingKeyRemove (pWhalWep->pWhalCtrl->pHwCtrl, pKey, CB_Fun [all...] |
H A D | whalWpa.c | 208 int whalWpa_KeyAdd (TI_HANDLE hWhalWpa, securityKeys_t* pKey, void *CB_Func, TI_HANDLE CB_handle) argument 213 switch (pKey->keyType) 217 return (whal_hwCtrl_WepDefaultKeyAdd (pWhalWpa->pWhalCtrl->pHwCtrl, pKey, CB_Func, CB_handle)); 221 if (whal_hwCtrl_TkipMicMappingKeyAdd (pWhalWpa->pWhalCtrl->pHwCtrl, pKey, CB_Func, CB_handle) != OK) 227 if (whal_hwCtrl_AesMappingKeyAdd (pWhalWpa->pWhalCtrl->pHwCtrl, pKey, CB_Func, CB_handle) != OK) 237 if(!MAC_BROADCAST((&pKey->macAddress))) 239 pWhalWpa->currTxKeyType = pKey->keyType; 255 int whalWpa_KeyRemove (TI_HANDLE hWhalWpa, securityKeys_t* pKey, void *CB_Func, TI_HANDLE CB_handle) argument 260 switch (pKey->keyType) 264 return (whal_hwCtrl_WepDefaultKeyRemove (pWhalWpa->pWhalCtrl->pHwCtrl, pKey, CB_Fun [all...] |
H A D | whalSecurity.c | 167 int whalSecur_KeyAdd (TI_HANDLE hWhalSecur, securityKeys_t* pKey, BOOL reconfFlag, void *CB_Func, TI_HANDLE CB_handle) argument 170 UINT8 keyIdx = (UINT8)pKey->keyIndex; 179 pKey->keyIndex, (pWhalSecur->numOfStations)*NO_OF_RECONF_SECUR_KEYS_PER_STATION+NO_OF_EXTRA_RECONF_SECUR_KEYS-1)); 184 if (pKey->keyType == NULL_KEY) 194 (void *)pKey, sizeof(securityKeys_t)); 201 return (whalWep_KeyAdd (pWhalSecur->pWhalWep, pKey, CB_Func, CB_handle)); 205 return (whalWpa_KeyAdd (pWhalSecur->pWhalWpa, pKey, CB_Func, CB_handle)); 223 int whalSecur_KeyRemove (TI_HANDLE hWhalSecur, securityKeys_t* pKey, BOOL reconfFlag, void *CB_Func, TI_HANDLE CB_handle) argument 231 return (whalWep_KeyRemove (pWhalSecur->pWhalWep, pKey, CB_Func, CB_handle)); 235 return (whalWpa_KeyRemove (pWhalSecur->pWhalWpa, pKey, CB_Fun [all...] |
/system/wlan/ti/sta_dk_4_0_4_32/common/src/core/rsn/ |
H A D | mainSecSm.c | 92 TI_STATUS mainSec_setKey(struct _mainSec_t *pMainSec, securityKeys_t *pKey); 93 TI_STATUS mainSec_removeKey(struct _mainSec_t *pMainSec, securityKeys_t *pKey); 291 TI_STATUS mainSec_setKey(struct _mainSec_t *pMainSec, securityKeys_t *pKey) argument 295 if ((pMainSec == NULL) || (pKey == NULL)) 300 if (pKey->keyType != NULL_KEY) 304 pKey->keyIndex, (UINT8)pKey->encKey[0], 305 (UINT8)pKey->encKey[1], 306 (UINT8)pKey->encKey[2], 307 (UINT8)pKey 334 mainSec_removeKey(struct _mainSec_t *pMainSec, securityKeys_t *pKey) argument [all...] |
H A D | mainSecKeysOnly.c | 274 TI_STATUS mainSecKeysOnly_setSessionKey(mainSec_t *pMainSec, UINT8* pKey, UINT8 keyLen) argument 276 os_memoryCopy(pMainSec->hOs, pMainSec->sessionKey, pKey, keyLen); 300 TI_STATUS mainSecKeysOnly_getSessionKey(mainSec_t *pMainSec, UINT8* pKey, UINT32* pKeyLen) argument 302 os_memoryCopy(pMainSec->hOs, pKey, pMainSec->sessionKey, pMainSec->sessionKeyLen);
|
H A D | mainKeysSm.c | 522 TI_STATUS mainKeys_setKey(struct _mainKeys_t *pMainKeys, securityKeys_t *pKey) argument 524 return (pMainKeys->pParent->setKey(pMainKeys->pParent, pKey)); 543 TI_STATUS mainKeys_removeKey(struct _mainKeys_t *pMainKeys, securityKeys_t *pKey) argument 545 return (pMainKeys->pParent->removeKey(pMainKeys->pParent, pKey)); 585 TI_STATUS mainKeys_getSessionKey(struct _mainKeys_t *pMainKeys, UINT8 *pKey, UINT32 *pKeyLen) argument 589 status = pMainKeys->pParent->getSessionKey(pMainKeys->pParent, pKey, pKeyLen);
|
H A D | rsn.c | 1502 TI_STATUS rsn_setKey (rsn_t *pRsn, securityKeys_t *pKey) argument 1510 keyIndex = (UINT8)pKey->keyIndex; 1511 if ((pRsn == NULL) || (pKey == NULL) || (keyIndex >= MAX_KEYS_NUM)) 1520 if (pKey->keyType == WEP_KEY) 1522 os_memoryZero(pRsn->hOs,(void*)pKey->macAddress.addr, 1526 if (pKey->keyType != NULL_KEY) 1530 if (!MAC_BROADCAST((&pKey->macAddress))) 1533 switch (pKey->keyType) 1551 macIsBroadcast = MAC_BROADCAST((&pKey->macAddress)); 1558 pRsn->keys[keyIndex].keyType = pKey 1604 rsn_removeKey(rsn_t *pRsn, securityKeys_t *pKey) argument [all...] |
/system/media/opensles/libopensles/ |
H A D | IMetadataExtraction.c | 56 SLuint32 index, SLuint32 keySize, SLMetadataInfo *pKey) 61 if (NULL == pKey) { 69 *pKey = key; 117 SLuint32 keySize, const void *pKey, SLuint32 keyEncoding, 122 if (NULL == pKey || NULL == pValueLangCountry || (filterMask & ~(SL_METADATA_FILTER_KEY | 129 this->mKey = pKey; 55 IMetadataExtraction_GetKey(SLMetadataExtractionItf self, SLuint32 index, SLuint32 keySize, SLMetadataInfo *pKey) argument 116 IMetadataExtraction_AddKeyFilter(SLMetadataExtractionItf self, SLuint32 keySize, const void *pKey, SLuint32 keyEncoding, const SLchar *pValueLangCountry, SLuint32 valueEncoding, SLuint8 filterMask) argument
|
/system/wlan/ti/wilink_6_1/stad/src/Connection_Managment/ |
H A D | mainSecSm.c | 84 TI_STATUS mainSec_setKey(struct _mainSec_t *pMainSec, TSecurityKeys *pKey); 85 TI_STATUS mainSec_removeKey(struct _mainSec_t *pMainSec, TSecurityKeys *pKey); 306 TI_STATUS mainSec_setKey(struct _mainSec_t *pMainSec, TSecurityKeys *pKey) argument 310 if ((pMainSec == NULL) || (pKey == NULL)) 315 if (pKey->keyType != KEY_NULL) 317 TRACE6(pMainSec->hReport, REPORT_SEVERITY_INFORMATION, "MAIN_SEC_SM: setting key #%d, value = 0x%X 0x%X 0x%X 0x%X 0x%X\n", pKey->keyIndex, (TI_UINT8)pKey->encKey[0], (TI_UINT8)pKey->encKey[1], (TI_UINT8)pKey->encKey[2], (TI_UINT8)pKey 343 mainSec_removeKey(struct _mainSec_t *pMainSec, TSecurityKeys *pKey) argument [all...] |
H A D | mainSecKeysOnly.c | 264 TI_STATUS mainSecKeysOnly_setSessionKey(mainSec_t *pMainSec, TI_UINT8* pKey, TI_UINT8 keyLen) argument 266 os_memoryCopy(pMainSec->hOs, pMainSec->sessionKey, pKey, keyLen); 290 TI_STATUS mainSecKeysOnly_getSessionKey(mainSec_t *pMainSec, TI_UINT8* pKey, TI_UINT32* pKeyLen) argument 292 os_memoryCopy(pMainSec->hOs, pKey, pMainSec->sessionKey, pMainSec->sessionKeyLen);
|
H A D | mainKeysSm.c | 515 TI_STATUS mainKeys_setKey(struct _mainKeys_t *pMainKeys, TSecurityKeys *pKey) argument 517 return (pMainKeys->pParent->setKey(pMainKeys->pParent, pKey)); 536 TI_STATUS mainKeys_removeKey(struct _mainKeys_t *pMainKeys, TSecurityKeys *pKey) argument 538 return (pMainKeys->pParent->removeKey(pMainKeys->pParent, pKey)); 578 TI_STATUS mainKeys_getSessionKey(struct _mainKeys_t *pMainKeys, TI_UINT8 *pKey, TI_UINT32 *pKeyLen) argument 582 status = pMainKeys->pParent->getSessionKey(pMainKeys->pParent, pKey, pKeyLen);
|
H A D | rsn.c | 1476 TI_STATUS rsn_setKey (rsn_t *pRsn, TSecurityKeys *pKey) argument 1483 if (pRsn == NULL || pKey == NULL) 1488 keyIndex = (TI_UINT8)pKey->keyIndex; 1494 if (pKey->keyType != KEY_NULL) 1498 if (!MAC_BROADCAST(pKey->macAddress)) 1502 switch (pKey->keyType) 1521 macIsBroadcast = MAC_BROADCAST (pKey->macAddress); 1529 pRsn->keys[keyIndex].keyType = pKey->keyType; 1533 tTwdParam.content.configureCmdCBParams.pCb = (TI_UINT8*) pKey; 1570 TRACE3(pRsn->hReport, REPORT_SEVERITY_INFORMATION, "RSN: rsn_setKey, KeyType=%d, KeyId = 0x%lx,encLen=0x%x\n", pKey 1592 rsn_removeKey(rsn_t *pRsn, TSecurityKeys *pKey) argument [all...] |
/system/wlan/ti/wilink_6_1/CUDK/configurationutility/src/ |
H A D | cu_common.c | 305 S32 CuCommon_AddKey(THandle hCuCommon, OS_802_11_WEP* pKey) argument 313 key.Length = pKey->Length; 314 key.KeyIndex = (pKey->KeyIndex & 0x80000000) | (pKey->KeyIndex & 0x3FFFFFFF); 315 key.KeyLength = pKey->KeyLength; 316 os_memcpy(key.KeyMaterial, pKey->KeyMaterial, pKey->KeyLength);
|
H A D | wpa_core.c | 378 S32 WpaCore_AddKey(THandle hWpaCore, OS_802_11_WEP* pKey) argument 383 WepKeyIndx = pKey->KeyIndex & 0x7FFFFFFF; 385 if ((pKey->KeyIndex & 0x80000000) == 0x80000000) 394 pWpaCore->WpaSupplParams.wep_key_length = pKey->KeyLength; 398 if (pWpaCore->WpaSupplParams.wep_key_length != pKey->KeyLength) return ECUERR_WPA_CORE_ERROR_KEY_LEN_MUST_BE_SAME; 401 os_memcpy(&pWpaCore->WpaSupplParams.wep_key[WepKeyIndx][0], pKey->KeyMaterial, pKey->KeyLength);
|
/system/wlan/ti/wilink_6_1/TWD/Ctrl/ |
H A D | CmdBldCmdIE.c | 364 TI_UINT8 *pKey, 380 os_memoryCopy (pCmdBld->hOs, (void *)pCmd->key, (void *)pKey, MAX_KEY_SIZE); 384 os_memoryCopy (pCmdBld->hOs, (void *)pCmd->key, (void *)pKey, uKeySize); 358 cmdBld_CmdIeSetKey(TI_HANDLE hCmdBld, TI_UINT32 action, TI_UINT8 *pMacAddr, TI_UINT32 uKeySize, TI_UINT32 uKeyType, TI_UINT32 uKeyId, TI_UINT8 *pKey, TI_UINT32 uSecuritySeqNumLow, TI_UINT32 uSecuritySeqNumHigh, void *fCb, TI_HANDLE hCb) argument
|
H A D | CmdBldCmd.c | 1085 TI_STATUS cmdBld_CmdAddKey (TI_HANDLE hCmdBld, TSecurityKeys* pKey, TI_BOOL reconfFlag, void *fCb, TI_HANDLE hCb) argument 1088 TI_UINT8 keyIdx = (TI_UINT8)pKey->keyIndex; 1095 TRACE2(pCmdBld->hReport, REPORT_SEVERITY_ERROR, "cmdBld_CmdAddKey: ERROR Key keyIndex field out of range =%d, range is (0 to %d)\n", pKey->keyIndex, pCmdBld->tSecurity.uNumOfStations * NO_OF_RECONF_SECUR_KEYS_PER_STATION+NO_OF_EXTRA_RECONF_SECUR_KEYS - 1); 1100 if (pKey->keyType == KEY_NULL) 1109 (void *)pKey, 1117 return cmdBld_CmdAddWepDefaultKey (hCmdBld, pKey, fCb, hCb); 1124 return cmdBld_CmdAddWpaKey (hCmdBld, pKey, fCb, hCb); 1132 TI_STATUS cmdBld_CmdAddWpaKey (TI_HANDLE hCmdBld, TSecurityKeys* pKey, void *fCb, TI_HANDLE hCb) argument 1137 switch (pKey->keyType) 1141 return cmdBld_CmdAddWepDefaultKey (hCmdBld, pKey, fC 1177 cmdBld_CmdRemoveWpaKey(TI_HANDLE hCmdBld, TSecurityKeys* pKey, void *fCb, TI_HANDLE hCb) argument 1225 cmdBld_CmdRemoveKey(TI_HANDLE hCmdBld, TSecurityKeys* pKey, void *fCb, TI_HANDLE hCb) argument [all...] |
/system/wlan/ti/sta_dk_4_0_4_32/CUDK/UtilityAdapter/ |
H A D | TI_AdapterApi.cpp | 932 TI_AddKey(TI_HANDLE hAdapter, OS_802_11_KEY* pKey) argument 936 return ((TI_WLAN_AdapterAPI *) hAdapter)->AddKey(pKey);
|
/system/wlan/ti/sta_dk_4_0_4_32/pform/common/src/ |
H A D | osUtil.c | 2784 OS_802_11_KEY* pKey; local 2786 pKey = (OS_802_11_KEY*) pData; 2788 status = UtilSetParam(pAdapter, RSN_ADD_KEY_PARAM, pData, pKey->Length);
|
/system/core/libacc/ |
H A D | acc.cpp | 3591 static int hashFn(void* pKey) { argument 3592 Token* pToken = (Token*) pKey;
|