Lines Matching refs:attr

853 				     struct eap_sim_attrs *attr)
859 if (attr->mac || attr->iv || attr->encr_data) {
871 if (!attr->identity || attr->identity_len == 0) {
879 new_identity = os_malloc(attr->identity_len);
887 os_memcpy(sm->identity, attr->identity, attr->identity_len);
888 sm->identity_len = attr->identity_len;
913 struct eap_sim_attrs *attr)
922 attr->kdf_count == 1 && attr->mac == NULL) {
923 if (attr->kdf[0] != EAP_AKA_PRIME_KDF) {
932 data->kdf = attr->kdf[0];
942 if (attr->checkcode &&
943 eap_aka_verify_checkcode(data, attr->checkcode,
944 attr->checkcode_len)) {
951 if (attr->mac == NULL ||
952 eap_aka_verify_mac(data, respData, attr->mac, NULL, 0)) {
964 if (attr->res == NULL || attr->res_len < data->res_len ||
965 attr->res_len_bits != data->res_len * 8 ||
966 os_memcmp_const(attr->res, data->res, data->res_len) != 0) {
968 "include valid AT_RES (attr len=%lu, res len=%lu "
970 (unsigned long) attr->res_len,
971 (unsigned long) attr->res_len_bits,
980 if (sm->eap_sim_aka_result_ind && attr->result_ind) {
1017 struct eap_sim_attrs *attr)
1021 if (attr->auts == NULL) {
1034 attr->auts, data->rand)) {
1050 struct eap_sim_attrs *attr)
1057 if (attr->mac == NULL ||
1058 eap_aka_verify_mac(data, respData, attr->mac, data->nonce_s,
1065 if (attr->encr_data == NULL || attr->iv == NULL) {
1071 decrypted = eap_sim_parse_encr(data->k_encr, attr->encr_data,
1072 attr->encr_data_len, attr->iv, &eattr,
1100 if (sm->eap_sim_aka_result_ind && attr->result_ind) {
1144 struct eap_sim_attrs *attr)
1147 attr->client_error_code);
1157 struct wpabuf *respData, struct eap_sim_attrs *attr)
1167 struct eap_sim_attrs *attr)
1184 struct eap_sim_attrs attr;
1203 if (eap_sim_parse_attr(pos, end, &attr,
1213 eap_aka_process_client_error(sm, data, respData, &attr);
1219 &attr);
1225 eap_aka_process_identity(sm, data, respData, &attr);
1230 &attr);
1232 eap_aka_process_challenge(sm, data, respData, &attr);
1236 eap_aka_process_reauth(sm, data, respData, &attr);
1239 eap_aka_process_notification(sm, data, respData, &attr);