| /freebsd/crypto/openssl/ssl/record/methods/ |
| H A D | tls_multib.c | 73 size_t packlen; in tls_write_records_multiblock_int() local 109 packlen = EVP_CIPHER_CTX_ctrl(rl->enc_ctx, in tls_write_records_multiblock_int() 112 packlen *= numtempl; in tls_write_records_multiblock_int() 113 if (!tls_setup_write_buffer(rl, 1, packlen, packlen)) { in tls_write_records_multiblock_int() 133 packlen = (size_t)packleni; in tls_write_records_multiblock_int() 134 if (packleni <= 0 || packlen > wb->len) { /* never happens */ in tls_write_records_multiblock_int() 159 wb->left = packlen; in tls_write_records_multiblock_int()
|
| /freebsd/crypto/openssl/crypto/ |
| H A D | packet.c | 252 size_t packlen = pkt->written - sub->pwritten; in wpacket_intern_close() local 254 if (packlen == 0 in wpacket_intern_close() 258 if (packlen == 0 in wpacket_intern_close() 282 if (!put_value(&buf[sub->packet_len], packlen, sub->lenbytes)) in wpacket_intern_close() 285 if (!put_quic_value(&buf[sub->packet_len], packlen, sub->lenbytes)) in wpacket_intern_close() 289 if (!put_value(&buf[sub->packet_len], packlen, sub->lenbytes)) in wpacket_intern_close() 294 && (packlen != 0 in wpacket_intern_close() 298 size_t tmplen = packlen; in wpacket_intern_close() 303 if (!WPACKET_put_bytes__(pkt, packlen, numlenbytes)) in wpacket_intern_close() 305 if (packlen > 0x7f) { in wpacket_intern_close()
|
| /freebsd/sys/netinet/ |
| H A D | accf_dns.c | 102 unsigned long packlen; in skippacket() local 114 GET16(p, packlen); in skippacket() 115 if (packlen + 2 > q.len) in skippacket()
|
| /freebsd/usr.sbin/traceroute/ |
| H A D | traceroute.c | 308 int packlen; /* total length of packet */ variable 711 packlen = minpacket; in main() 713 packlen = 40; in main() 719 packlen = str2val(argv[optind + 1], in main() 742 protlen = packlen - sizeof(*outip) - optlen; in main() 743 if ((proto->num == IPPROTO_SCTP) && (packlen & 3)) { in main() 749 outip = (struct ip *)malloc((unsigned)packlen); in main() 754 memset((char *)outip, 0, packlen); in main() 763 outip->ip_len = htons(packlen); in main() 824 if (setsockopt(sndsock, SOL_SOCKET, SO_SNDBUF, (char *)&packlen, in main() [all …]
|
| /freebsd/crypto/openssh/ |
| H A D | packet.c | 205 u_int packlen; 1531 if (state->packlen == 0) { in ssh_packet_read_poll2_mux() 1534 state->packlen = PEEK_U32(cp); in ssh_packet_read_poll2_mux() 1535 if (state->packlen < 4 + 1 || in ssh_packet_read_poll2_mux() 1536 state->packlen > PACKET_MAX_SIZE) in ssh_packet_read_poll2_mux() 1539 need = state->packlen + 4; in ssh_packet_read_poll2_mux() 1544 state->packlen)) != 0 || in ssh_packet_read_poll2_mux() 1553 state->packlen = 0; in ssh_packet_read_poll2_mux() 1589 if (aadlen && state->packlen == 0) { in ssh_packet_read_poll2() 1591 &state->packlen, stat in ssh_packet_read_poll2() 206 u_int packlen; global() member [all...] |
| /freebsd/crypto/openssl/providers/implementations/ciphers/ |
| H A D | cipher_aes_cbc_hmac_sha1_hw.c | 137 unsigned int frag, last, packlen, i; in tls1_multi_block_encrypt() local 158 packlen = 5 + 16 + ((frag + 20 + 16) & -16); in tls1_multi_block_encrypt() 171 ciph_d[i].out = ciph_d[i - 1].out + packlen; in tls1_multi_block_encrypt() 713 unsigned int frag, last, packlen, inp_len; in aesni_cbc_hmac_sha1_tls1_multiblock_aad() local 746 packlen = 5 + 16 + ((frag + 20 + 16) & -16); in aesni_cbc_hmac_sha1_tls1_multiblock_aad() 747 packlen = (packlen << n4x) - packlen; in aesni_cbc_hmac_sha1_tls1_multiblock_aad() 748 packlen += 5 + 16 + ((last + 20 + 16) & -16); in aesni_cbc_hmac_sha1_tls1_multiblock_aad() 753 ctx->multiblock_aad_packlen = packlen; in aesni_cbc_hmac_sha1_tls1_multiblock_aad()
|
| H A D | cipher_aes_cbc_hmac_sha256_hw.c | 141 unsigned int frag, last, packlen, i; in tls1_multi_block_encrypt() local 162 packlen = 5 + 16 + ((frag + 32 + 16) & -16); in tls1_multi_block_encrypt() 175 ciph_d[i].out = ciph_d[i - 1].out + packlen; in tls1_multi_block_encrypt() 765 unsigned int frag, last, packlen, inp_len; in aesni_cbc_hmac_sha256_tls1_multiblock_aad() local 797 packlen = 5 + 16 + ((frag + 32 + 16) & -16); in aesni_cbc_hmac_sha256_tls1_multiblock_aad() 798 packlen = (packlen << n4x) - packlen; in aesni_cbc_hmac_sha256_tls1_multiblock_aad() 799 packlen += 5 + 16 + ((last + 32 + 16) & -16); in aesni_cbc_hmac_sha256_tls1_multiblock_aad() 804 ctx->multiblock_aad_packlen = packlen; in aesni_cbc_hmac_sha256_tls1_multiblock_aad()
|
| /freebsd/usr.sbin/rtadvd/ |
| H A D | config.c | 1378 size_t packlen, lladdroptlen = 0; in make_packet() 1396 packlen = sizeof(struct nd_router_advert); in make_packet() 1405 packlen += lladdroptlen; in make_packet() 1408 packlen += sizeof(struct nd_opt_prefix_info) * rai->rai_pfxs; in make_packet() 1410 packlen += sizeof(struct nd_opt_mtu); in make_packet() 1412 packlen += sizeof(struct nd_opt_pref64); in make_packet() 1415 packlen += sizeof(struct nd_opt_route_info) + in make_packet() 1421 packlen += sizeof(struct nd_opt_rdnss); in make_packet() 1423 packlen += sizeof(rdna->ra_dns); in make_packet() 1428 packlen in make_packet() 1326 size_t packlen, lladdroptlen = 0; make_packet() local [all...] |
| /freebsd/crypto/openssl/crypto/evp/ |
| H A D | e_aes_cbc_hmac_sha1.c | 173 unsigned int frag, last, packlen, i, x4 = 4 * n4x, minblocks, processed = 0; in tls1_1_multi_block_encrypt() local 193 packlen = 5 + 16 + ((frag + 20 + 16) & -16); in tls1_1_multi_block_encrypt() 206 ciph_d[i].out = ciph_d[i - 1].out + packlen; in tls1_1_multi_block_encrypt() 839 unsigned int frag, last, packlen, inp_len; in aesni_cbc_hmac_sha1_ctrl() local 874 packlen = 5 + 16 + ((frag + 20 + 16) & -16); in aesni_cbc_hmac_sha1_ctrl() 875 packlen = (packlen << n4x) - packlen; in aesni_cbc_hmac_sha1_ctrl() 876 packlen += 5 + 16 + ((last + 20 + 16) & -16); in aesni_cbc_hmac_sha1_ctrl() 880 return (int)packlen; in aesni_cbc_hmac_sha1_ctrl()
|
| H A D | e_aes_cbc_hmac_sha256.c | 167 unsigned int frag, last, packlen, i, x4 = 4 * n4x, minblocks, processed = 0; in tls1_1_multi_block_encrypt() local 188 packlen = 5 + 16 + ((frag + 32 + 16) & -16); in tls1_1_multi_block_encrypt() 201 ciph_d[i].out = ciph_d[i - 1].out + packlen; in tls1_1_multi_block_encrypt() 812 unsigned int frag, last, packlen, inp_len; in aesni_cbc_hmac_sha256_ctrl() local 850 packlen = 5 + 16 + ((frag + 32 + 16) & -16); in aesni_cbc_hmac_sha256_ctrl() 851 packlen = (packlen << n4x) - packlen; in aesni_cbc_hmac_sha256_ctrl() 852 packlen += 5 + 16 + ((last + 32 + 16) & -16); in aesni_cbc_hmac_sha256_ctrl() 856 return (int)packlen; in aesni_cbc_hmac_sha256_ctrl()
|
| /freebsd/usr.sbin/rtsold/ |
| H A D | rtsold.c | 514 size_t packlen = sizeof(struct nd_router_solicit), lladdroptlen = 0; in make_packet() local 523 packlen += lladdroptlen; in make_packet() 524 ifi->rs_datalen = packlen; in make_packet() 527 if ((buf = malloc(packlen)) == NULL) { in make_packet()
|
| /freebsd/sbin/ping/ |
| H A D | ping6.c | 276 int almost_done, ch, hold, packlen, preload, optval, error; in ping6() local 751 packlen = 2048 + IP6LEN + ICMP6ECHOLEN + EXTRA; in ping6() 753 packlen = datalen + IP6LEN + ICMP6ECHOLEN + EXTRA; in ping6() 758 packlen = 2048 + IP6LEN + ICMP6ECHOLEN + EXTRA; in ping6() 761 if (!(packet = (u_char *)malloc((u_int)packlen))) in ping6() 764 for (i = ICMP6ECHOLEN; i < packlen; ++i) in ping6() 1173 iov[0].iov_len = packlen; in ping6()
|
| /freebsd/crypto/openssl/apps/ |
| H A D | speed.c | 5197 int packlen; in multiblock_speed() local 5210 packlen = EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_TLS1_1_MULTIBLOCK_AAD, in multiblock_speed() 5213 if (packlen > 0) { in multiblock_speed()
|