Searched refs:tlen (Results 1 - 25 of 122) sorted by relevance

12345

/freebsd-9.3-release/crypto/openssl/crypto/rsa/
H A Drsa_none.c65 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 Drsa_pk1.c67 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
136 if (j > tlen) {
145 int RSA_padding_add_PKCS1_type_2(unsigned char *to, int tlen, argument
151 if (flen > (tlen - 11)) {
163 j = tlen - 3 - flen;
182 int RSA_padding_check_PKCS1_type_2(unsigned char *to, int tlen, argument
192 if (tlen <
[all...]
H A Drsa_ssl.c65 int RSA_padding_add_SSLv23(unsigned char *to, int tlen, argument
71 if (flen > (tlen - 11)) {
83 j = tlen - 3 - 8 - flen;
104 int RSA_padding_check_SSLv23(unsigned char *to, int tlen, argument
142 if (j > tlen) {
H A Drsa_x931.c67 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 Drsa.h375 int RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen,
377 int RSA_padding_check_PKCS1_type_1(unsigned char *to, int tlen,
380 int RSA_padding_add_PKCS1_type_2(unsigned char *to, int tlen,
382 int RSA_padding_check_PKCS1_type_2(unsigned char *to, int tlen,
387 int RSA_padding_add_PKCS1_OAEP(unsigned char *to, int tlen,
390 int RSA_padding_check_PKCS1_OAEP(unsigned char *to, int tlen,
393 int RSA_padding_add_SSLv23(unsigned char *to, int tlen,
395 int RSA_padding_check_SSLv23(unsigned char *to, int tlen,
397 int RSA_padding_add_none(unsigned char *to, int tlen, const unsigned char *f,
399 int RSA_padding_check_none(unsigned char *to, int tlen,
[all...]
/freebsd-9.3-release/contrib/ntp/libntp/
H A Dnumtoa.c44 size_t tlen; local
53 tlen = strlen(text);
54 text[tlen] = '.';
55 text[tlen + 1] = '\0';
/freebsd-9.3-release/contrib/nvi/common/
H A Ddelete.c41 size_t blen, len, nlen, tlen; local
110 if ((tlen = fm->cno) != 0) {
113 GET_SPACE_RET(sp, bp, blen, tlen + 256);
114 memcpy(bp, p, tlen);
127 nlen = (len - (tm->cno + 1)) + tlen;
128 if (tlen > nlen) {
132 if (tlen == 0) {
137 memcpy(bp + tlen, p + (tm->cno + 1), len - (tm->cno + 1));
138 tlen += len - (tm->cno + 1);
142 if (db_set(sp, fm->lno, bp, tlen))
[all...]
/freebsd-9.3-release/contrib/tcpdump/
H A Dprint-vqp.c117 int tlen; local
121 tlen = len;
158 tlen-=sizeof(const struct vqp_common_header_t);
160 while (nitems > 0 && tlen > 0) {
166 tlen-=sizeof(struct vqp_obj_tlv_t);
203 tlen -= vqp_obj_len;
H A Dprint-cfm.c298 u_int hexdump, tlen, cfm_tlv_len, cfm_tlv_type, ccm_interval; local
337 tlen = length - sizeof(struct cfm_common_header_t);
469 if (tlen > cfm_common_header->first_tlv_offset) {
471 tlen - cfm_common_header->first_tlv_offset);
479 if (tlen <= cfm_common_header->first_tlv_offset) {
484 tlen -= cfm_common_header->first_tlv_offset;
486 while (tlen > 0) {
508 ((cfm_tlv_len + sizeof(struct cfm_tlv_header_t) > tlen) ||
510 print_unknown_data(tptr,"\n\t ",tlen);
515 tlen
[all...]
H A Dprint-rpki-rtr.c258 u_int encapsulated_pdu_length, text_length, tlen, error_code; local
263 tlen = pdu_len;
272 tlen -= sizeof(*pdu);
278 (encapsulated_pdu_length <= tlen)) {
284 tlen -= encapsulated_pdu_length;
290 if (tlen > 4) {
293 tlen -= 4;
295 if (text_length && (text_length <= tlen )) {
320 u_int tlen, pdu_type, pdu_len; local
325 tlen
[all...]
H A Dprint-sflow.c475 u_int tlen; local
483 tlen = len;
487 if (tlen < sizeof(struct sflow_counter_record_t))
502 tlen -= sizeof(struct sflow_counter_record_t);
504 if (tlen < counter_len)
509 if (print_sflow_counter_generic(tptr,tlen))
513 if (print_sflow_counter_ethernet(tptr,tlen))
517 if (print_sflow_counter_token_ring(tptr,tlen))
521 if (print_sflow_counter_basevg(tptr,tlen))
525 if (print_sflow_counter_vlan(tptr,tlen))
668 u_int tlen; local
819 u_int tlen; local
[all...]
H A Dprint-lwapp.c177 int tlen; local
212 tlen=EXTRACT_16BITS(lwapp_trans_header->length);
220 tlen);
230 while(tlen>0) {
289 tlen -= sizeof(struct lwapp_control_header) + msg_tlen;
302 int tlen; local
332 tlen=EXTRACT_16BITS(lwapp_trans_header->length);
340 tlen);
343 tlen-=sizeof(const struct lwapp_transport_header);
346 print_unknown_data(tptr, "\n\t", tlen);
[all...]
H A Dprint-bgp.c960 int plen,tlen,strlen,tlv_type,tlv_len,ttlv_len; local
964 tlen=plen;
981 tlen-=12;
996 tlen-=15;
999 while (tlen>0) {
1000 if (tlen < 3)
1035 tlen-=(tlv_len<<3); /* the tlv-length is expressed in bits so lets shift it right */
1300 u_int tlen; local
1307 tlen=len;
1425 while (tlen>
[all...]
H A Dprint-slow.c340 void slow_marker_lacp_print(register const u_char *tptr, register u_int tlen) { argument
353 while(tlen>0) {
367 tlv_len > tlen) &&
371 print_unknown_data(tptr+sizeof(struct tlv_header_t),"\n\t ",tlen);
449 tlen-=tlv_len;
456 void slow_oam_print(register const u_char *tptr, register u_int tlen) { argument
485 tlen -= sizeof(struct slow_oam_common_header_t);
495 while (tlen > 0) {
563 tlen -= ptr.slow_oam_tlv_header->length;
569 while (tlen >
[all...]
/freebsd-9.3-release/usr.bin/tail/
H A Dread.c67 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-9.3-release/contrib/nvi/ex/
H A Dex_join.c40 size_t blen, clen, len, tlen; local
71 clen = tlen = 0;
88 * Get more space if necessary. Note, tlen isn't the length
92 tlen += len + 2;
93 ADD_SPACE_RET(sp, bp, blen, tlen);
H A Dex_print.c231 size_t col, tlen, ts; local
239 for (tlen = ts - col % ts;
240 col < sp->cols && tlen--; ++col) {
248 tlen = KEY_LEN(sp, ch);
249 if (!repeatc && col + tlen < sp->cols) {
251 col += tlen;
253 for (; tlen--; ++kp, ++col) {
/freebsd-9.3-release/sys/netinet/libalias/
H A Dalias_ftp.c229 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-9.3-release/usr.sbin/fwcontrol/
H A Dfwdv.c104 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-9.3-release/contrib/nvi/ip/
H A Dip_term.c74 ip_fmap(sp, stype, from, flen, to, tlen)
78 size_t flen, tlen;
/freebsd-9.3-release/crypto/openssl/engines/vendor_defns/
H A Dsureware.h180 * 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-9.3-release/usr.sbin/sysinstall/
H A Dttys.c48 int t, tlen, changed; local
115 tlen = strlen(tnam->ty_type);
119 if (strncmp(p, tnam->ty_type, tlen) == 0) {
130 fwrite(tptr + tlen,
131 len - (tptr + tlen - line), 1, np) != 1)
/freebsd-9.3-release/sys/dev/syscons/daemon/
H A Ddaemon_saver.c212 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-9.3-release/lib/libipsec/
H A Dpolicy_parse.y73 static int tlen = 0; /* total length of pbuf */
299 tlen = sizeof(struct sadb_x_policy);
301 pbuf = malloc(tlen);
306 memset(pbuf, 0, tlen);
314 offset = tlen;
330 tlen += reqlen; /* increment to total length */
332 pbuf = realloc(pbuf, tlen);
361 /* tlen has already incremented */
397 tlen = 0;
415 ((struct sadb_x_policy *)pbuf)->sadb_x_policy_len = PFKEY_UNIT64(tlen);
[all...]
/freebsd-9.3-release/contrib/nvi/vi/
H A Dv_search.c77 size_t len, s_cno, tlen; local
230 for (t = cmd + 1, tlen = len - 1; tlen > 0; ++t, --tlen)
233 if (tlen &&
236 --tlen;
240 if (tlen)
256 tlen = snprintf(buf,
258 if (v_event_push(sp, NULL, buf, tlen, CH_NOMAP | CH_QUOTED))

Completed in 317 milliseconds

12345