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

1234567

/freebsd-current/crypto/openssl/crypto/rsa/
H A Drsa_none.c20 int RSA_padding_add_none(unsigned char *to, int tlen, argument
23 if (flen > tlen) {
28 if (flen < tlen) {
37 int RSA_padding_check_none(unsigned char *to, int tlen, argument
41 if (flen > tlen) {
46 memset(to, 0, tlen - flen);
47 memcpy(to + tlen - flen, from, flen);
48 return tlen;
H A Drsa_pk1.c28 int RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen, argument
34 if (flen > (tlen - RSA_PKCS1_PADDING_SIZE)) {
45 j = tlen - 3 - flen;
53 int RSA_padding_check_PKCS1_type_1(unsigned char *to, int tlen, argument
112 if (j > tlen) {
122 int tlen, const unsigned char *from,
128 if (flen > (tlen - RSA_PKCS1_PADDING_SIZE)) {
142 j = tlen - 3 - flen;
161 int RSA_padding_add_PKCS1_type_2(unsigned char *to, int tlen, argument
164 return ossl_rsa_padding_add_PKCS1_type_2_ex(NULL, to, tlen, fro
121 ossl_rsa_padding_add_PKCS1_type_2_ex(OSSL_LIB_CTX *libctx, unsigned char *to, int tlen, const unsigned char *from, int flen) argument
167 RSA_padding_check_PKCS1_type_2(unsigned char *to, int tlen, const unsigned char *from, int flen, int num) argument
297 ossl_rsa_padding_check_PKCS1_type_2_TLS(OSSL_LIB_CTX *libctx, unsigned char *to, size_t tlen, const unsigned char *from, size_t flen, int client_version, int alt_version) argument
[all...]
H A Drsa_x931.c22 int RSA_padding_add_X931(unsigned char *to, int tlen, argument
33 j = tlen - flen - 2;
59 int RSA_padding_check_X931(unsigned char *to, int tlen, argument
H A Drsa_oaep.c39 int RSA_padding_add_PKCS1_OAEP(unsigned char *to, int tlen, argument
43 return ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex(NULL, to, tlen, from, flen,
55 unsigned char *to, int tlen,
62 int i, emlen = tlen - 1;
141 int RSA_padding_add_PKCS1_OAEP_mgf1(unsigned char *to, int tlen, argument
146 return ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex(NULL, to, tlen, from, flen,
150 int RSA_padding_check_PKCS1_OAEP(unsigned char *to, int tlen, argument
154 return RSA_padding_check_PKCS1_OAEP_mgf1(to, tlen, from, flen, num,
158 int RSA_padding_check_PKCS1_OAEP_mgf1(unsigned char *to, int tlen, argument
189 if (tlen <
54 ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex(OSSL_LIB_CTX *libctx, unsigned char *to, int tlen, const unsigned char *from, int flen, const unsigned char *param, int plen, const EVP_MD *md, const EVP_MD *mgf1md) argument
[all...]
/freebsd-current/contrib/bearssl/src/rsa/
H A Drsa_i31_modulus.c34 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)) {
H A Drsa_i15_modulus.c34 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)) {
/freebsd-current/contrib/ntp/libntp/
H A Dnumtoa.c45 size_t tlen; local
56 tlen = strlen(text);
57 text[tlen] = '.';
58 text[tlen + 1] = '\0';
/freebsd-current/contrib/bearssl/src/int/
H A Di15_decmod.c55 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 Di31_decmod.c55 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-current/contrib/tcpdump/
H A Dprint-isoclns.c831 u_int li,li_remaining,tlen,nsap_offset,source_address_length,dest_address_length, clnp_pdu_type, clnp_flags; local
978 tlen = opli;
990 * We do, however, need to check tlen, to make sure we
998 if (tlen < 2) {
1011 if (nsap_offset > tlen) {
1016 tlen-=nsap_offset;
1017 while (tlen > 0) {
1019 if (tlen < source_address_length+1) {
1029 tlen-=source_address_length+1;
1034 if (tlen <
2365 isis_print_router_cap_subtlv(netdissect_options *ndo, const uint8_t *tptr, uint8_t tlen) argument
2492 uint8_t pdu_type, pdu_max_area, max_area, pdu_id_length, id_length, tlv_type, tlv_len, tlen, alen, prefix_len; local
[all...]
H A Dprint-rpki-rtr.c288 u_int encapsulated_pdu_length, text_length, tlen, error_code; local
290 tlen = sizeof(rpki_rtr_pdu);
292 if (pdu_len < tlen + 4)
294 ND_TCHECK_LEN(tptr, tlen + 4);
300 tlen += 4;
321 if (pdu_len < tlen + encapsulated_pdu_length)
324 ND_TCHECK_LEN(tptr, tlen + encapsulated_pdu_length);
328 rpki_rtr_pdu_print(ndo, tptr + tlen,
331 tlen += encapsulated_pdu_length;
334 if (pdu_len < tlen
[all...]
H A Dprint-vqp.c109 u_int tlen; local
114 tlen = len;
117 if (sizeof(struct vqp_common_header_t) > tlen)
154 tlen-=sizeof(struct vqp_common_header_t);
156 while (nitems != 0 && tlen != 0) {
160 if (sizeof(struct vqp_obj_tlv_t) > tlen)
165 tlen-=sizeof(struct vqp_obj_tlv_t);
178 if (vqp_obj_len > tlen)
208 tlen -= vqp_obj_len;
H A Dprint-lwapp.c173 u_int tlen; local
209 tlen=GET_BE_U_2(lwapp_trans_header->length);
217 tlen);
226 while(tlen!=0) {
230 if (tlen < sizeof(struct lwapp_control_header)) {
237 if (tlen < sizeof(struct lwapp_control_header) + msg_tlen) {
292 tlen -= sizeof(struct lwapp_control_header) + msg_tlen;
306 u_int tlen; local
338 tlen=GET_BE_U_2(lwapp_trans_header->length);
339 if (tlen < sizeo
[all...]
H A Dprint-slow.c344 const u_char *tptr, u_int tlen,
358 while(tlen>0) {
360 if (tlen < sizeof(struct tlv_header_t))
390 if (tlen < tlv_len)
471 tlen-=tlv_len;
481 const u_char *tptr, u_int tlen)
513 if (tlen < sizeof(*ptr.slow_oam_common_header))
517 tlen -= sizeof(struct slow_oam_common_header_t);
528 while (tlen > 0) {
530 if (tlen < sizeo
343 slow_marker_lacp_print(netdissect_options *ndo, const u_char *tptr, u_int tlen, u_int proto_subtype) argument
480 slow_oam_print(netdissect_options *ndo, const u_char *tptr, u_int tlen) argument
[all...]
H A Dprint-cfm.c282 u_int hexdump, tlen, cfm_tlv_len, cfm_tlv_type, ccm_interval; local
328 tlen = length - sizeof(struct cfm_common_header_t);
333 if (first_tlv_offset > tlen) {
334 ND_PRINT(" (too large, must be <= %u)", tlen);
346 if (tlen < sizeof(*msg_ptr.cfm_ccm))
475 if (tlen < sizeof(*msg_ptr.cfm_ltm))
498 if (tlen < sizeof(*msg_ptr.cfm_ltr))
524 tlen - first_tlv_offset);
529 tlen -= first_tlv_offset;
531 while (tlen >
[all...]
H A Dprint-sflow.c487 u_int tlen; local
495 tlen = len;
499 if (tlen < sizeof(struct sflow_counter_record_t))
514 tlen -= sizeof(struct sflow_counter_record_t);
516 if (tlen < counter_len)
521 if (print_sflow_counter_generic(ndo, tptr, tlen))
525 if (print_sflow_counter_ethernet(ndo, tptr, tlen))
529 if (print_sflow_counter_token_ring(ndo, tptr,tlen))
533 if (print_sflow_counter_basevg(ndo, tptr, tlen))
537 if (print_sflow_counter_vlan(ndo, tptr, tlen))
676 u_int tlen; local
823 u_int tlen; local
[all...]
/freebsd-current/contrib/nvi/common/
H A Ddelete.c35 size_t blen, len, nlen, tlen; local
107 if ((tlen = fm->cno) != 0) {
110 GET_SPACE_RETW(sp, bp, blen, tlen + 256);
111 MEMCPY(bp, p, tlen);
124 nlen = (len - (tm->cno + 1)) + tlen;
125 if (tlen > nlen) {
129 if (tlen == 0) {
134 MEMCPY(bp + tlen, p + (tm->cno + 1), len - (tm->cno + 1));
135 tlen += len - (tm->cno + 1);
139 if (db_set(sp, fm->lno, bp, tlen))
[all...]
/freebsd-current/contrib/bearssl/src/kdf/
H A Dhkdf.c72 size_t tlen; local
74 tlen = 0;
84 return tlen;
104 tlen += clen;
106 return tlen;
/freebsd-current/crypto/openssl/test/
H A Dmdc2test.c53 size_t tlen = strlen(text), i = 0; local
63 ebcdic2ascii(text, text, tlen);
69 || !TEST_true(EVP_DigestUpdate(c, (unsigned char *)text, tlen))
76 || !TEST_true(EVP_DigestUpdate(c, (unsigned char *)text, tlen))
/freebsd-current/usr.bin/tail/
H A Dread.c66 int ch, len, tlen; local
94 tlen = len;
101 if (tlen) {
102 WR(sp, tlen);
103 tlen = 0;
108 if (tlen)
109 WR(sp, tlen);
/freebsd-current/sys/netinet/tcp_stacks/
H A Drack_bbr_common.c139 int32_t tlen; local
181 tlen = ntohs(ip6->ip6_plen);
186 th->th_sum = in6_cksum_pseudo(ip6, tlen,
191 th->th_sum = in6_cksum(m, IPPROTO_TCP, drop_hdrlen, tlen);
214 tlen = ntohs(ip->ip_len) - sizeof(struct ip);
221 htonl(m->m_pkthdr.csum_data + tlen + IPPROTO_TCP));
229 len = drop_hdrlen + tlen;
231 ipov->ih_len = htons(tlen);
361 int32_t retval, nxt_pkt, tlen, off; local
403 tlen
524 ctf_do_dropwithreset(struct mbuf *m, struct tcpcb *tp, struct tcphdr *th, int32_t rstreason, int32_t tlen) argument
578 int32_t tlen; local
680 __ctf_do_dropafterack(struct mbuf *m, struct tcpcb *tp, struct tcphdr *th, int32_t thflags, int32_t tlen, int32_t *ret_val, uint32_t *ts, uint32_t *cnt) argument
851 ctf_ts_check(struct mbuf *m, struct tcphdr *th, struct tcpcb *tp, int32_t tlen, int32_t thflags, int32_t * ret_val) argument
925 ctf_do_dropwithreset_conn(struct mbuf *m, struct tcpcb *tp, struct tcphdr *th, int32_t rstreason, int32_t tlen) argument
[all...]
/freebsd-current/contrib/nvi/ex/
H A Dex_join.c35 size_t blen, clen, len, tlen; local
60 clen = tlen = 0;
77 * Get more space if necessary. Note, tlen isn't the length
81 tlen += len + 2;
82 ADD_SPACE_RETW(sp, bp, blen, tlen);
/freebsd-current/sys/netinet/libalias/
H A Dalias_ftp.c223 int hlen, tlen, dlen, pflags; local
231 tlen = ntohs(pip->ip_len);
232 dlen = tlen - hlen;
269 tlen = ntohs(pip->ip_len); /* recalc tlen, pkt may have grown */
270 if (sptr[tlen - 2] == '\r' && sptr[tlen - 1] == '\n')
283 int hlen, tlen, dlen, pflags; local
290 tlen = ntohs(pip->ip_len);
291 dlen = tlen
654 int slen, hlen, tlen, dlen; local
[all...]
/freebsd-current/usr.sbin/fwcontrol/
H A Dfwdv.c100 int len, tlen, npad, fd, k, m, vec, system = -1, nb; local
134 tlen = 0;
135 while ((len = read(d, buf + tlen, PSIZE
136 /* RBUFSIZE - tlen */)) > 0) {
146 tlen += len;
147 if ((RBUFSIZE - tlen) < PSIZE)
151 tlen = len = read(d, buf, RBUFSIZE);
240 if ((char *)ptr < buf + tlen)
258 int len, tlen, header, fd, frames, packets, vec, offset, nhdr, i; local
320 tlen
[all...]
/freebsd-current/crypto/openssl/providers/implementations/ciphers/
H A Dciphercommon_ccm_hw.c26 int ossl_ccm_generic_gettag(PROV_CCM_CTX *ctx, unsigned char *tag, size_t tlen) argument
28 return CRYPTO_ccm128_tag(&ctx->ccm_ctx, tag, tlen) > 0;

Completed in 324 milliseconds

1234567