/freebsd-12-stable/crypto/openssl/crypto/rsa/ |
H A D | rsa_none.c | 14 int RSA_padding_add_none(unsigned char *to, int tlen, argument 17 if (flen > tlen) { 22 if (flen < tlen) { 31 int RSA_padding_check_none(unsigned char *to, int tlen, argument 35 if (flen > tlen) { 40 memset(to, 0, tlen - flen); 41 memcpy(to + tlen - flen, from, flen); 42 return tlen;
|
H A D | rsa_pk1.c | 18 int RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen, argument 24 if (flen > (tlen - RSA_PKCS1_PADDING_SIZE)) { 36 j = tlen - 3 - flen; 44 int RSA_padding_check_PKCS1_type_1(unsigned char *to, int tlen, argument 108 if (j > tlen) { 117 int RSA_padding_add_PKCS1_type_2(unsigned char *to, int tlen, argument 123 if (flen > (tlen - RSA_PKCS1_PADDING_SIZE)) { 135 j = tlen - 3 - flen; 154 int RSA_padding_check_PKCS1_type_2(unsigned char *to, int tlen, argument 164 if (tlen < [all...] |
H A D | rsa_ssl.c | 17 int RSA_padding_add_SSLv23(unsigned char *to, int tlen, argument 23 if (flen > (tlen - RSA_PKCS1_PADDING_SIZE)) { 35 j = tlen - 3 - 8 - flen; 61 int RSA_padding_check_SSLv23(unsigned char *to, int tlen, argument 70 if (tlen <= 0 || flen <= 0) 146 good &= constant_time_ge(tlen, mlen); 159 tlen = constant_time_select_int(constant_time_lt(num - RSA_PKCS1_PADDING_SIZE, tlen), 160 num - RSA_PKCS1_PADDING_SIZE, tlen); 166 for (i = 0; i < tlen; [all...] |
H A D | rsa_oaep.c | 33 int RSA_padding_add_PKCS1_OAEP(unsigned char *to, int tlen, argument 37 return RSA_padding_add_PKCS1_OAEP_mgf1(to, tlen, from, flen, 41 int RSA_padding_add_PKCS1_OAEP_mgf1(unsigned char *to, int tlen, argument 47 int i, emlen = tlen - 1; 108 int RSA_padding_check_PKCS1_OAEP(unsigned char *to, int tlen, argument 112 return RSA_padding_check_PKCS1_OAEP_mgf1(to, tlen, from, flen, num, 116 int RSA_padding_check_PKCS1_OAEP_mgf1(unsigned char *to, int tlen, argument 140 if (tlen <= 0 || flen <= 0) 234 good &= constant_time_ge(tlen, mlen); 246 tlen [all...] |
H A D | rsa_x931.c | 16 int RSA_padding_add_X931(unsigned char *to, int tlen, argument 27 j = tlen - flen - 2; 53 int RSA_padding_check_X931(unsigned char *to, int tlen, argument
|
/freebsd-12-stable/contrib/bearssl/src/rsa/ |
H A D | rsa_i15_modulus.c | 34 size_t nlen, plen, qlen, tlen; local 53 tlen = (sizeof tmp) / (sizeof tmp[0]); 58 if ((15 * tlen) < (plen << 3) + 15) { 65 tlen -= plen; 70 if ((15 * tlen) < (qlen << 3) + 15) { 77 tlen -= qlen; 83 if (tlen < (plen + qlen + 1)) {
|
H A D | rsa_i31_modulus.c | 34 size_t nlen, plen, qlen, tlen; local 53 tlen = (sizeof tmp) / (sizeof tmp[0]); 58 if ((31 * tlen) < (plen << 3) + 31) { 65 tlen -= plen; 70 if ((31 * tlen) < (qlen << 3) + 31) { 77 tlen -= qlen; 83 if (tlen < (plen + qlen + 1)) {
|
/freebsd-12-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-12-stable/contrib/bearssl/src/int/ |
H A D | i15_decmod.c | 55 size_t mlen, tlen; local 61 tlen = (mlen << 1); 62 if (tlen < len) { 63 tlen = len; 65 tlen += 4; 75 for (u = 0; u < tlen; u ++) {
|
H A D | i31_decmod.c | 55 size_t mlen, tlen; local 61 tlen = (mlen << 2); 62 if (tlen < len) { 63 tlen = len; 65 tlen += 4; 75 for (u = 0; u < tlen; u ++) {
|
/freebsd-12-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-12-stable/contrib/bearssl/src/kdf/ |
H A D | hkdf.c | 72 size_t tlen; local 74 tlen = 0; 84 return tlen; 104 tlen += clen; 106 return tlen;
|
/freebsd-12-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-12-stable/sys/netinet/tcp_stacks/ |
H A D | rack_bbr_common.c | 201 int32_t retval, nxt_pkt, tlen, off; local 255 tlen = ntohs(ip6->ip6_plen); 261 th->th_sum = in6_cksum_pseudo(ip6, tlen, 265 th->th_sum = in6_cksum(m, IPPROTO_TCP, drop_hdrlen, tlen); 303 tlen = ntohs(ip->ip_len) - sizeof(struct ip); 310 htonl(m->m_pkthdr.csum_data + tlen + 319 len = drop_hdrlen + tlen; 321 ipov->ih_len = htons(tlen); 346 if (off < sizeof (struct tcphdr) || off > tlen) { 351 tlen 435 ctf_do_dropwithreset(struct mbuf *m, struct tcpcb *tp, struct tcphdr *th, int32_t rstreason, int32_t tlen) argument 456 int32_t tlen; local 556 ctf_do_dropafterack(struct mbuf *m, struct tcpcb *tp, struct tcphdr *th, int32_t thflags, int32_t tlen, int32_t * ret_val) argument 697 ctf_ts_check(struct mbuf *m, struct tcphdr *th, struct tcpcb *tp, int32_t tlen, int32_t thflags, int32_t * ret_val) argument 745 ctf_do_dropwithreset_conn(struct mbuf *m, struct tcpcb *tp, struct tcphdr *th, int32_t rstreason, int32_t tlen) argument [all...] |
H A D | rack_bbr_common.h | 81 struct tcphdr *th, int32_t thflags, int32_t tlen, int32_t * ret_val); 84 struct tcphdr *th, int32_t rstreason, int32_t tlen); 98 struct tcpcb *tp, int32_t tlen, int32_t thflags, int32_t * ret_val); 105 int32_t rstreason, int32_t tlen);
|
/freebsd-12-stable/usr.bin/tail/ |
H A D | read.c | 69 int ch, len, tlen; local 97 tlen = len; 104 if (tlen) { 105 WR(sp, tlen); 106 tlen = 0; 111 if (tlen) 112 WR(sp, tlen);
|
/freebsd-12-stable/crypto/openssl/crypto/dh/ |
H A D | dh_kdf.c | 55 long tlen; local 83 tlen = derlen; 84 if (!skip_asn1(&p, &tlen, V_ASN1_SEQUENCE)) 86 if (!skip_asn1(&p, &tlen, V_ASN1_SEQUENCE)) 88 if (!skip_asn1(&p, &tlen, V_ASN1_OBJECT)) 90 if (!skip_asn1(&p, &tlen, V_ASN1_OCTET_STRING))
|
/freebsd-12-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);
|
/freebsd-12-stable/sys/netinet/libalias/ |
H A D | alias_ftp.c | 225 int hlen, tlen, dlen, pflags; local 233 tlen = ntohs(pip->ip_len); 234 dlen = tlen - hlen; 271 tlen = ntohs(pip->ip_len); /* recalc tlen, pkt may have grown */ 272 if (sptr[tlen - 2] == '\r' && sptr[tlen - 1] == '\n') 285 int hlen, tlen, dlen, pflags; local 292 tlen = ntohs(pip->ip_len); 293 dlen = tlen 656 int slen, hlen, tlen, dlen; local [all...] |
/freebsd-12-stable/usr.sbin/fwcontrol/ |
H A D | fwdv.c | 106 int len, tlen, npad, fd, k, m, vec, system = -1, nb; local 140 tlen = 0; 141 while ((len = read(d, buf + tlen, PSIZE 142 /* RBUFSIZE - tlen */)) > 0) { 152 tlen += len; 153 if ((RBUFSIZE - tlen) < PSIZE) 157 tlen = len = read(d, buf, RBUFSIZE); 246 if ((char *)ptr < buf + tlen) 264 int len, tlen, header, fd, frames, packets, vec, offset, nhdr, i; local 326 tlen [all...] |