/freebsd-11-stable/crypto/openssl/crypto/rsa/ |
H A D | rsa_none.c | 65 int RSA_padding_add_none(unsigned char *to, int tlen, argument 68 if (flen > tlen) { 73 if (flen < tlen) { 82 int RSA_padding_check_none(unsigned char *to, int tlen, argument 86 if (flen > tlen) { 91 memset(to, 0, tlen - flen); 92 memcpy(to + tlen - flen, from, flen); 93 return (tlen);
|
H A D | rsa_pk1.c | 67 int RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen, argument 73 if (flen > (tlen - RSA_PKCS1_PADDING_SIZE)) { 85 j = tlen - 3 - flen; 93 int RSA_padding_check_PKCS1_type_1(unsigned char *to, int tlen, argument 157 if (j > tlen) { 166 int RSA_padding_add_PKCS1_type_2(unsigned char *to, int tlen, argument 172 if (flen > (tlen - 11)) { 184 j = tlen - 3 - flen; 203 int RSA_padding_check_PKCS1_type_2(unsigned char *to, int tlen, argument 213 if (tlen < [all...] |
H A D | rsa_ssl.c | 66 int RSA_padding_add_SSLv23(unsigned char *to, int tlen, argument 72 if (flen > (tlen - 11)) { 84 j = tlen - 3 - 8 - flen; 110 int RSA_padding_check_SSLv23(unsigned char *to, int tlen, argument 119 if (tlen <= 0 || flen <= 0) 195 good &= constant_time_ge(tlen, mlen); 208 tlen = constant_time_select_int(constant_time_lt(num - 11, tlen), 209 num - 11, tlen); 215 for (i = 0; i < tlen; [all...] |
H A D | rsa_oaep.c | 31 int RSA_padding_add_PKCS1_OAEP(unsigned char *to, int tlen, argument 35 return RSA_padding_add_PKCS1_OAEP_mgf1(to, tlen, from, flen, 39 int RSA_padding_add_PKCS1_OAEP_mgf1(unsigned char *to, int tlen, argument 44 int i, emlen = tlen - 1; 109 int RSA_padding_check_PKCS1_OAEP(unsigned char *to, int tlen, argument 113 return RSA_padding_check_PKCS1_OAEP_mgf1(to, tlen, from, flen, num, 117 int RSA_padding_check_PKCS1_OAEP_mgf1(unsigned char *to, int tlen, argument 141 if (tlen <= 0 || flen <= 0) 235 good &= constant_time_ge(tlen, mlen); 247 tlen [all...] |
H A D | rsa_x931.c | 67 int RSA_padding_add_X931(unsigned char *to, int tlen, argument 78 j = tlen - flen - 2; 104 int RSA_padding_check_X931(unsigned char *to, int tlen, argument
|
H A D | rsa.h | 431 int RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen, 433 int RSA_padding_check_PKCS1_type_1(unsigned char *to, int tlen, 436 int RSA_padding_add_PKCS1_type_2(unsigned char *to, int tlen, 438 int RSA_padding_check_PKCS1_type_2(unsigned char *to, int tlen, 443 int RSA_padding_add_PKCS1_OAEP(unsigned char *to, int tlen, 446 int RSA_padding_check_PKCS1_OAEP(unsigned char *to, int tlen, 449 int RSA_padding_add_PKCS1_OAEP_mgf1(unsigned char *to, int tlen, 453 int RSA_padding_check_PKCS1_OAEP_mgf1(unsigned char *to, int tlen, 458 int RSA_padding_add_SSLv23(unsigned char *to, int tlen, 460 int RSA_padding_check_SSLv23(unsigned char *to, int tlen, [all...] |
/freebsd-11-stable/contrib/ntp/libntp/ |
H A D | numtoa.c | 44 size_t tlen; local 53 tlen = strlen(text); 54 text[tlen] = '.'; 55 text[tlen + 1] = '\0';
|
/freebsd-11-stable/contrib/nvi/common/ |
H A D | delete.c | 43 size_t blen, len, nlen, tlen; local 113 if ((tlen = fm->cno) != 0) { 116 GET_SPACE_RETW(sp, bp, blen, tlen + 256); 117 MEMCPY(bp, p, tlen); 130 nlen = (len - (tm->cno + 1)) + tlen; 131 if (tlen > nlen) { 135 if (tlen == 0) { 140 MEMCPY(bp + tlen, p + (tm->cno + 1), len - (tm->cno + 1)); 141 tlen += len - (tm->cno + 1); 145 if (db_set(sp, fm->lno, bp, tlen)) [all...] |
/freebsd-11-stable/contrib/tcpdump/ |
H A D | print-rpki-rtr.c | 295 u_int encapsulated_pdu_length, text_length, tlen, error_code; local 297 tlen = sizeof(rpki_rtr_pdu); 299 if (pdu_len < tlen + 4) 301 ND_TCHECK2(*tptr, tlen + 4); 307 tlen += 4; 328 if (pdu_len < tlen + encapsulated_pdu_length) 331 ND_TCHECK2(*tptr, tlen + encapsulated_pdu_length); 335 rpki_rtr_pdu_print(ndo, tptr + tlen, 338 tlen += encapsulated_pdu_length; 341 if (pdu_len < tlen [all...] |
H A D | print-vqp.c | 109 u_int tlen; local 113 tlen = len; 116 if (sizeof(struct vqp_common_header_t) > tlen) 152 tlen-=sizeof(const struct vqp_common_header_t); 154 while (nitems > 0 && tlen > 0) { 158 if (sizeof(struct vqp_obj_tlv_t) > tlen) 163 tlen-=sizeof(struct vqp_obj_tlv_t); 176 if (vqp_obj_len > tlen) 205 tlen -= vqp_obj_len;
|
H A D | print-cfm.c | 283 u_int hexdump, tlen, cfm_tlv_len, cfm_tlv_type, ccm_interval; local 324 tlen = length - sizeof(struct cfm_common_header_t); 329 if (cfm_common_header->first_tlv_offset > tlen) { 330 ND_PRINT((ndo, " (too large, must be <= %u)", tlen)); 342 if (tlen < sizeof(*msg_ptr.cfm_ccm)) 472 if (tlen < sizeof(*msg_ptr.cfm_ltm)) 495 if (tlen < sizeof(*msg_ptr.cfm_ltr)) 521 tlen - cfm_common_header->first_tlv_offset); 526 tlen -= cfm_common_header->first_tlv_offset; 528 while (tlen > [all...] |
H A D | print-lwapp.c | 171 int tlen; local 205 tlen=EXTRACT_16BITS(lwapp_trans_header->length); 213 tlen)); 222 while(tlen>0) { 279 tlen -= sizeof(struct lwapp_control_header) + msg_tlen; 293 int tlen; local 322 tlen=EXTRACT_16BITS(lwapp_trans_header->length); 330 tlen)); 333 tlen-=sizeof(const struct lwapp_transport_header); 336 print_unknown_data(ndo, tptr, "\n\t", tlen); [all...] |
H A D | print-sflow.c | 494 u_int tlen; local 502 tlen = len; 506 if (tlen < sizeof(struct sflow_counter_record_t)) 522 tlen -= sizeof(struct sflow_counter_record_t); 524 if (tlen < counter_len) 529 if (print_sflow_counter_generic(ndo, tptr, tlen)) 533 if (print_sflow_counter_ethernet(ndo, tptr, tlen)) 537 if (print_sflow_counter_token_ring(ndo, tptr,tlen)) 541 if (print_sflow_counter_basevg(ndo, tptr, tlen)) 545 if (print_sflow_counter_vlan(ndo, tptr, tlen)) 713 u_int tlen; local 877 u_int tlen; local [all...] |
H A D | print-slow.c | 350 register const u_char *tptr, register u_int tlen, 364 while(tlen>0) { 366 if (tlen < sizeof(struct tlv_header_t)) 396 if (tlen < tlv_len) 477 tlen-=tlv_len; 491 register const u_char *tptr, register u_int tlen) 519 if (tlen < sizeof(*ptr.slow_oam_common_header)) 523 tlen -= sizeof(struct slow_oam_common_header_t); 533 while (tlen > 0) { 535 if (tlen < sizeo 349 slow_marker_lacp_print(netdissect_options *ndo, register const u_char *tptr, register u_int tlen, u_int proto_subtype) argument 490 slow_oam_print(netdissect_options *ndo, register const u_char *tptr, register u_int tlen) argument [all...] |
/freebsd-11-stable/usr.bin/tail/ |
H A D | read.c | 67 int ch, len, tlen; local 95 tlen = len; 102 if (tlen) { 103 WR(sp, tlen); 104 tlen = 0; 109 if (tlen) 110 WR(sp, tlen);
|
/freebsd-11-stable/crypto/openssl/crypto/dh/ |
H A D | dh_kdf.c | 97 long tlen; local 125 tlen = derlen; 126 if (!skip_asn1(&p, &tlen, V_ASN1_SEQUENCE)) 128 if (!skip_asn1(&p, &tlen, V_ASN1_SEQUENCE)) 130 if (!skip_asn1(&p, &tlen, V_ASN1_OBJECT)) 132 if (!skip_asn1(&p, &tlen, V_ASN1_OCTET_STRING))
|
/freebsd-11-stable/contrib/nvi/ex/ |
H A D | ex_join.c | 39 size_t blen, clen, len, tlen; local 64 clen = tlen = 0; 81 * Get more space if necessary. Note, tlen isn't the length 85 tlen += len + 2; 86 ADD_SPACE_RETW(sp, bp, blen, tlen);
|
H A D | ex_print.c | 209 size_t col, tlen, ts; local 217 for (tlen = ts - col % ts; 218 col < sp->cols && tlen--; ++col) { 226 tlen = KEY_COL(sp, ch); 233 if (col + tlen > sp->cols) { 238 col += tlen; 243 } else while (tlen--) {
|
/freebsd-11-stable/usr.sbin/fwcontrol/ |
H A D | fwdv.c | 104 int len, tlen, npad, fd, k, m, vec, system = -1, nb; local 138 tlen = 0; 139 while ((len = read(d, buf + tlen, PSIZE 140 /* RBUFSIZE - tlen */)) > 0) { 150 tlen += len; 151 if ((RBUFSIZE - tlen) < PSIZE) 155 tlen = len = read(d, buf, RBUFSIZE); 244 if ((char *)ptr < buf + tlen) 262 int len, tlen, header, fd, frames, packets, vec, offset, nhdr, i; local 324 tlen [all...] |
/freebsd-11-stable/sys/netinet/libalias/ |
H A D | alias_ftp.c | 229 int hlen, tlen, dlen, pflags; local 237 tlen = ntohs(pip->ip_len); 238 dlen = tlen - hlen; 279 tlen = ntohs(pip->ip_len); /* recalc tlen, pkt may 281 if (sptr[tlen - 2] == '\r' && sptr[tlen - 1] == '\n') 294 int hlen, tlen, dlen, pflags; local 301 tlen = ntohs(pip->ip_len); 302 dlen = tlen 666 int slen, hlen, tlen, dlen; local [all...] |
/freebsd-11-stable/crypto/openssl/engines/vendor_defns/ |
H A D | sureware.h | 180 * out param tlen: byte size of decrypted data, if error, unexpected value 189 unsigned char *from, int *tlen, 202 * out param tlen: byte size of decrypted data, if error, unexpected value 211 unsigned char *from, int *tlen,
|
/freebsd-11-stable/sys/netinet/tcp_stacks/ |
H A D | fastpath.c | 151 #define DELAY_ACK(tp, tlen) \ 154 (tlen <= tp->t_maxseg) && \ 167 struct tcpcb *tp, struct tcpopt *to, int drop_hdrlen, int tlen, 338 struct tcpcb *tp, struct tcpopt *to, int drop_hdrlen, int tlen, 377 tp->rcv_nxt += tlen; 388 TCPSTAT_ADD(tcps_rcvbyte, tlen); 396 newsize = tcp_autorcvbuf(m, th, so, tp, tlen); 416 if (DELAY_ACK(tp, tlen)) { 442 struct tcpcb *tp, struct tcpopt *to, int drop_hdrlen, int tlen, 529 if (DELAY_ACK(tp, tlen) 166 tcp_do_fastack(struct mbuf *m, struct tcphdr *th, struct socket *so, struct tcpcb *tp, struct tcpopt *to, int drop_hdrlen, int tlen, int ti_locked, u_long tiwin) argument 337 tcp_do_fastnewdata(struct mbuf *m, struct tcphdr *th, struct socket *so, struct tcpcb *tp, struct tcpopt *to, int drop_hdrlen, int tlen, int ti_locked, u_long tiwin) argument 441 tcp_do_slowpath(struct mbuf *m, struct tcphdr *th, struct socket *so, struct tcpcb *tp, struct tcpopt *to, int drop_hdrlen, int tlen, int ti_locked, u_long tiwin, int thflags) argument 1685 tcp_do_segment_fastslow(struct mbuf *m, struct tcphdr *th, struct socket *so, struct tcpcb *tp, int drop_hdrlen, int tlen, uint8_t iptos, int ti_locked) argument 1944 tcp_fastack(struct mbuf *m, struct tcphdr *th, struct socket *so, struct tcpcb *tp, struct tcpopt *to, int drop_hdrlen, int tlen, int ti_locked, u_long tiwin) argument 2160 tcp_do_segment_fastack(struct mbuf *m, struct tcphdr *th, struct socket *so, struct tcpcb *tp, int drop_hdrlen, int tlen, uint8_t iptos, int ti_locked) argument [all...] |
/freebsd-11-stable/sys/dev/syscons/daemon/ |
H A D | daemon_saver.c | 212 static int xlen, ylen, tlen; local 231 xlen = ylen = tlen = 0; 238 clear_string(sc, txpos, typos, toff, message, tlen); 333 tlen = messagelen; 334 if (txpos + tlen <= 0) 335 tlen = 0; 339 tlen = 0; 340 else if (txpos + tlen > scp->xsize) 341 tlen = scp->xsize - txpos; 344 draw_string(sc, txpos, typos, toff, message, tlen); [all...] |
/freebsd-11-stable/sys/kern/ |
H A D | uipc_mbuf2.c | 98 int hlen, tlen, olen; local 186 * we need to take hlen from <n, off> and tlen from <n->m_next, 0>, 188 * note that hlen + tlen == len, and tlen > 0. 191 tlen = len - hlen; 209 if ((off == 0 || offp) && M_TRAILINGSPACE(n) >= tlen 211 m_copydata(n->m_next, 0, tlen, mtod(n, caddr_t) + n->m_len); 212 n->m_len += tlen; 213 m_adj(n->m_next, tlen); 217 && writable && n->m_next->m_len >= tlen) { [all...] |
/freebsd-11-stable/lib/libipsec/ |
H A D | policy_parse.y | 73 static int tlen = 0; /* total length of pbuf */ 298 tlen = sizeof(struct sadb_x_policy); 300 pbuf = malloc(tlen); 305 memset(pbuf, 0, tlen); 313 offset = tlen; 329 tlen += reqlen; /* increment to total length */ 331 pbuf = realloc(pbuf, tlen); 360 /* tlen has already incremented */ 396 tlen = 0; 414 ((struct sadb_x_policy *)pbuf)->sadb_x_policy_len = PFKEY_UNIT64(tlen); [all...] |