Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 69) sorted by relevance

123

/openssl/crypto/bio/
H A Dbio_print.c99 int max; in _dopr() local
107 max = -1; in _dopr()
172 max = 10 * max + char_to_int(ch); in _dopr()
410 while ((padlen > 0) && (max < 0 || cnt < max)) { in fmtstr()
416 while (strln > 0 && (max < 0 || cnt < max)) { in fmtstr()
422 while ((padlen < 0) && (max < 0 || cnt < max)) { in fmtstr()
446 if (max < 0) in fmtint()
447 max = 0; in fmtint()
584 if (max < 0) in fmtfp()
585 max = 6; in fmtfp()
[all …]
H A Dbss_mem.c101 b->max = sz; in BIO_new_mem_buf()
204 bm->max -= ret; in mem_read()
266 memset(bm->data, 0, bm->max); in mem_ctrl()
282 bm->max = bo->max - num; in mem_ctrl()
/openssl/include/internal/
H A Dsafe_math.h32 # define OSSL_SAFE_MATH_ADDS(type_name, type, min, max) \ argument
45 # define OSSL_SAFE_MATH_ADDU(type_name, type, max) \ argument
59 # define OSSL_SAFE_MATH_ADDS(type_name, type, min, max) \ argument
73 # define OSSL_SAFE_MATH_ADDU(type_name, type, max) \ argument
88 # define OSSL_SAFE_MATH_SUBS(type_name, type, min, max) \ argument
102 # define OSSL_SAFE_MATH_SUBS(type_name, type, min, max) \ argument
145 # define OSSL_SAFE_MATH_MULU(type_name, type, max) \ argument
181 # define OSSL_SAFE_MATH_MULU(type_name, type, max) \ argument
211 # define OSSL_SAFE_MATH_DIVU(type_name, type, max) \ argument
317 # define OSSL_SAFE_MATH_MULDIVS(type_name, type, max) \ argument
[all …]
/openssl/crypto/bn/
H A Dbn_add.c78 int max, min, dif; in BN_uadd() local
92 max = a->top; in BN_uadd()
94 dif = max - min; in BN_uadd()
99 r->top = max; in BN_uadd()
127 int max, min, dif; in BN_usub() local
134 max = a->top; in BN_usub()
136 dif = max - min; in BN_usub()
143 if (bn_wexpand(r, max) == NULL) in BN_usub()
162 while (max && *--rp == 0) in BN_usub()
163 max--; in BN_usub()
[all …]
H A Dbn_sqr.c29 int max, al; in bn_sqr_fixed_top() local
48 max = 2 * al; /* Non-zero (from above) */ in bn_sqr_fixed_top()
49 if (bn_wexpand(rr, max) == NULL) in bn_sqr_fixed_top()
82 if (bn_wexpand(tmp, max) == NULL) in bn_sqr_fixed_top()
88 if (bn_wexpand(tmp, max) == NULL) in bn_sqr_fixed_top()
95 rr->top = max; in bn_sqr_fixed_top()
111 int i, j, max; in bn_sqr_normal() local
115 max = n * 2; in bn_sqr_normal()
118 rp[0] = rp[max - 1] = 0; in bn_sqr_normal()
135 bn_add_words(r, r, r, max); in bn_sqr_normal()
[all …]
H A Dbn_gf2m.c469 const int max = BN_num_bits(p) + 1; in BN_GF2m_mod_mul() local
479 ret = BN_GF2m_poly2arr(p, arr, max); in BN_GF2m_mod_mul()
480 if (!ret || ret > max) { in BN_GF2m_mod_mul()
530 const int max = BN_num_bits(p) + 1; in BN_GF2m_mod_sqr() local
540 if (!ret || ret > max) { in BN_GF2m_mod_sqr()
912 const int max = BN_num_bits(p) + 1; in BN_GF2m_mod_exp() local
923 if (!ret || ret > max) { in BN_GF2m_mod_exp()
985 if (!ret || ret > max) { in BN_GF2m_mod_sqrt()
1119 if (!ret || ret > max) { in BN_GF2m_mod_solve_quad()
1152 if (k < max) in BN_GF2m_poly2arr()
[all …]
H A Dbn_mont.c92 int nl, max, i; in bn_from_montgomery_word() local
102 max = (2 * nl); /* carry is stored separately */ in bn_from_montgomery_word()
103 if (bn_wexpand(r, max) == NULL) in bn_from_montgomery_word()
111 for (rtop = r->top, i = 0; i < max; i++) { in bn_from_montgomery_word()
116 r->top = max; in bn_from_montgomery_word()
/openssl/crypto/sm2/
H A Dsm2_key.c25 BIGNUM *max = NULL; in ossl_sm2_key_private_check() local
38 max = BN_dup(order); in ossl_sm2_key_private_check()
39 if (max == NULL || !BN_sub_word(max, 1)) in ossl_sm2_key_private_check()
42 || BN_cmp(priv_key, max) >= 0) { in ossl_sm2_key_private_check()
49 BN_free(max); in ossl_sm2_key_private_check()
/openssl/crypto/x509/
H A Dv3_asid.c36 ASN1_SIMPLE(ASRange, max, ASN1_INTEGER)
219 if (max == NULL) { in X509v3_asid_add_id_or_range()
229 aor->u.range->max = max; in X509v3_asid_add_id_or_range()
252 *max = aor->u.id; in extract_min_max()
256 *max = aor->u.range->max; in extract_min_max()
455 r->max = b_max; in ASIdentifierChoice_canonize()
461 a->u.range->max = b_max; in ASIdentifierChoice_canonize()
469 b->u.range->max = NULL; in ASIdentifierChoice_canonize()
522 ASN1_INTEGER *min = NULL, *max = NULL; in v2i_ASIdentifiers() local
617 min = max = NULL; in v2i_ASIdentifiers()
[all …]
H A Dv3_addr.c38 ASN1_SIMPLE(IPAddressRange, max, ASN1_BIT_STRING)
363 assert(memcmp(min, max, length) <= 0); in range_should_be_prefix()
371 mask = min[i] ^ max[i]; in range_should_be_prefix()
446 if (memcmp(min, max, length) > 0) in make_addressRange()
460 if (aor->u.addressRange->max == NULL && in make_addressRange()
478 if (!ASN1_BIT_STRING_set(aor->u.addressRange->max, max, i)) in make_addressRange()
482 unsigned char b = max[i - 1]; in make_addressRange()
487 aor->u.addressRange->max->flags |= 8 - j; in make_addressRange()
637 if (!make_addressRange(&aor, min, max, length)) in X509v3_addr_add_range()
651 if (aor == NULL || min == NULL || max == NULL) in extract_min_max()
[all …]
/openssl/crypto/buffer/
H A Dbuffer.c47 OPENSSL_secure_clear_free(a->data, a->max); in BUF_MEM_free()
49 OPENSSL_clear_free(a->data, a->max); in BUF_MEM_free()
80 if (str->max >= len) { in BUF_MEM_grow()
100 str->max = n; in BUF_MEM_grow()
118 if (str->max >= len) { in BUF_MEM_grow_clean()
132 ret = OPENSSL_clear_realloc(str->data, str->max, n); in BUF_MEM_grow_clean()
137 str->max = n; in BUF_MEM_grow_clean()
/openssl/ms/
H A Duplink-common.pl14 @max=grep {/APPLINK_MAX\s+(\d+)/} <INPUT>;
16 ($#max==0) or die "can't find APPLINK_MAX in $applink_c";
18 $max[0]=~/APPLINK_MAX\s+(\d+)/;
/openssl/crypto/asn1/
H A Dasn1_lib.c17 long max);
53 long max = omax; in ASN1_get_object() local
64 if (--max == 0) in ASN1_get_object()
70 if (--max == 0) in ASN1_get_object()
78 if (--max == 0) in ASN1_get_object()
83 if (--max == 0) in ASN1_get_object()
88 if (!asn1_get_length(&p, &inf, plength, max)) in ASN1_get_object()
117 long max) in asn1_get_length() argument
123 if (max-- < 1) in asn1_get_length()
132 if (max < i + 1) in asn1_get_length()
/openssl/crypto/
H A Dalphacpuid.pl166 my ($out,$cnt,$max)=("\$16","\$17","\$18");
236 subl $max,1,$max
237 beq $max,.Ldone2
H A Dppccpuid.pl220 my ($out,$cnt,$max)=("r3","r4","r5");
283 addic. $max,$max,-1
367 addic. $max,$max,-1
H A Dx86_64cpuid.pl376 my $max="%r11";
390 mov $arg2,$max
412 mov $max,%rax
425 mov $arg3,$max
446 sub \$1,$max
H A Dprovider_core.c610 int i, max; in create_provider_children() local
613 for (i = 0; i < max; i++) { in create_provider_children()
1475 max--; in ossl_provider_doall_activated()
1752 int i, max; in ossl_provider_default_props_update() local
1762 for (i = 0; i < max; i++) { in ossl_provider_default_props_update()
1792 int ret = 0, i, max; in ossl_provider_register_child_cb() local
1819 for (i = 0; i < max; i++) { in ossl_provider_register_child_cb()
1840 if (i == max) { in ossl_provider_register_child_cb()
1844 if (i != max || ret <= 0) { in ossl_provider_register_child_cb()
1867 int i, max; in ossl_provider_deregister_child_cb() local
[all …]
H A Dppccap.c79 size_t OPENSSL_instrument_bus2(unsigned int *out, size_t cnt, size_t max) in OPENSSL_instrument_bus2() argument
82 return OPENSSL_instrument_bus2_mftb(out, cnt, max); in OPENSSL_instrument_bus2()
84 return OPENSSL_instrument_bus2_mfspr268(out, cnt, max); in OPENSSL_instrument_bus2()
H A Dpariscid.pl175 my ($out,$cnt,$max)=("%r26","%r25","%r24");
241 addib,= -1,$max,L\$done2
/openssl/test/
H A Dconf_include_test.c186 char max[(sizeof(long) * 8) / 3 + 3]; in test_check_overflow() local
189 p = max + sprintf(max, "0%ld", LONG_MAX) - 1; in test_check_overflow()
190 setenv("FNORD", max, 1); in test_check_overflow()
198 setenv("FNORD", max, 1); in test_check_overflow()
H A Dcurve448_internal_test.c17 static unsigned int max = 1000; variable
667 for (i = 1; i <= max; i++) { in test_x448()
726 max = 1000000; in setup_tests()
/openssl/crypto/ec/asm/
H A Decp_nistp521-ppc64.pl68 my ($min, $max) = @_;
70 my $count = $max - $min + 1;
77 for (my $i = $min; $i <= $max; $i++) {
78 my $mult = $max - $i + 1;
92 my ($min, $max) = @_;
97 for (my $i = $min; $i <= $max; $i++) {
98 my $mult = $max - $i + 1;
/openssl/doc/man3/
H A DOPENSSL_instrument_bus.pod11 size_t OPENSSL_instrument_bus2(unsigned int *vector, size_t num, size_t max);
32 performs at most B<max> probes in attempt to fill the B<vector[num]>,
33 with B<max> value of 0 meaning "as many as it takes."
/openssl/crypto/txt_db/
H A Dtxt_db.c282 char **p, *max; in TXT_DB_free() local
299 max = p[db->num_fields]; /* last address */ in TXT_DB_free()
300 if (max == NULL) { /* new row */ in TXT_DB_free()
305 if (((p[n] < (char *)p) || (p[n] > max))) in TXT_DB_free()
/openssl/test/recipes/04-test_asn1_stable_parse_data/
H A Dasn1_stable_parse.cnf13 id-tc31 = n2:max

Completed in 54 milliseconds

123