Searched refs:lenbytes (Results 1 – 4 of 4) sorted by relevance
/freebsd/crypto/openssl/crypto/ |
H A D | packet.c | 27 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__() 78 unsigned char **allocbytes, size_t lenbytes) in WPACKET_sub_reserve_bytes__() argument 80 if (pkt->endfirst && lenbytes > 0) in WPACKET_sub_reserve_bytes__() 83 if (!WPACKET_reserve_bytes(pkt, lenbytes + len, allocbytes)) in WPACKET_sub_reserve_bytes__() 87 *allocbytes += lenbytes; in WPACKET_sub_reserve_bytes__() 92 static size_t maxmaxsize(size_t lenbytes) in maxmaxsize() argument 94 if (lenbytes >= sizeof(size_t) || lenbytes == 0) in maxmaxsize() 97 return ((size_t)1 << (lenbytes * 8)) - 1 + lenbytes; in maxmaxsize() 100 static int wpacket_intern_init_len(WPACKET *pkt, size_t lenbytes) in wpacket_intern_init_len() argument [all …]
|
/freebsd/crypto/openssl/test/ |
H A D | bad_dtls_test.c | 283 unsigned char lenbytes[2]; in send_record() local 315 lenbytes[0] = (unsigned char)(len >> 8); in send_record() 316 lenbytes[1] = (unsigned char)(len); in send_record() 322 || !EVP_MAC_update(ctx, lenbytes, 2) /* Length */ in send_record() 346 lenbytes[0] = (unsigned char)((len + sizeof(iv)) >> 8); in send_record() 347 lenbytes[1] = (unsigned char)(len + sizeof(iv)); in send_record() 348 BIO_write(rbio, lenbytes, 2); in send_record()
|
H A D | asn1_encode_test.c | 568 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()
|
/freebsd/crypto/openssl/include/internal/ |
H A D | packet.h | 644 size_t lenbytes; member 701 int WPACKET_init_len(WPACKET *pkt, BUF_MEM *buf, size_t lenbytes); 714 int WPACKET_init_null(WPACKET *pkt, size_t lenbytes); 728 size_t lenbytes); 770 int WPACKET_start_sub_packet_len__(WPACKET *pkt, size_t lenbytes); 809 unsigned char **allocbytes, size_t lenbytes); 848 unsigned char **allocbytes, size_t lenbytes); 901 size_t lenbytes);
|