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

12345

/freebsd-10.0-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)
74 if (flen < tlen)
84 int RSA_padding_check_none(unsigned char *to, int tlen, argument
88 if (flen > tlen)
94 memset(to,0,tlen-flen);
95 memcpy(to+tlen-flen,from,flen);
96 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
135 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;
183 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;
105 int RSA_padding_check_SSLv23(unsigned char *to, int tlen, argument
145 if (j > tlen)
H A Drsa_x931.c66 int RSA_padding_add_X931(unsigned char *to, int tlen, argument
76 j = tlen - flen - 2;
105 int RSA_padding_check_X931(unsigned char *to, int tlen, argument
H A Drsa.h380 int RSA_padding_add_PKCS1_type_1(unsigned char *to,int tlen,
382 int RSA_padding_check_PKCS1_type_1(unsigned char *to,int tlen,
384 int RSA_padding_add_PKCS1_type_2(unsigned char *to,int tlen,
386 int RSA_padding_check_PKCS1_type_2(unsigned char *to,int tlen,
390 int RSA_padding_add_PKCS1_OAEP(unsigned char *to,int tlen,
393 int RSA_padding_check_PKCS1_OAEP(unsigned char *to,int tlen,
396 int RSA_padding_add_SSLv23(unsigned char *to,int tlen,
398 int RSA_padding_check_SSLv23(unsigned char *to,int tlen,
400 int RSA_padding_add_none(unsigned char *to,int tlen,
402 int RSA_padding_check_none(unsigned char *to,int tlen,
[all...]
/freebsd-10.0-release/contrib/nvi/common/
H A Ddelete.c43 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-10.0-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-10.0-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-10.0-release/contrib/wpa/src/utils/
H A Dcommon.c529 size_t tlen; local
534 tlen = pos - value;
535 tstr = os_malloc(tlen + 1);
538 os_memcpy(tstr, value, tlen);
539 tstr[tlen] = '\0';
541 str = os_malloc(tlen + 1);
547 *len = printf_decode((u8 *) str, tlen + 1, tstr);
553 size_t tlen, hlen = os_strlen(value); local
556 tlen = hlen / 2;
557 str = os_malloc(tlen
[all...]
/freebsd-10.0-release/contrib/nvi/ex/
H A Dex_join.c39 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 Dex_print.c209 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--) {
H A Dtag.h103 size_t tlen; /* Tag string length. */ member in struct:_tagq
/freebsd-10.0-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-10.0-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-10.0-release/crypto/openssl/engines/vendor_defns/
H A Dsureware.h171 * out param tlen: byte size of decrypted data, if error, unexpected value
180 int *tlen,unsigned char *to,
192 * out param tlen: byte size of decrypted data, if error, unexpected value
201 int *tlen,unsigned char *to,
/freebsd-10.0-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-10.0-release/lib/libipsec/
H A Dpolicy_parse.y73 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...]
/freebsd-10.0-release/contrib/nvi/vi/
H A Dv_search.c70 size_t len, s_cno, tlen; local
226 for (t = cmd + 1, tlen = len - 1; tlen > 0; ++t, --tlen)
229 if (tlen &&
232 --tlen;
236 if (tlen)
252 tlen = snprintf(buf,
254 CHAR2INT(sp, buf, tlen, w, wlen);
/freebsd-10.0-release/sys/kern/
H A Duipc_mbuf2.c98 int hlen, tlen, olen; local
188 * we need to take hlen from <n, off> and tlen from <n->m_next, 0>,
190 * note that hlen + tlen == len, and tlen > 0.
193 tlen = len - hlen;
211 if ((off == 0 || offp) && M_TRAILINGSPACE(n) >= tlen
213 m_copydata(n->m_next, 0, tlen, mtod(n, caddr_t) + n->m_len);
214 n->m_len += tlen;
215 m_adj(n->m_next, tlen);
245 /* get tlen fro
[all...]

Completed in 309 milliseconds

12345