Lines Matching defs:pos

284 	unsigned char *pos;
296 pos = (unsigned char *) (hdr + 1);
300 printf_encode(buf, sizeof(buf), pos, len);
307 os_memcpy(&addr, pos, 4);
320 struct in6_addr *addr = (struct in6_addr *) pos;
333 wpa_snprintf_hex(buf, sizeof(buf), pos, len);
340 WPA_GET_BE32(pos));
681 unsigned char *pos, *end;
711 pos = wpabuf_mhead_u8(msg->buf) + sizeof(struct radius_hdr);
713 while (pos < end) {
714 if ((size_t) (end - pos) < sizeof(*attr))
717 attr = (struct radius_attr_hdr *) pos;
719 if (attr->length > end - pos || attr->length < sizeof(*attr))
727 pos += attr->length;
740 const u8 *pos = data;
751 pos, len))
754 pos += len;
926 u8 *data, *pos;
946 pos = (u8 *) (attr + 1);
948 os_memcpy(&vendor_id, pos, 4);
949 pos += 4;
956 vhdr = (struct radius_attr_vendor *) pos;
962 pos += vhdr->vendor_length;
968 data = os_memdup(pos + sizeof(*vhdr), len);
986 const u8 *pos;
1001 pos = key + 2;
1027 addr[1] = pos - MD5_MAC_LEN;
1037 *ppos++ = *pos++ ^ hash[i];
1065 u8 hash[MD5_MAC_LEN], saltbuf[2], *pos;
1081 pos = ebuf;
1093 addr[1] = pos - MD5_MAC_LEN;
1100 *pos++ ^= hash[i];
1196 u8 *pos;
1208 pos = buf;
1209 os_memcpy(pos, &vendor_id, sizeof(vendor_id));
1210 pos += sizeof(vendor_id);
1211 vhdr = (struct radius_attr_vendor *) pos;
1213 pos = (u8 *) (vhdr + 1);
1219 WPA_PUT_BE16(pos, salt);
1220 pos += 2;
1222 secret_len, pos, &elen);
1237 pos = buf;
1238 os_memcpy(pos, &vendor_id, sizeof(vendor_id));
1239 pos += sizeof(vendor_id);
1240 vhdr = (struct radius_attr_vendor *) pos;
1242 pos = (u8 *) (vhdr + 1);
1244 WPA_PUT_BE16(pos, salt);
1245 pos += 2;
1247 secret_len, pos, &elen);
1265 u8 *buf, *pos;
1272 pos = buf;
1273 WPA_PUT_BE32(pos, RADIUS_VENDOR_ID_WFA);
1274 pos += 4;
1275 *pos++ = subtype;
1276 *pos++ = 2 + len;
1277 os_memcpy(pos, data, len);
1293 size_t padlen, i, pos;
1320 pos = 16;
1322 while (pos < buf_len) {
1325 addr[1] = &buf[pos - 16];
1330 buf[pos + i] ^= hash[i];
1332 pos += 16;
1566 u8 *pos;
1610 pos = buf + buflen - 16; /* last block */
1611 while (pos >= str + 16) { /* all but the first block */
1614 addr[1] = pos - 16;
1619 pos[i] ^= hash[i];
1621 pos -= 16;
1625 if (str != pos)
1636 pos[i] ^= hash[i];