HomeSort by: relevance | last modified time | path
    Searched refs:tlen (Results 1 - 25 of 250) sorted by relevancy

1 2 3 4 5 6 7 8 910

  /src/crypto/external/apache2/openssl/dist/crypto/rsa/
rsa_none.c 20 int RSA_padding_add_none(unsigned char *to, int tlen,
23 if (flen > tlen) {
28 if (flen < tlen) {
37 int RSA_padding_check_none(unsigned char *to, int tlen,
41 if (flen > tlen) {
46 memset(to, 0, tlen - flen);
47 memcpy(to + tlen - flen, from, flen);
48 return tlen;
rsa_pk1.c 31 int RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen,
37 if (flen > (tlen - RSA_PKCS1_PADDING_SIZE)) {
48 j = tlen - 3 - flen;
56 int RSA_padding_check_PKCS1_type_1(unsigned char *to, int tlen,
115 if (j > tlen) {
125 int tlen, const unsigned char *from,
131 if (flen > (tlen - RSA_PKCS1_PADDING_SIZE)) {
145 j = tlen - 3 - flen;
164 int RSA_padding_add_PKCS1_type_2(unsigned char *to, int tlen,
167 return ossl_rsa_padding_add_PKCS1_type_2_ex(NULL, to, tlen, from, flen)
    [all...]
rsa_x931.c 43 int RSA_padding_add_X931(unsigned char *to, int tlen,
53 j = tlen - flen - 2;
79 int RSA_padding_check_X931(unsigned char *to, int tlen,
rsa_oaep.c 39 int RSA_padding_add_PKCS1_OAEP(unsigned char *to, int tlen,
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;
151 int RSA_padding_add_PKCS1_OAEP_mgf1(unsigned char *to, int tlen,
156 return ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex(NULL, to, tlen, from, flen,
160 int RSA_padding_check_PKCS1_OAEP(unsigned char *to, int tlen,
164 return RSA_padding_check_PKCS1_OAEP_mgf1(to, tlen, from, flen, num,
168 int RSA_padding_check_PKCS1_OAEP_mgf1(unsigned char *to, int tlen,
211 if (tlen <= 0 || flen <= 0 || mdlen <= 0
    [all...]
  /src/crypto/external/bsd/openssl/dist/crypto/rsa/
rsa_none.c 20 int RSA_padding_add_none(unsigned char *to, int tlen,
23 if (flen > tlen) {
28 if (flen < tlen) {
37 int RSA_padding_check_none(unsigned char *to, int tlen,
41 if (flen > tlen) {
46 memset(to, 0, tlen - flen);
47 memcpy(to + tlen - flen, from, flen);
48 return tlen;
rsa_pk1.c 28 int RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen,
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,
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,
164 return ossl_rsa_padding_add_PKCS1_type_2_ex(NULL, to, tlen, from, flen)
    [all...]
rsa_x931.c 22 int RSA_padding_add_X931(unsigned char *to, int tlen,
33 j = tlen - flen - 2;
59 int RSA_padding_check_X931(unsigned char *to, int tlen,
  /src/crypto/external/bsd/openssl.old/dist/crypto/rsa/
rsa_none.c 14 int RSA_padding_add_none(unsigned char *to, int tlen,
17 if (flen > tlen) {
22 if (flen < tlen) {
31 int RSA_padding_check_none(unsigned char *to, int tlen,
35 if (flen > tlen) {
40 memset(to, 0, tlen - flen);
41 memcpy(to + tlen - flen, from, flen);
42 return tlen;
rsa_pk1.c 18 int RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen,
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,
108 if (j > tlen) {
117 int RSA_padding_add_PKCS1_type_2(unsigned char *to, int tlen,
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,
164 if (tlen <= 0 || flen <= 0
    [all...]
rsa_ssl.c 17 int RSA_padding_add_SSLv23(unsigned char *to, int tlen,
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,
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; i++)
    [all...]
rsa_oaep.c 33 int RSA_padding_add_PKCS1_OAEP(unsigned char *to, int tlen,
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,
47 int i, emlen = tlen - 1;
108 int RSA_padding_check_PKCS1_OAEP(unsigned char *to, int tlen,
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,
140 if (tlen <= 0 || flen <= 0)
234 good &= constant_time_ge(tlen, mlen);
246 tlen = constant_time_select_int(constant_time_lt(dblen - mdlen - 1, tlen)
    [all...]
rsa_x931.c 16 int RSA_padding_add_X931(unsigned char *to, int tlen,
27 j = tlen - flen - 2;
53 int RSA_padding_check_X931(unsigned char *to, int tlen,
  /src/lib/libc/gen/
confstr.c 58 size_t tlen; local
70 if (sysctl(mib, 2, NULL, &tlen, NULL, 0) == -1)
73 if ((p = malloc(tlen)) == NULL)
75 if (sysctl(mib, 2, p, &tlen, NULL, 0) == -1) {
89 return tlen + 1;
  /src/crypto/external/bsd/openssl.old/dist/test/
mdc2test.c 43 size_t tlen = strlen(text); local
46 ebcdic2ascii(text, text, tlen);
52 || !TEST_true(EVP_DigestUpdate(c, (unsigned char *)text, tlen))
60 if (!TEST_true(EVP_DigestUpdate(c, (unsigned char *)text, tlen))
  /src/external/bsd/ntp/dist/libntp/
numtoa.c 50 size_t tlen; local
67 tlen = strlen(text);
68 text[tlen] = '.';
69 text[tlen + 1] = '\0';
  /src/external/bsd/tcpdump/dist/
print-isoclns.c 834 u_int li,li_remaining,tlen,nsap_offset,source_address_length,dest_address_length, clnp_pdu_type, clnp_flags; local
981 tlen = opli;
993 * We do, however, need to check tlen, to make sure we
1001 if (tlen < 2) {
1014 if (nsap_offset > tlen) {
1019 tlen-=nsap_offset;
1020 while (tlen > 0) {
1022 if (tlen < source_address_length+1) {
1032 tlen-=source_address_length+1;
1037 if (tlen < 1)
2489 uint8_t pdu_type, pdu_max_area, max_area, pdu_id_length, id_length, tlv_type, tlv_len, tlen, alen, prefix_len; local
    [all...]
print-vqp.c 112 u_int tlen; local
117 tlen = len;
120 if (sizeof(struct vqp_common_header_t) > tlen)
157 tlen-=sizeof(struct vqp_common_header_t);
159 while (nitems != 0 && tlen != 0) {
163 if (sizeof(struct vqp_obj_tlv_t) > tlen)
168 tlen-=sizeof(struct vqp_obj_tlv_t);
181 if (vqp_obj_len > tlen)
211 tlen -= vqp_obj_len;
print-lwapp.c 176 u_int tlen; local
212 tlen=GET_BE_U_2(lwapp_trans_header->length);
220 tlen);
229 while(tlen!=0) {
233 if (tlen < sizeof(struct lwapp_control_header)) {
240 if (tlen < sizeof(struct lwapp_control_header) + msg_tlen) {
295 tlen -= sizeof(struct lwapp_control_header) + msg_tlen;
309 u_int tlen; local
341 tlen=GET_BE_U_2(lwapp_trans_header->length);
342 if (tlen < sizeof(struct lwapp_transport_header))
    [all...]
print-rpki-rtr.c 291 u_int encapsulated_pdu_length, text_length, tlen, error_code; local
293 tlen = sizeof(rpki_rtr_pdu);
295 if (pdu_len < tlen + 4)
299 tlen += 4;
323 if (pdu_len < tlen + encapsulated_pdu_length)
326 ND_TCHECK_LEN(tptr, tlen + encapsulated_pdu_length);
329 rpki_rtr_pdu_print(ndo, tptr + tlen,
332 tlen += encapsulated_pdu_length;
335 if (pdu_len < tlen + 4)
340 text_length = GET_BE_U_4(tptr + tlen);
    [all...]
print-slow.c 347 const u_char *tptr, u_int tlen,
361 while(tlen>0) {
363 if (tlen < sizeof(struct tlv_header_t))
393 if (tlen < tlv_len)
474 tlen-=tlv_len;
484 const u_char *tptr, u_int tlen)
516 if (tlen < sizeof(*ptr.slow_oam_common_header))
520 tlen -= sizeof(struct slow_oam_common_header_t);
531 while (tlen > 0) {
533 if (tlen < sizeof(*ptr.slow_oam_tlv_header)
    [all...]
  /src/external/bsd/nvi/dist/common/
delete.c 44 size_t blen, len, nlen, tlen; local
116 if ((tlen = fm->cno) != 0) {
119 GET_SPACE_RETW(sp, bp, blen, tlen + 256);
120 MEMCPYW(bp, p, tlen);
133 nlen = (len - (tm->cno + 1)) + tlen;
134 if (tlen > nlen) {
138 if (tlen == 0) {
143 MEMCPYW(bp + tlen, p + (tm->cno + 1), len - (tm->cno + 1));
144 tlen += len - (tm->cno + 1);
148 if (db_set(sp, fm->lno, bp, tlen))
    [all...]
  /src/usr.sbin/npf/npftest/libnpftest/
npf_nbuf_test.c 78 unsigned tlen = 0; local
84 s[tlen++] = *d++;
140 unsigned tlen = 0, n = 0; local
142 while (tlen < chain_len) {
151 if (tlen + len > chain_len) {
152 len = chain_len - tlen;
154 tlen += len;
168 KASSERT(tlen == chain_len);
171 m0->m_pkthdr.len = tlen;
  /src/crypto/external/apache2/openssl/dist/test/
mdc2test.c 52 size_t tlen = strlen(text), i = 0; local
65 ebcdic2ascii(text, text, tlen);
71 || !TEST_true(EVP_DigestUpdate(c, (unsigned char *)text, tlen))
78 || !TEST_true(EVP_DigestUpdate(c, (unsigned char *)text, tlen))
  /src/crypto/external/bsd/openssl/dist/test/
mdc2test.c 53 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))
  /src/lib/libwrap/
expandm.c 71 size_t tlen; local
75 * tlen, then don't bother. The format string is
83 tlen = nlen + blen;
85 nbuf = realloc(buf, tlen + 1);
90 nbuf[tlen] = '\0';

Completed in 33 milliseconds

1 2 3 4 5 6 7 8 910