Home
last modified time | relevance | path

Searched refs:tlen (Results 1 – 25 of 102) sorted by relevance

12345

/openbsd/lib/libcrypto/rsa/
H A Drsa_pk1.c70 RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen, in RSA_padding_add_PKCS1_type_1() argument
83 if (flen < 0 || tlen < 0) in RSA_padding_add_PKCS1_type_1()
86 if (flen > tlen - RSA_PKCS1_PADDING_SIZE) { in RSA_padding_add_PKCS1_type_1()
91 if (!CBB_init_fixed(&cbb, to, tlen)) in RSA_padding_add_PKCS1_type_1()
102 for (i = 0; i < tlen - 3 - flen; i++) { in RSA_padding_add_PKCS1_type_1()
165 if (j > tlen) { in RSA_padding_check_PKCS1_type_1()
193 if (flen < 0 || tlen < 0) in RSA_padding_add_PKCS1_type_2()
196 if (flen > tlen - RSA_PKCS1_PADDING_SIZE) { in RSA_padding_add_PKCS1_type_2()
201 if (!CBB_init_fixed(&cbb, to, tlen)) in RSA_padding_add_PKCS1_type_2()
212 for (i = 0; i < tlen - 3 - flen; i++) { in RSA_padding_add_PKCS1_type_2()
[all …]
H A Drsa_none.c67 RSA_padding_add_none(unsigned char *to, int tlen, const unsigned char *from, in RSA_padding_add_none() argument
70 if (flen > tlen) { in RSA_padding_add_none()
75 if (flen < tlen) { in RSA_padding_add_none()
86 RSA_padding_check_none(unsigned char *to, int tlen, const unsigned char *from, in RSA_padding_check_none() argument
89 if (flen > tlen) { in RSA_padding_check_none()
94 memset(to, 0, tlen - flen); in RSA_padding_check_none()
95 memcpy(to + tlen - flen, from, flen); in RSA_padding_check_none()
96 return tlen; in RSA_padding_check_none()
H A Drsa_oaep.c87 RSA_padding_add_PKCS1_OAEP(unsigned char *to, int tlen, in RSA_padding_add_PKCS1_OAEP() argument
96 RSA_padding_add_PKCS1_OAEP_mgf1(unsigned char *to, int tlen, in RSA_padding_add_PKCS1_OAEP_mgf1() argument
100 int i, emlen = tlen - 1; in RSA_padding_add_PKCS1_OAEP_mgf1()
163 RSA_padding_check_PKCS1_OAEP(unsigned char *to, int tlen, in RSA_padding_check_PKCS1_OAEP() argument
173 RSA_padding_check_PKCS1_OAEP_mgf1(unsigned char *to, int tlen, in RSA_padding_check_PKCS1_OAEP_mgf1() argument
192 if (tlen <= 0 || flen <= 0) in RSA_padding_check_PKCS1_OAEP_mgf1()
283 good &= constant_time_ge(tlen, mlen); in RSA_padding_check_PKCS1_OAEP_mgf1()
295 tlen = constant_time_select_int(constant_time_lt(dblen - mdlen - 1, tlen), in RSA_padding_check_PKCS1_OAEP_mgf1()
296 dblen - mdlen - 1, tlen); in RSA_padding_check_PKCS1_OAEP_mgf1()
299 for (mask = good, i = 0; i < tlen; i++) { in RSA_padding_check_PKCS1_OAEP_mgf1()
[all …]
H A Drsa_x931.c68 RSA_padding_add_X931(unsigned char *to, int tlen, const unsigned char *from, in RSA_padding_add_X931() argument
78 j = tlen - flen - 2; in RSA_padding_add_X931()
105 RSA_padding_check_X931(unsigned char *to, int tlen, const unsigned char *from, in RSA_padding_check_X931() argument
/openbsd/usr.bin/vi/common/
H A Ddelete.c36 size_t blen, len, nlen, tlen; in del() local
107 if ((tlen = fm->cno) != 0) { in del()
110 GET_SPACE_RET(sp, bp, blen, tlen + 256); in del()
111 memcpy(bp, p, tlen); in del()
118 if (len < tm->cno + 1 || len - (tm->cno + 1) > SIZE_MAX - tlen) { in del()
122 nlen = (len - (tm->cno + 1)) + tlen; in del()
123 if (tlen == 0) { in del()
128 memcpy(bp + tlen, p + (tm->cno + 1), len - (tm->cno + 1)); in del()
129 tlen += len - (tm->cno + 1); in del()
133 if (db_set(sp, fm->lno, bp, tlen)) in del()
H A Dmsg.c251 size_t blen, len, tlen; in mod_rpt() local
293 for (p = bp, first = 1, tlen = 0, in mod_rpt()
301 tlen += 2; in mod_rpt()
305 tlen += len; in mod_rpt()
310 tlen += len; in mod_rpt()
312 ++tlen; in mod_rpt()
316 tlen += len; in mod_rpt()
322 ++tlen; in mod_rpt()
325 sp->gp->scr_msg(sp, M_INFO, bp, tlen); in mod_rpt()
/openbsd/usr.bin/vi/vi/
H A Dv_search.c68 size_t len, s_cno, tlen; in v_exaddr() local
221 for (t = cmd + 1, tlen = len - 1; tlen > 0; ++t, --tlen) in v_exaddr()
224 if (tlen && in v_exaddr()
227 --tlen; in v_exaddr()
231 if (tlen) in v_exaddr()
247 tlen = snprintf(buf, in v_exaddr()
249 if (tlen >= sizeof(buf)) in v_exaddr()
250 tlen = sizeof(buf) - 1; in v_exaddr()
251 if (v_event_push(sp, NULL, buf, tlen, CH_NOMAP | CH_QUOTED)) in v_exaddr()
/openbsd/sys/ddb/
H A Ddb_ctf.c187 uint32_t tlen; in db_ctf_type_len() local
206 tlen += sizeof(uint32_t); in db_ctf_type_len()
209 tlen += sizeof(uint32_t); in db_ctf_type_len()
244 return tlen; in db_ctf_type_len()
256 size_t tlen = 0; in db_ctf_type_size() local
277 tlen = size; in db_ctf_type_size()
285 tlen = 0; in db_ctf_type_size()
290 tlen = size; in db_ctf_type_size()
293 tlen = sizeof(void *); in db_ctf_type_size()
300 tlen = db_ctf_type_size(ref); in db_ctf_type_size()
[all …]
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A D20031201-1.c22 unsigned long tlen; in f1() local
38 tlen = test_t1 - test_t0; in f1()
39 if (((tlen-e) & 0x7FFFFFFF) > 1000) in f1()
45 tlen = test_t1 - test_t0; in f1()
46 if (((tlen - e) & 0x7FFFFFFF) > 1000) in f1()
/openbsd/regress/usr.bin/nc/
H A Dclient-tcp.c51 size_t tlen = 0; in main() local
60 if (tlen >= sizeof(todo) / sizeof(todo[0])) in main()
62 task_enqueue(&todo[tlen], ch, optarg); in main()
63 tlen++; in main()
83 task_run(s, todo, tlen); in main()
H A Dserver-tcp.c52 size_t tlen = 0; in main() local
61 if (tlen >= sizeof(todo) / sizeof(todo[0])) in main()
63 task_enqueue(&todo[tlen], ch, optarg); in main()
64 tlen++; in main()
97 task_run(s, todo, tlen); in main()
/openbsd/sys/arch/sparc64/dev/
H A Dpcf8591_ofw.c76 int dlen, clen, tlen, node = *(int *)ia->ia_cookie; in pcfadc_attach() local
103 if ((tlen = OF_getprop(node, "tables", sc->sc_xlate, in pcfadc_attach()
109 if (tlen != 256) { in pcfadc_attach()
110 printf(": invalid \"tables\" length %d\n", tlen); in pcfadc_attach()
114 if ((tlen = OF_getprop(node, "translation", transinfo, in pcfadc_attach()
119 if (tlen != (sc->sc_nchan * 4 * 4)) { in pcfadc_attach()
120 printf(": invalid \"translation\" length %d\n", tlen); in pcfadc_attach()
/openbsd/gnu/usr.bin/perl/regen/
H A Dscope_types.pl42 my $tlen= 0;
52 $tlen= length($line) if $tlen < length($line);
68 -$tlen, $type, length(0 + @types), $id;
82 -$tlen, $type;
/openbsd/sys/kern/
H A Duipc_mbuf2.c91 int hlen, tlen, olen; in m_pulldown() local
143 tlen = len - hlen; in m_pulldown()
161 if ((off == 0 || offp) && m_trailingspace(n) >= tlen && in m_pulldown()
164 m_copydata(n->m_next, 0, tlen, mtod(n, caddr_t) + n->m_len); in m_pulldown()
165 n->m_len += tlen; in m_pulldown()
166 m_adj(n->m_next, tlen); in m_pulldown()
170 !sharedcluster && n->m_next->m_len >= tlen) { in m_pulldown()
207 m_copydata(n->m_next, 0, tlen, mtod(o, caddr_t) + o->m_len); in m_pulldown()
208 o->m_len += tlen; in m_pulldown()
209 m_adj(n->m_next, tlen); in m_pulldown()
/openbsd/usr.bin/tail/
H A Dread.c65 size_t len, tlen; in bytes() local
96 tlen = len; in bytes()
103 if (tlen) { in bytes()
104 WR(sp, tlen); in bytes()
105 tlen = 0; in bytes()
110 if (tlen) in bytes()
111 WR(sp, tlen); in bytes()
/openbsd/usr.bin/vi/ex/
H A Dex_print.c200 size_t col, tlen, ts; in ex_prchars() local
207 for (tlen = ts - col % ts; in ex_prchars()
208 col < sp->cols && tlen--; ++col) { in ex_prchars()
216 tlen = KEY_LEN(sp, ch); in ex_prchars()
217 if (!repeatc && col + tlen < sp->cols) { in ex_prchars()
219 col += tlen; in ex_prchars()
221 for (; tlen--; ++kp, ++col) { in ex_prchars()
H A Dex_join.c36 size_t blen, clen, len, tlen; in ex_join() local
67 clen = tlen = 0; in ex_join()
88 tlen += len + 2; in ex_join()
89 ADD_SPACE_RET(sp, bp, blen, tlen); in ex_join()
H A Dex_script.c280 size_t blen, len, last_len, tlen; in sscr_exec() local
289 if (sscr_matchprompt(sp, p, last_len, &tlen) && tlen == 0) { in sscr_exec()
308 if (sscr_matchprompt(sp, p, len, &tlen)) { in sscr_exec()
309 if (tlen == len) { in sscr_exec()
313 p += (len - tlen); in sscr_exec()
314 len = tlen; in sscr_exec()
488 size_t blen, len, tlen; in sscr_insert() local
536 if (!sscr_matchprompt(sp, t, len, &tlen) || tlen != 0) { in sscr_insert()
H A Dex_argv.c301 size_t blen, len, off, tlen; in argv_fexp() local
315 len += tlen = strlen(exp->lastbcomm); in argv_fexp()
319 memcpy(p, exp->lastbcomm, tlen); in argv_fexp()
320 p += tlen; in argv_fexp()
329 tlen = strlen(t); in argv_fexp()
330 len += tlen; in argv_fexp()
334 memcpy(p, t, tlen); in argv_fexp()
335 p += tlen; in argv_fexp()
344 len += tlen = strlen(t); in argv_fexp()
348 memcpy(p, t, tlen); in argv_fexp()
[all …]
/openbsd/sys/arch/macppc/macppc/
H A Dmainbus.c68 int node, len, tlen; in mbattach() local
74 tlen = strlen(name)+1; in mbattach()
75 if ((t = malloc(tlen, M_DEVBUF, M_NOWAIT)) != NULL) in mbattach()
76 strlcpy(t, name, tlen); in mbattach()
91 free(t, M_DEVBUF, tlen); in mbattach()
/openbsd/usr.sbin/tcpdump/
H A Dprint-slow.c125 u_int tlv_len, tlen, tlv_tlen; in slow_print() local
162 tlen = len - sizeof(struct slow_common_header); in slow_print()
165 while (tlen > 0) { in slow_print()
181 if (tlv_len < sizeof(struct tlv_header_t) || tlv_len > tlen) { in slow_print()
261 tlen -= tlv_len; in slow_print()
H A Dprint-bgp.c451 int tlen, asn_bytes; in bgp_attr_print() local
456 tlen = len; in bgp_attr_print()
561 while (tlen>0) { in bgp_attr_print()
583 tlen -= 4; in bgp_attr_print()
592 while (tlen>0) { in bgp_attr_print()
598 tlen -= 12; in bgp_attr_print()
623 while (tlen>0) { in bgp_attr_print()
628 tlen -=4; in bgp_attr_print()
648 tlen = p[0]; in bgp_attr_print()
649 if (tlen) { in bgp_attr_print()
[all …]
/openbsd/usr.bin/at/
H A Dparsetime.c388 size_t tlen; in tod() local
391 tlen = strlen(sc_token); in tod()
404 } else if (tlen == 4) { in tod()
505 size_t tlen; in month() local
562 tlen = strlen(sc_token); in month()
588 } else if (tlen == 6 || tlen == 8) { in month()
589 if (tlen == 8) { in month()
/openbsd/usr.sbin/smtpd/
H A Dca.c183 size_t flen, tlen, padding; in ca_imsg() local
222 m_get_size(&m, &tlen); in ca_imsg()
230 if ((to = calloc(1, tlen)) == NULL) in ca_imsg()
303 size_t tlen; in rsae_send_imsg() local
356 m_get_data(&m, &toptr, &tlen); in rsae_send_imsg()
360 memcpy(to, toptr, tlen); in rsae_send_imsg()
412 size_t tlen; in ecdsae_send_enc_imsg() local
462 m_get_data(&m, &toptr, &tlen); in ecdsae_send_enc_imsg()
467 d2i_ECDSA_SIG(&sig, (const unsigned char **)&toptr, tlen); in ecdsae_send_enc_imsg()
/openbsd/sys/netinet/
H A Dtcp_input.c211 tcp_reass(struct tcpcb *tp, struct tcphdr *th, struct mbuf *m, int *tlen) in tcp_reass() argument
256 if (i >= *tlen) { in tcp_reass()
258 *tlen); in tcp_reass()
264 *tlen -= i; in tcp_reass()
268 tcpstat_pkt(tcps_rcvoopack, tcps_rcvoobyte, *tlen); in tcp_reass()
277 int i = (th->th_seq + *tlen) - qhdr->th_seq; in tcp_reass()
295 th->th_reseqlen = *tlen; in tcp_reass()
363 int tlen, off; in tcp_input() local
415 tlen = m->m_pkthdr.len - iphlen; in tcp_input()
468 sum = in4_cksum(m, IPPROTO_TCP, iphlen, tlen); in tcp_input()
3530 syn_cache_get(struct sockaddr * src,struct sockaddr * dst,struct tcphdr * th,u_int hlen,u_int tlen,struct socket * so,struct mbuf * m,uint64_t now,int do_ecn) syn_cache_get() argument
3999 u_int16_t tlen; syn_cache_respond() local
[all...]

12345