| /freebsd-14.2/crypto/openssl/crypto/ |
| H A D | packet.c | 237 size_t packlen = pkt->written - sub->pwritten; in wpacket_intern_close() local 239 if (packlen == 0 in wpacket_intern_close() 243 if (packlen == 0 in wpacket_intern_close() 265 && !put_value(&buf[sub->packet_len], packlen, in wpacket_intern_close() 269 && (packlen != 0 in wpacket_intern_close() 272 size_t tmplen = packlen; in wpacket_intern_close() 277 if (!WPACKET_put_bytes__(pkt, packlen, numlenbytes)) in wpacket_intern_close() 279 if (packlen > 0x7f) { in wpacket_intern_close()
|
| /freebsd-14.2/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-14.2/contrib/traceroute/ |
| H A D | traceroute.c | 740 packlen = minpacket; in main() 742 packlen = 40; in main() 748 packlen = str2val(argv[optind + 1], in main() 787 memset((char *)outip, 0, packlen); in main() 797 outip->ip_len = htons(packlen); in main() 800 outip->ip_len = packlen; in main() 898 sizeof(packlen)) < 0) { in main() 1341 Printf("[ %d bytes", packlen); in send_probe() 1347 if (packlen & 1) { in send_probe() 1365 if (cc < 0 || cc != packlen) { in send_probe() [all …]
|
| /freebsd-14.2/crypto/openssh/ |
| H A D | packet.c | 206 u_int packlen; member 1441 if (state->packlen == 0) { in ssh_packet_read_poll2_mux() 1444 state->packlen = PEEK_U32(cp); in ssh_packet_read_poll2_mux() 1445 if (state->packlen < 4 + 1 || in ssh_packet_read_poll2_mux() 1449 need = state->packlen + 4; in ssh_packet_read_poll2_mux() 1454 state->packlen)) != 0 || in ssh_packet_read_poll2_mux() 1463 state->packlen = 0; in ssh_packet_read_poll2_mux() 1504 if (state->packlen < 1 + 4 || in ssh_packet_read_poll2() 1531 if (state->packlen < 1 + 4 || in ssh_packet_read_poll2() 1550 need = state->packlen; in ssh_packet_read_poll2() [all …]
|
| /freebsd-14.2/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() 719 unsigned int frag, last, packlen, inp_len; in aesni_cbc_hmac_sha1_tls1_multiblock_aad() local 752 packlen = 5 + 16 + ((frag + 20 + 16) & -16); in aesni_cbc_hmac_sha1_tls1_multiblock_aad() 753 packlen = (packlen << n4x) - packlen; in aesni_cbc_hmac_sha1_tls1_multiblock_aad() 754 packlen += 5 + 16 + ((last + 20 + 16) & -16); in aesni_cbc_hmac_sha1_tls1_multiblock_aad() 759 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() 772 unsigned int frag, last, packlen, inp_len; in aesni_cbc_hmac_sha256_tls1_multiblock_aad() local 804 packlen = 5 + 16 + ((frag + 32 + 16) & -16); in aesni_cbc_hmac_sha256_tls1_multiblock_aad() 805 packlen = (packlen << n4x) - packlen; in aesni_cbc_hmac_sha256_tls1_multiblock_aad() 806 packlen += 5 + 16 + ((last + 32 + 16) & -16); in aesni_cbc_hmac_sha256_tls1_multiblock_aad() 811 ctx->multiblock_aad_packlen = packlen; in aesni_cbc_hmac_sha256_tls1_multiblock_aad()
|
| /freebsd-14.2/usr.sbin/rtadvd/ |
| H A D | config.c | 1326 size_t packlen, lladdroptlen = 0; in make_packet() local 1343 packlen = sizeof(struct nd_router_advert); in make_packet() 1352 packlen += lladdroptlen; in make_packet() 1357 packlen += sizeof(struct nd_opt_mtu); in make_packet() 1366 packlen += sizeof(struct nd_opt_rdnss); in make_packet() 1368 packlen += sizeof(rdna->ra_dns); in make_packet() 1373 packlen += sizeof(struct nd_opt_dnssl); in make_packet() 1382 packlen += len; in make_packet() 1385 if ((buf = malloc(packlen)) == NULL) { in make_packet() 1391 memset(buf, 0, packlen); in make_packet() [all …]
|
| /freebsd-14.2/crypto/openssl/crypto/evp/ |
| H A D | e_aes_cbc_hmac_sha1.c | 174 unsigned int frag, last, packlen, i, x4 = 4 * n4x, minblocks, processed = in tls1_1_multi_block_encrypt() local 195 packlen = 5 + 16 + ((frag + 20 + 16) & -16); in tls1_1_multi_block_encrypt() 208 ciph_d[i].out = ciph_d[i - 1].out + packlen; in tls1_1_multi_block_encrypt() 847 unsigned int frag, last, packlen, inp_len; in aesni_cbc_hmac_sha1_ctrl() local 882 packlen = 5 + 16 + ((frag + 20 + 16) & -16); in aesni_cbc_hmac_sha1_ctrl() 883 packlen = (packlen << n4x) - packlen; in aesni_cbc_hmac_sha1_ctrl() 884 packlen += 5 + 16 + ((last + 20 + 16) & -16); in aesni_cbc_hmac_sha1_ctrl() 888 return (int)packlen; in aesni_cbc_hmac_sha1_ctrl()
|
| H A D | e_aes_cbc_hmac_sha256.c | 169 unsigned int frag, last, packlen, i, x4 = 4 * n4x, minblocks, processed = in tls1_1_multi_block_encrypt() local 191 packlen = 5 + 16 + ((frag + 32 + 16) & -16); in tls1_1_multi_block_encrypt() 204 ciph_d[i].out = ciph_d[i - 1].out + packlen; in tls1_1_multi_block_encrypt() 828 unsigned int frag, last, packlen, inp_len; in aesni_cbc_hmac_sha256_ctrl() local 866 packlen = 5 + 16 + ((frag + 32 + 16) & -16); in aesni_cbc_hmac_sha256_ctrl() 867 packlen = (packlen << n4x) - packlen; in aesni_cbc_hmac_sha256_ctrl() 868 packlen += 5 + 16 + ((last + 32 + 16) & -16); in aesni_cbc_hmac_sha256_ctrl() 872 return (int)packlen; in aesni_cbc_hmac_sha256_ctrl()
|
| /freebsd-14.2/crypto/openssl/ssl/record/ |
| H A D | rec_layer_s3.c | 459 size_t packlen; in ssl3_write_bytes() local 469 packlen = EVP_CIPHER_CTX_ctrl(s->enc_write_ctx, in ssl3_write_bytes() 474 packlen *= 8; in ssl3_write_bytes() 476 packlen *= 4; in ssl3_write_bytes() 478 if (!ssl3_setup_write_buffer(s, 1, packlen)) { in ssl3_write_bytes() 524 packlen = (size_t)packleni; in ssl3_write_bytes() 525 if (packleni <= 0 || packlen > wb->len) { /* never happens */ in ssl3_write_bytes() 547 wb->left = packlen; in ssl3_write_bytes()
|
| /freebsd-14.2/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-14.2/sbin/ping/ |
| H A D | ping6.c | 289 int almost_done, ch, hold, packlen, preload, optval, error; in ping6() local 764 packlen = 2048 + IP6LEN + ICMP6ECHOLEN + EXTRA; in ping6() 766 packlen = datalen + IP6LEN + ICMP6ECHOLEN + EXTRA; in ping6() 771 packlen = 2048 + IP6LEN + ICMP6ECHOLEN + EXTRA; in ping6() 774 if (!(packet = (u_char *)malloc((u_int)packlen))) in ping6() 777 for (i = ICMP6ECHOLEN; i < packlen; ++i) in ping6() 1186 iov[0].iov_len = packlen; in ping6()
|
| /freebsd-14.2/crypto/openssl/apps/ |
| H A D | speed.c | 3894 int packlen; in multiblock_speed() local 3907 packlen = EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_TLS1_1_MULTIBLOCK_AAD, in multiblock_speed() 3910 if (packlen > 0) { in multiblock_speed()
|