/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 | 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...] |
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);
|
/system/wlan/ti/sta_dk_4_0_4_32/common/src/hal/inc/ |
H A D | whalWep.h | 63 int whalWep_KeyAdd (TI_HANDLE hWhalWep, securityKeys_t* pKey, void *CB_Func, TI_HANDLE CB_handle); 65 int whalWep_KeyRemove (TI_HANDLE hWhalWep, securityKeys_t* pKey, void *CB_Func, TI_HANDLE CB_handle);
|
H A D | whalWpa.h | 73 int whalWpa_KeyAdd (TI_HANDLE hWhalWpa, securityKeys_t* pKey, void *CB_Func, TI_HANDLE CB_handle); 75 int whalWpa_KeyRemove (TI_HANDLE hWhalWpa, securityKeys_t* pKey, void *CB_Func, TI_HANDLE CB_handle);
|
/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 | mainKeysSmInternal.h | 102 TI_STATUS mainKeys_setKey(struct _mainKeys_t *pMainKeys, TSecurityKeys *pKey); 103 TI_STATUS mainKeys_removeKey(struct _mainKeys_t *pMainKeys, TSecurityKeys *pKey); 105 TI_STATUS mainKeys_getSessionKey(struct _mainKeys_t *pMainKeys, TI_UINT8 *pKey, TI_UINT32 *pKeyLen);
|
H A D | mainKeysSm.h | 75 typedef TI_STATUS (*mainKeysSmSetKey_t)(struct _mainKeys_t *pMainKeys, TSecurityKeys *pKey); 76 typedef TI_STATUS (*mainKeysSmRemoveKey_t)(struct _mainKeys_t *pMainKeys, TSecurityKeys *pKey); 78 typedef TI_STATUS (*mainKeysSmGetSessionKey_t)(struct _mainKeys_t *pMainKeys, TI_UINT8 *pKey, TI_UINT32 *pKeyLen);
|
H A D | mainSecSm.h | 71 typedef TI_STATUS (*mainSecSmSetSessionKey_t)(struct _mainSec_t *pMainSec, TI_UINT8* pKey, TI_UINT8 keyLen); 72 typedef TI_STATUS (*mainSecSmGetSessionKey_t)(struct _mainSec_t *pMainSec, TI_UINT8* pKey, TI_UINT32* pKeyLen); 73 typedef TI_STATUS (*mainSecSmSetKey_t)(struct _mainSec_t *pMainSec, TSecurityKeys *pKey); 74 typedef TI_STATUS (*mainSecSmRemoveKey_t)(struct _mainSec_t *pMainSec, TSecurityKeys *pKey);
|
H A D | mainSecKeysOnly.h | 98 TI_STATUS mainSecKeysOnly_setSessionKey(mainSec_t *pMainSec, TI_UINT8* pKey, TI_UINT8 keyLen); 100 TI_STATUS mainSecKeysOnly_getSessionKey(mainSec_t *pMainSec, TI_UINT8* pKey, TI_UINT32* pKeyLen);
|
H A D | rsn.h | 94 typedef TI_STATUS (*rsn_setKey_t)(rsn_t *pMainSec, TSecurityKeys *pKey); 95 typedef TI_STATUS (*rsn_removeKey_t)(rsn_t *pMainSec, TSecurityKeys *pKey); 195 TI_STATUS rsn_setKey(rsn_t *pMainSec, TSecurityKeys *pKey); 197 TI_STATUS rsn_removeKey(rsn_t *pMainSec, TSecurityKeys *pKey);
|
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...] |
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);
|
/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/sta_dk_4_0_4_32/common/src/core/rsn/inc/ |
H A D | mainKeysSmInternal.h | 103 TI_STATUS mainKeys_setKey(struct _mainKeys_t *pMainKeys, securityKeys_t *pKey); 104 TI_STATUS mainKeys_removeKey(struct _mainKeys_t *pMainKeys, securityKeys_t *pKey); 106 TI_STATUS mainKeys_getSessionKey(struct _mainKeys_t *pMainKeys, UINT8 *pKey, UINT32 *pKeyLen);
|
H A D | mainKeysSm.h | 76 typedef TI_STATUS (*mainKeysSmSetKey_t)(struct _mainKeys_t *pMainKeys, securityKeys_t *pKey); 77 typedef TI_STATUS (*mainKeysSmRemoveKey_t)(struct _mainKeys_t *pMainKeys, securityKeys_t *pKey); 79 typedef TI_STATUS (*mainKeysSmGetSessionKey_t)(struct _mainKeys_t *pMainKeys, UINT8 *pKey, UINT32 *pKeyLen);
|
H A D | mainSecSm.h | 72 typedef TI_STATUS (*mainSecSmSetSessionKey_t)(struct _mainSec_t *pMainSec, UINT8* pKey, UINT8 keyLen); 73 typedef TI_STATUS (*mainSecSmGetSessionKey_t)(struct _mainSec_t *pMainSec, UINT8* pKey, UINT32* pKeyLen); 74 typedef TI_STATUS (*mainSecSmSetKey_t)(struct _mainSec_t *pMainSec, securityKeys_t *pKey); 75 typedef TI_STATUS (*mainSecSmRemoveKey_t)(struct _mainSec_t *pMainSec, securityKeys_t *pKey);
|
H A D | rsn.h | 87 typedef TI_STATUS (*rsn_setKey_t)(rsn_t *pMainSec, securityKeys_t *pKey); 88 typedef TI_STATUS (*rsn_removeKey_t)(rsn_t *pMainSec, securityKeys_t *pKey); 182 TI_STATUS rsn_setKey(rsn_t *pMainSec, securityKeys_t *pKey); 184 TI_STATUS rsn_removeKey(rsn_t *pMainSec, securityKeys_t *pKey);
|
H A D | mainSecKeysOnly.h | 99 TI_STATUS mainSecKeysOnly_setSessionKey(mainSec_t *pMainSec, UINT8* pKey, UINT8 keyLen); 101 TI_STATUS mainSecKeysOnly_getSessionKey(mainSec_t *pMainSec, UINT8* pKey, UINT32* pKeyLen);
|
/system/wlan/ti/wilink_6_1/TWD/Ctrl/ |
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...] |
H A D | CmdBld.h | 85 TI_STATUS cmdBld_CmdAddWepDefaultKey (TI_HANDLE hCmdBld, TSecurityKeys* pKey, void *fCb, TI_HANDLE hCb); 86 TI_STATUS cmdBld_CmdRemoveWepDefaultKey (TI_HANDLE hCmdBld, TSecurityKeys* pKey, void *fCb, TI_HANDLE hCb); 88 TI_STATUS cmdBld_CmdAddWpaKey (TI_HANDLE hCmdBld, TSecurityKeys* pKey, void *fCb, TI_HANDLE hCb); 89 TI_STATUS cmdBld_CmdRemoveWpaKey (TI_HANDLE hCmdBld, TSecurityKeys* pKey, void *fCb, TI_HANDLE hCb); 90 TI_STATUS cmdBld_CmdAddTkipMicMappingKey(TI_HANDLE hCmdBld, TSecurityKeys* pKey, void *fCb, TI_HANDLE hCb); 91 TI_STATUS cmdBld_CmdRemoveTkipMicMappingKey (TI_HANDLE hCmdBld, TSecurityKeys* pKey, void *fCb, TI_HANDLE hCb); 92 TI_STATUS cmdBld_CmdAddAesMappingKey (TI_HANDLE hCmdBld, TSecurityKeys* pKey, void *fCb, TI_HANDLE hCb); 93 TI_STATUS cmdBld_CmdRemoveAesMappingKey (TI_HANDLE hCmdBld, TSecurityKeys* pKey, void *fCb, TI_HANDLE hCb); 95 TI_STATUS cmdBld_CmdAddGemMappingKey (TI_HANDLE hCmdBld, TSecurityKeys* pKey, void *fCb, TI_HANDLE hCb); 96 TI_STATUS cmdBld_CmdRemoveGemMappingKey (TI_HANDLE hCmdBld, TSecurityKeys* pKey, voi [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);
|