Home
last modified time | relevance | path

Searched refs:plen (Results 1 – 25 of 163) sorted by relevance

1234567

/external/wpa_supplicant_8/src/tls/
Dtlsv1_record.c356 size_t plen; in tlsv1_record_receive() local
362 plen = in_len; in tlsv1_record_receive()
364 "data", out_data, plen); in tlsv1_record_receive()
380 if (plen < rl->iv_size) { in tlsv1_record_receive()
387 plen - rl->iv_size); in tlsv1_record_receive()
388 plen -= rl->iv_size; in tlsv1_record_receive()
392 if (plen == 0) { in tlsv1_record_receive()
398 padlen = out_data[plen - 1]; in tlsv1_record_receive()
399 if (padlen >= plen) { in tlsv1_record_receive()
403 padlen, (unsigned long) plen); in tlsv1_record_receive()
[all …]
/external/tcpdump/
Dprint-bgp.c488 u_int plen, plenbytes; in decode_prefix4() local
492 plen = pptr[0]; in decode_prefix4()
493 if (32 < plen) in decode_prefix4()
498 plenbytes = (plen + 7) / 8; in decode_prefix4()
502 if (plen % 8) { in decode_prefix4()
504 ((0xff00 >> (plen % 8)) & 0xff); in decode_prefix4()
506 snprintf(buf, buflen, "%s/%d", getname(ndo, (u_char *)&addr), plen); in decode_prefix4()
521 u_int plen, plenbytes; in decode_labeled_prefix4() local
526 plen = pptr[0]; /* get prefix length */ in decode_labeled_prefix4()
536 if (24 > plen) in decode_labeled_prefix4()
[all …]
Dprint-babel.c120 format_prefix(netdissect_options *ndo, const u_char *prefix, unsigned char plen) in format_prefix() argument
123 if(plen >= 96 && memcmp(prefix, v4prefix, 12) == 0) in format_prefix()
124 snprintf(buf, 50, "%s/%u", ipaddr_string(ndo, prefix + 12), plen - 96); in format_prefix()
127 snprintf(buf, 50, "%s/%u", ip6addr_string(ndo, prefix), plen); in format_prefix()
176 network_prefix(int ae, int plen, unsigned int omitted, in network_prefix() argument
184 if(plen >= 0) in network_prefix()
185 pb = (plen + 7) / 8; in network_prefix()
495 u_char plen; in babel_print_v2() local
500 plen = message[4] + (message[2] == 1 ? 96 : 0); in babel_print_v2()
513 format_prefix(ndo, prefix, plen), in babel_print_v2()
[all …]
/external/boringssl/src/crypto/asn1/
Dbio_ndef.c101 static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg);
102 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, void *parg);
103 static int ndef_suffix(BIO *b, unsigned char **pbuf, int *plen, void *parg);
104 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, int *plen, void *parg);
160 static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg) in ndef_prefix() argument
183 *plen = *ndef_aux->boundary - *pbuf; in ndef_prefix()
188 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, void *parg) in ndef_prefix_free() argument
202 *plen = 0; in ndef_prefix_free()
206 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, int *plen, void *parg) in ndef_suffix_free() argument
209 if (!ndef_prefix_free(b, pbuf, plen, parg)) in ndef_suffix_free()
[all …]
Dtasn_dec.c75 static int collect_data(BUF_MEM *buf, const unsigned char **p, long plen);
772 long plen; in asn1_d2i_ex_primitive() local
824 ret = asn1_check_tlen(&plen, NULL, NULL, &inf, &cst, in asn1_d2i_ex_primitive()
856 if (!asn1_find_end(&p, plen, inf)) in asn1_d2i_ex_primitive()
862 len = p - cont + plen; in asn1_d2i_ex_primitive()
863 p += plen; in asn1_d2i_ex_primitive()
887 if (!asn1_collect(&buf, &p, plen, inf, -1, V_ASN1_UNIVERSAL, 0)) in asn1_d2i_ex_primitive()
906 len = plen; in asn1_d2i_ex_primitive()
907 p += plen; in asn1_d2i_ex_primitive()
1090 long plen; in asn1_find_end() local
[all …]
/external/ppp/pppd/plugins/rp-pppoe/
Ddiscovery.c269 UINT16_t plen; in sendPADI() local
289 plen = TAG_HDR_SIZE + namelen; in sendPADI()
290 CHECK_ROOM(cursor, packet.payload, plen); in sendPADI()
300 plen = 0; in sendPADI()
313 plen += sizeof(pid) + TAG_HDR_SIZE; in sendPADI()
326 plen += sizeof(mru) + TAG_HDR_SIZE; in sendPADI()
329 packet.length = htons(plen); in sendPADI()
331 sendPacket(conn, conn->discoverySocket, &packet, (int) (plen + HDR_SIZE)); in sendPADI()
457 UINT16_t plen; in sendPADR() local
462 plen = TAG_HDR_SIZE + namelen; in sendPADR()
[all …]
Dcommon.c101 UINT16_t plen = 0; in sendPADT() local
130 plen += sizeof(pid) + TAG_HDR_SIZE; in sendPADT()
142 plen += elen + TAG_HDR_SIZE; in sendPADT()
151 plen += ntohs(conn->cookie.length) + TAG_HDR_SIZE; in sendPADT()
159 plen += ntohs(conn->relayId.length) + TAG_HDR_SIZE; in sendPADT()
162 packet.length = htons(plen); in sendPADT()
163 sendPacket(conn, conn->discoverySocket, &packet, (int) (plen + HDR_SIZE)); in sendPADT()
/external/webrtc/webrtc/modules/audio_coding/neteq/test/
DNETEQTEST_DummyRTPpacket.cc30 uint16_t length, plen; in readFromFile() local
44 if (fread(&plen, 2, 1, fp) == 0) in readFromFile()
49 packetLen = ntohs(plen); in readFromFile()
150 uint16_t length, plen; in writeToFile() local
161 plen = htons(_datagramLen); in writeToFile()
162 if (fwrite(&plen, 2, 1, fp) != 1) in writeToFile()
/external/wpa_supplicant_8/src/crypto/
Dsha256-prf.c59 size_t pos, plen; in sha256_prf_bits() local
78 plen = buf_len - pos; in sha256_prf_bits()
80 if (plen >= SHA256_MAC_LEN) { in sha256_prf_bits()
89 os_memcpy(&buf[pos], hash, plen); in sha256_prf_bits()
90 pos += plen; in sha256_prf_bits()
Dsha1-pbkdf2.c77 size_t left = buflen, plen; in pbkdf2_sha1() local
85 plen = left > SHA1_MAC_LEN ? SHA1_MAC_LEN : left; in pbkdf2_sha1()
86 os_memcpy(pos, digest, plen); in pbkdf2_sha1()
87 pos += plen; in pbkdf2_sha1()
88 left -= plen; in pbkdf2_sha1()
Dsha384-prf.c56 size_t pos, plen; in sha384_prf_bits() local
75 plen = buf_len - pos; in sha384_prf_bits()
77 if (plen >= SHA384_MAC_LEN) { in sha384_prf_bits()
83 os_memcpy(&buf[pos], hash, plen); in sha384_prf_bits()
84 pos += plen; in sha384_prf_bits()
Dsha1-prf.c34 size_t pos, plen; in sha1_prf() local
49 plen = buf_len - pos; in sha1_prf()
50 if (plen >= SHA1_MAC_LEN) { in sha1_prf()
59 os_memcpy(&buf[pos], hash, plen); in sha1_prf()
Dsha1-tprf.c33 size_t pos, plen; in sha1_t_prf() local
56 plen = buf_len - pos; in sha1_t_prf()
59 if (plen >= SHA1_MAC_LEN) { in sha1_t_prf()
63 os_memcpy(&buf[pos], hash, plen); in sha1_t_prf()
/external/libxml2/
Ddict.c75 #define xmlDictComputeQKey(dict, prefix, plen, name, len) \ argument
79 xmlDictComputeFastQKey(prefix, plen, name, len, (dict)->seed) : \
80 xmlDictComputeBigQKey(prefix, plen, name, len, (dict)->seed)))
85 #define xmlDictComputeQKey(dict, prefix, plen, name, len) \ argument
86 xmlDictComputeFastQKey(prefix, plen, name, len, (dict)->seed)
305 xmlDictAddQString(xmlDictPtr dict, const xmlChar *prefix, unsigned int plen, in xmlDictAddQString() argument
320 if (pool->end - pool->free > namelen + plen + 1) in xmlDictAddQString()
336 if (size < 4 * (namelen + plen + 1)) in xmlDictAddQString()
337 size = 4 * (namelen + plen + 1); /* just in case ! */ in xmlDictAddQString()
353 memcpy(pool->free, prefix, plen); in xmlDictAddQString()
[all …]
/external/toybox/lib/
Ddirtree.c74 char *dirtree_path(struct dirtree *node, int *plen) in dirtree_path() argument
80 path = xmalloc(*plen); in dirtree_path()
81 *plen = 0; in dirtree_path()
85 len = (plen ? *plen : 0)+strlen(node->name)+1; in dirtree_path()
89 if (plen) *plen = len; in dirtree_path()
/external/webrtc/webrtc/modules/audio_coding/test/
DRTPFile.cc177 uint16_t plen = htons(static_cast<u_short>(12 + payloadSize)); in Write() local
183 EXPECT_EQ(1u, fwrite(&plen, 2, 1, _rtpFile)); in Write()
192 uint16_t plen; in Read() local
200 EXPECT_EQ(1u, fread(&plen, 2, 1, _rtpFile)); in Read()
203 plen = ntohs(plen); in Read()
205 EXPECT_GT(plen, 11); in Read()
211 EXPECT_EQ(lengthBytes, plen + 8); in Read()
213 if (plen == 0) { in Read()
/external/wpa_supplicant_8/src/eap_peer/
Dikev2.c315 int plen; in ikev2_process_sai1() local
321 plen = ikev2_parse_proposal(&prop, pos, end); in ikev2_process_sai1()
322 if (plen < 0) in ikev2_process_sai1()
332 pos += plen; in ikev2_process_sai1()
844 size_t plen; in ikev2_build_sar1() local
869 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) t; in ikev2_build_sar1()
870 WPA_PUT_BE16(t->transform_length, plen); in ikev2_build_sar1()
889 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) p; in ikev2_build_sar1()
890 WPA_PUT_BE16(p->proposal_length, plen); in ikev2_build_sar1()
892 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) phdr; in ikev2_build_sar1()
[all …]
Deap_gtc.c51 size_t password_len, identity_len, len, plen; in eap_gtc_process() local
98 plen = password_len; in eap_gtc_process()
103 plen += 9 + identity_len + 1; in eap_gtc_process()
104 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_GTC, plen, in eap_gtc_process()
116 1, plen); in eap_gtc_process()
/external/dnsmasq/src/
Drfc1035.c24 #define CHECK_LEN(header, pp, plen, len) \ argument
25 ((size_t)((pp) - (unsigned char *)(header) + (len)) <= (plen))
27 #define ADD_RDLEN(header, pp, plen, len) \ argument
28 (!CHECK_LEN(header, pp, plen, len) ? 0 : (long)((pp) += (len)), 1)
30 static int extract_name(HEADER *header, size_t plen, unsigned char **pp, in extract_name() argument
44 if (!CHECK_LEN(header, p, plen, 1)) in extract_name()
51 if (!CHECK_LEN(header, p, plen, extrabytes)) in extract_name()
75 if (!CHECK_LEN(header, p, plen, 1)) in extract_name()
111 if (!CHECK_LEN(header, p, plen, (count-1)>>3)) in extract_name()
135 if (!CHECK_LEN(header, p, plen, l)) in extract_name()
[all …]
/external/wpa_supplicant_8/src/eap_common/
Deap_peap_common.c20 size_t pos, plen; in peap_prfplus() local
71 plen = buf_len - pos; in peap_prfplus()
74 if (plen >= SHA1_MAC_LEN) { in peap_prfplus()
78 os_memcpy(&buf[pos], hash, plen); in peap_prfplus()
Dikev2_common.c253 unsigned int plen, pdatalen, left; in ikev2_parse_payloads() local
267 plen = WPA_GET_BE16(phdr->payload_length); in ikev2_parse_payloads()
268 if (plen < sizeof(*phdr) || plen > left) { in ikev2_parse_payloads()
270 "length %d", plen); in ikev2_parse_payloads()
276 phdr->next_payload, phdr->flags, plen); in ikev2_parse_payloads()
279 pdatalen = plen - sizeof(*phdr); in ikev2_parse_payloads()
345 pos + plen == end) { in ikev2_parse_payloads()
356 pos += plen; in ikev2_parse_payloads()
535 size_t plen; in ikev2_build_encrypted() local
595 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) phdr; in ikev2_build_encrypted()
[all …]
/external/wpa_supplicant_8/src/eap_server/
Dikev2.c323 int plen; in ikev2_process_sar1() local
329 plen = ikev2_parse_proposal(data, &prop, pos, end); in ikev2_process_sar1()
330 if (plen < 0) in ikev2_process_sar1()
338 pos += plen; in ikev2_process_sar1()
908 size_t plen; in ikev2_build_sai() local
934 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) t; in ikev2_build_sai()
935 WPA_PUT_BE16(t->transform_length, plen); in ikev2_build_sai()
954 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) p; in ikev2_build_sai()
955 WPA_PUT_BE16(p->proposal_length, plen); in ikev2_build_sai()
957 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) phdr; in ikev2_build_sai()
[all …]
Deap_server_sake.c95 size_t plen; in eap_sake_build_msg() local
97 plen = sizeof(struct eap_sake_hdr) + length; in eap_sake_build_msg()
99 msg = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_SAKE, plen, in eap_sake_build_msg()
121 size_t plen; in eap_sake_build_identity() local
125 plen = 4; in eap_sake_build_identity()
126 plen += 2 + sm->server_id_len; in eap_sake_build_identity()
127 msg = eap_sake_build_msg(data, id, plen, EAP_SAKE_SUBTYPE_IDENTITY); in eap_sake_build_identity()
149 size_t plen; in eap_sake_build_challenge() local
161 plen = 2 + EAP_SAKE_RAND_LEN + 2 + sm->server_id_len; in eap_sake_build_challenge()
162 msg = eap_sake_build_msg(data, id, plen, EAP_SAKE_SUBTYPE_CHALLENGE); in eap_sake_build_challenge()
/external/libopus/tests/
Dtest_opus_decode.c54 int err,skip,plen; in test_decoder_code0() local
302 plen=(fast_rand()%18+3)*8+skip+3; in test_decoder_code0()
307 for(t=0;t<5*2;t++)expected[t]=opus_decoder_get_nb_samples(dec[t],packet,plen); in test_decoder_code0()
308 for(j=0;j<plen;j++)packet[j+1]=(fast_rand()|fast_rand())&255; in test_decoder_code0()
310 if(opus_decode(decbak, packet, plen+1, outbuf, expected[0], 1)!=expected[0])test_failed(); in test_decoder_code0()
318 out_samples = opus_decode(dec[t], packet, plen+1, outbuf, MAX_FRAME_SAMP, 0); in test_decoder_code0()
326 fprintf(stdout," dec[all] random packets, all mode pairs (4096), %d bytes/frame OK.\n",plen+1); in test_decoder_code0()
328 plen=(fast_rand()%18+3)*8+skip+3; in test_decoder_code0()
334 expected=opus_decoder_get_nb_samples(dec[t],packet,plen); in test_decoder_code0()
337 for(j=0;j<plen;j++)packet[j+1]=(fast_rand()|fast_rand())&255; in test_decoder_code0()
[all …]
/external/libnfc-nci/src/nfc/int/
Dnfc_int.h241 NFC_API extern void nfc_ncif_proc_discover_ntf (UINT8 *p, UINT16 plen);
246 NFC_API extern void nfc_ncif_proc_credits(UINT8 *p, UINT16 plen);
250 NFC_API extern void nfc_ncif_proc_ee_action (UINT8 *p, UINT16 plen);
251 NFC_API extern void nfc_ncif_proc_ee_discover_req (UINT8 *p, UINT16 plen);
254 NFC_API extern void nfc_ncif_proc_conn_create_rsp (UINT8 *p, UINT16 plen, UINT8 dest_type);
256 NFC_API extern void nfc_ncif_proc_t3t_polling_ntf (UINT8 *p, UINT16 plen);

1234567