Home
last modified time | relevance | path

Searched refs:lenbytes (Results 1 – 8 of 8) sorted by relevance

/third_party/openssl/ssl/
Dpacket.c27 unsigned char **allocbytes, size_t lenbytes) in WPACKET_sub_allocate_bytes__() argument
29 if (!WPACKET_start_sub_packet_len__(pkt, lenbytes) in WPACKET_sub_allocate_bytes__()
72 unsigned char **allocbytes, size_t lenbytes) in WPACKET_sub_reserve_bytes__() argument
74 if (!WPACKET_reserve_bytes(pkt, lenbytes + len, allocbytes)) in WPACKET_sub_reserve_bytes__()
77 *allocbytes += lenbytes; in WPACKET_sub_reserve_bytes__()
82 static size_t maxmaxsize(size_t lenbytes) in maxmaxsize() argument
84 if (lenbytes >= sizeof(size_t) || lenbytes == 0) in maxmaxsize()
87 return ((size_t)1 << (lenbytes * 8)) - 1 + lenbytes; in maxmaxsize()
90 static int wpacket_intern_init_len(WPACKET *pkt, size_t lenbytes) in wpacket_intern_init_len() argument
102 if (lenbytes == 0) in wpacket_intern_init_len()
[all …]
Dpacket_local.h610 size_t lenbytes; member
664 int WPACKET_init_len(WPACKET *pkt, BUF_MEM *buf, size_t lenbytes);
678 size_t lenbytes);
712 int WPACKET_start_sub_packet_len__(WPACKET *pkt, size_t lenbytes);
751 unsigned char **allocbytes, size_t lenbytes);
790 unsigned char **allocbytes, size_t lenbytes);
841 size_t lenbytes);
/third_party/openssl/test/
Dbad_dtls_test.c280 unsigned char lenbytes[2]; in send_record() local
309 lenbytes[0] = (unsigned char)(len >> 8); in send_record()
310 lenbytes[1] = (unsigned char)(len); in send_record()
311 HMAC_Update(ctx, lenbytes, 2); /* Length */ in send_record()
334 lenbytes[0] = (unsigned char)((len + sizeof(iv)) >> 8); in send_record()
335 lenbytes[1] = (unsigned char)(len + sizeof(iv)); in send_record()
336 BIO_write(rbio, lenbytes, 2); in send_record()
Dasn1_encode_test.c568 size_t lenbytes; in der_encode_length() local
572 lenbytes = 3; in der_encode_length()
574 lenbytes = 2; in der_encode_length()
576 lenbytes = 1; in der_encode_length()
579 if (lenbytes == 1) { in der_encode_length()
582 *(*pp)++ = (unsigned char)(lenbytes - 1); in der_encode_length()
583 if (lenbytes == 2) { in der_encode_length()
591 return lenbytes; in der_encode_length()
/third_party/curl/tests/server/
Dmqttd.c371 size_t buflen, size_t *lenbytes) in decode_length() argument
384 if(lenbytes) in decode_length()
385 *lenbytes = i; in decode_length()
/third_party/curl/lib/
Dmqtt.c526 size_t buflen, size_t *lenbytes) in mqtt_decode_len() argument
539 if(lenbytes) in mqtt_decode_len()
540 *lenbytes = i; in mqtt_decode_len()
/third_party/grpc/third_party/upb/upb/pb/
Dencoder.c272 size_t lenbytes = upb_vencode64(s->msglen, buf); in end_delim() local
273 putbuf(e, buf, lenbytes); in end_delim()
/third_party/protobuf/ruby/ext/google/protobuf_c/
Dupb.c8252 size_t lenbytes = upb_vencode64(s->msglen, buf); in end_delim() local
8253 putbuf(e, buf, lenbytes); in end_delim()