Home
last modified time | relevance | path

Searched refs:a (Results 1 – 25 of 1725) sorted by relevance

12345678910>>...69

/openssl/test/
H A Dtestutil.h511 # define TEST_ptr(a) test_ptr(__FILE__, __LINE__, #a, a) argument
512 # define TEST_ptr_null(a) test_ptr_null(__FILE__, __LINE__, #a, a) argument
533 # define TEST_BN_eq_zero(a) test_BN_eq_zero(__FILE__, __LINE__, #a, a) argument
534 # define TEST_BN_ne_zero(a) test_BN_ne_zero(__FILE__, __LINE__, #a, a) argument
535 # define TEST_BN_lt_zero(a) test_BN_lt_zero(__FILE__, __LINE__, #a, a) argument
536 # define TEST_BN_gt_zero(a) test_BN_gt_zero(__FILE__, __LINE__, #a, a) argument
537 # define TEST_BN_le_zero(a) test_BN_le_zero(__FILE__, __LINE__, #a, a) argument
538 # define TEST_BN_ge_zero(a) test_BN_ge_zero(__FILE__, __LINE__, #a, a) argument
539 # define TEST_BN_eq_one(a) test_BN_eq_one(__FILE__, __LINE__, #a, a) argument
542 # define TEST_BN_odd(a) test_BN_odd(__FILE__, __LINE__, #a, a) argument
[all …]
H A Dconstant_time_test.c264 a, b, a < b) in test_binops()
266 b, a, b < a) in test_binops()
268 a, b, a >= b) in test_binops()
270 b, a, b >= a) in test_binops()
272 a, b, a == b) in test_binops()
274 b, a, b == a)) in test_binops()
290 a, b, a < b) in test_binops_8()
292 b, a, b < a) in test_binops_8()
294 a, b, a >= b) in test_binops_8()
318 a, b, a < b) in test_binops_s()
[all …]
H A Dsafe_math_test.c29 int a, b; member
58 const int a = test_ints[n].a, b = test_ints[n].b; in test_int_ops() local
114 || (!err && !TEST_int_eq(r, a < 0 ? -a : a))) in test_int_ops()
147 const unsigned int a = test_uints[n].a, b = test_uints[n].b; in test_uint_ops() local
182 || (!err && !TEST_uint_eq(r, a / b + (a % b != 0)))) in test_uint_ops()
211 size_t a, b; member
230 const size_t a = test_size_ts[n].a, b = test_size_ts[n].b; in test_size_t_ops() local
265 || (!err && !TEST_size_t_eq(r, a / b + (a % b != 0)))) in test_size_t_ops()
294 int a, b, c; member
317 const int a = test_muldiv_ints[n].a; in test_int_muldiv() local
[all …]
H A Dbuild.info322 DEPEND[quic_wire_test]=../libcrypto.a ../libssl.a libtestutil.a
326 DEPEND[quic_record_test]=../libcrypto.a ../libssl.a libtestutil.a
330 DEPEND[quic_fc_test]=../libcrypto.a ../libssl.a libtestutil.a
338 DEPEND[quic_cfq_test]=../libcrypto.a ../libssl.a libtestutil.a
342 DEPEND[quic_txpim_test]=../libcrypto.a ../libssl.a libtestutil.a
346 DEPEND[quic_srtm_test]=../libcrypto.a ../libssl.a libtestutil.a
350 DEPEND[quic_lcidm_test]=../libcrypto.a ../libssl.a libtestutil.a
354 DEPEND[quic_rcidm_test]=../libcrypto.a ../libssl.a libtestutil.a
358 DEPEND[quic_fifd_test]=../libcrypto.a ../libssl.a libtestutil.a
362 DEPEND[quic_txp_test]=../libcrypto.a ../libssl.a libtestutil.a
[all …]
H A Dquic_record_test_util.h24 if (!TEST_int_eq(a->type, b->type) in cmp_pkt_hdr()
27 || !TEST_int_eq(a->pn_len, b->pn_len) in cmp_pkt_hdr()
28 || !TEST_int_eq(a->partial, b->partial) in cmp_pkt_hdr()
29 || !TEST_int_eq(a->fixed, b->fixed) in cmp_pkt_hdr()
30 || !TEST_int_eq(a->unused, b->unused) in cmp_pkt_hdr()
35 || !TEST_mem_eq(a->pn, sizeof(a->pn), b->pn, sizeof(b->pn)) in cmp_pkt_hdr()
37 || !TEST_uint64_t_eq(a->len, b->len)) in cmp_pkt_hdr()
40 if (a->token_len > 0 && b->token_len > 0 in cmp_pkt_hdr()
41 && !TEST_mem_eq(a->token, a->token_len, b->token, b->token_len)) in cmp_pkt_hdr()
44 if ((a->token_len == 0 && !TEST_ptr_null(a->token)) in cmp_pkt_hdr()
[all …]
H A Dbntests.pl34 my $a = bn($s{'A'});
40 my $a = bn($s{'A'});
45 my $a = bn($s{'A'});
51 my $a = bn($s{'A'});
57 my $a = bn($s{'A'});
58 return if $square == $a->bmul($a);
81 $a = bn($s{'A'});
84 $a->babs();
86 $a->bdiv($b);
95 $a->bmul($b);
[all …]
/openssl/include/internal/
H A Dconstant_time.h102 return 0 - (a >> (sizeof(a) * 8 - 1)); in constant_time_msb()
118 return 0 - (a >> (sizeof(a) * 8 - 1)); in constant_time_msb_s()
124 return constant_time_msb(a ^ ((a ^ b) | ((a - b) ^ b))); in constant_time_lt()
129 return constant_time_msb_s(a ^ ((a ^ b) | ((a - b) ^ b))); in constant_time_lt_s()
140 return constant_time_msb_64(a ^ ((a ^ b) | ((a - b) ^ b))); in constant_time_lt_64()
157 return 0 - (a >> (sizeof(a) * 8 - 1)); in constant_time_msb_bn()
162 return constant_time_msb_bn(a ^ ((a ^ b) | ((a - b) ^ b))); in constant_time_lt_bn()
167 return constant_time_msb_bn(~a & (a - 1)); in constant_time_is_zero_bn()
208 return constant_time_msb(~a & (a - 1)); in constant_time_is_zero()
213 return constant_time_msb_s(~a & (a - 1)); in constant_time_is_zero_s()
[all …]
H A Dsafe_math.h33 static ossl_inline ossl_unused type safe_add_ ## type_name(type a, \
39 if (!__builtin_add_overflow(a, b, &r)) \
42 return a < 0 ? min : max; \
46 static ossl_inline ossl_unused type safe_add_ ## type_name(type a, \
52 if (!__builtin_add_overflow(a, b, &r)) \
60 static ossl_inline ossl_unused type safe_add_ ## type_name(type a, \
65 || (a > 0 && b <= max - a) \
66 || (a < 0 && b >= min - a) \
171 const type x = a < 0 ? -a : a; \
283 return a < 0 ? -a : a; \
[all …]
/openssl/crypto/ts/
H A Dts_rsp_utils.c43 a->token = p7; in TS_RESP_set_tst_info()
50 return a->token; in TS_RESP_get_token()
55 return a->tst_info; in TS_RESP_get_tst_info()
128 return a->serial; in TS_TST_INFO_get_serial()
149 return a->time; in TS_TST_INFO_get_time()
214 return a->millis; in TS_ACCURACY_get_millis()
237 return a->micros; in TS_ACCURACY_get_micros()
269 return a->nonce; in TS_TST_INFO_get_nonce()
290 return a->tsa; in TS_TST_INFO_get_tsa()
300 if (!a) in TS_TST_INFO_ext_free()
[all …]
H A Dts_req_utils.c45 return a->msg_imprint; in TS_REQ_get_msg_imprint()
60 a->hash_algo = new_alg; in TS_MSG_IMPRINT_set_algo()
66 return a->hash_algo; in TS_MSG_IMPRINT_get_algo()
76 return a->hashed_msg; in TS_MSG_IMPRINT_get_msg()
97 return a->policy_id; in TS_REQ_get_policy_id()
104 if (a->nonce == nonce) in TS_REQ_set_nonce()
112 a->nonce = new_nonce; in TS_REQ_set_nonce()
118 return a->nonce; in TS_REQ_get_nonce()
134 return a->extensions; in STACK_OF()
139 if (!a) in TS_REQ_ext_free()
[all …]
H A Dts_rsp_print.c34 if (a->tst_info != NULL) in TS_RESP_print_bio()
93 if (a->failure_info != NULL) in TS_STATUS_INFO_print_bio()
107 for (; a->bit >= 0; ++a) { in ts_status_map_print()
122 if (a == NULL) in TS_TST_INFO_print_bio()
134 if (a->serial == NULL) in TS_TST_INFO_print_bio()
145 if (a->accuracy == NULL) in TS_TST_INFO_print_bio()
154 if (a->nonce == NULL) in TS_TST_INFO_print_bio()
161 if (a->tsa == NULL) in TS_TST_INFO_print_bio()
178 if (a->seconds != NULL) in ts_ACCURACY_print_bio()
183 if (a->millis != NULL) in ts_ACCURACY_print_bio()
[all …]
/openssl/crypto/bn/
H A Dbn_word.c78 if (!BN_lshift(a, a, j)) in BN_div_word()
89 if ((a->top > 0) && (a->d[a->top - 1] == 0)) in BN_div_word()
117 a->neg = !(a->neg); in BN_add_word()
121 a->d[i] = l = (a->d[i] + w) & BN_MASK2; in BN_add_word()
125 if (bn_wexpand(a, a->top + 1) == NULL) in BN_add_word()
159 if ((a->top == 1) && (a->d[0] < w)) { in BN_sub_word()
160 a->d[0] = w - a->d[0]; in BN_sub_word()
170 a->d[i] = (a->d[i] - w) & BN_MASK2; in BN_sub_word()
175 if ((a->d[i] == 0) && (i == (a->top - 1))) in BN_sub_word()
191 ll = bn_mul_words(a->d, a->d, a->top, w); in BN_mul_word()
[all …]
H A Dbn_lib.c206 OPENSSL_secure_clear_free(a->d, a->dmax * sizeof(a->d[0])); in bn_free_d()
208 OPENSSL_clear_free(a->d, a->dmax * sizeof(a->d[0])); in bn_free_d()
221 OPENSSL_cleanse(a, sizeof(*a)); in BN_clear_free()
280 a = OPENSSL_zalloc(words * sizeof(*a)); in bn_expand_internal()
286 memcpy(a, b->d, sizeof(*a) * b->top); in bn_expand_internal()
401 OPENSSL_cleanse(a->d, sizeof(*a->d) * a->dmax); in BN_clear()
1033 return ((a->top == 1) && (a->d[0] == w)) || ((w == 0) && (a->top == 0)); in BN_abs_is_word()
1043 return BN_abs_is_word(a, 1) && !a->neg; in BN_is_one()
1056 if (a->neg || a->top == 0) in ossl_bn_is_word_fixed_top()
1069 return (a->top > 0) && (a->d[0] & 1); in BN_is_odd()
[all …]
H A Dbn_asm.c94 a++; in bn_sqr_words()
187 a++; in bn_sqr_words()
305 a++; in bn_add_words()
362 a++; in bn_add_words()
472 BN_ULLONG t = (BN_ULLONG)a[i]*a[i]; \
480 mul_add_c2((a)[i],(a)[j],c0,c1,c2)
514 mul_add_c2((a)[i],(a)[j],c0,c1,c2)
548 mul_add_c2((a)[i],(a)[j],c0,c1,c2)
556 BN_ULONG lo = LBITS(a), hi = HBITS(a); \
565 BN_ULONG lo = LBITS(a), hi = HBITS(a); \
[all …]
H A Dbn_local.h212 # define bn_fix_top(a) bn_check_top(a) argument
229 # define bn_fix_top(a) bn_correct_top(a) argument
436 # define BN_UMULT_HIGH(a,b) __umulh((a),(b)) argument
467 int ind = (a)->dmax - (a)->top; \
468 BN_ULONG *ftl = &(a)->d[(a)->top-1]; \
499 t=(BN_ULLONG)(a)*(a); \
566 # define LBITS(a) ((a)&BN_MASK2l) argument
567 # define HBITS(a) (((a)>>BN_BITS4)&BN_MASK2l) argument
568 # define L2HBITS(a) (((a)<<BN_BITS4)&BN_MASK2) argument
570 # define LLBITS(a) ((a)&BN_MASKl) argument
[all …]
H A Dbn_mul.c40 a += cl; in bn_sub_part_words()
208 c1 = bn_cmp_part_words(a, &(a[n]), tna, n - tna); in bn_mul_recursive()
213 bn_sub_part_words(t, &(a[n]), a, tna, tna - n); /* - */ in bn_mul_recursive()
220 bn_sub_part_words(t, &(a[n]), a, tna, tna - n); /* - */ in bn_mul_recursive()
230 bn_sub_part_words(t, a, &(a[n]), tna, n - tna); /* + */ in bn_mul_recursive()
238 bn_sub_part_words(t, a, &(a[n]), tna, n - tna); in bn_mul_recursive()
335 c1 = bn_cmp_part_words(a, &(a[n]), tna, n - tna); in bn_mul_part_recursive()
340 bn_sub_part_words(t, &(a[n]), a, tna, tna - n); /* - */ in bn_mul_part_recursive()
345 bn_sub_part_words(t, &(a[n]), a, tna, tna - n); /* - */ in bn_mul_part_recursive()
359 bn_sub_part_words(t, a, &(a[n]), tna, n - tna); in bn_mul_part_recursive()
[all …]
/openssl/crypto/bn/asm/
H A Dx86_64-gcc.c175 sqr(r[0], r[1], a[0]); in bn_sqr_words()
176 sqr(r[2], r[3], a[1]); in bn_sqr_words()
177 sqr(r[4], r[5], a[2]); in bn_sqr_words()
178 sqr(r[6], r[7], a[3]); in bn_sqr_words()
179 a += 4; in bn_sqr_words()
269 t1 = a[0]; in bn_sub_words()
277 t1 = a[1]; in bn_sub_words()
285 t1 = a[2]; in bn_sub_words()
293 t1 = a[3]; in bn_sub_words()
301 a += 4; in bn_sub_words()
[all …]
/openssl/crypto/asn1/
H A Da_bitstr.c26 if (a == NULL) in ossl_i2c_ASN1_BIT_STRING()
69 d = a->data; in ossl_i2c_ASN1_BIT_STRING()
97 if ((a == NULL) || ((*a) == NULL)) { in ossl_c2i_ASN1_BIT_STRING()
135 if ((a == NULL) || (*a != ret)) in ossl_c2i_ASN1_BIT_STRING()
162 if ((a->length < (w + 1)) || (a->data == NULL)) { in ASN1_BIT_STRING_set_bit()
165 c = OPENSSL_clear_realloc(a->data, a->length, w + 1); in ASN1_BIT_STRING_set_bit()
169 memset(c + a->length, 0, w + 1 - a->length); in ASN1_BIT_STRING_set_bit()
173 a->data[w] = ((a->data[w]) & iv) | v; in ASN1_BIT_STRING_set_bit()
174 while ((a->length > 0) && (a->data[a->length - 1] == 0)) in ASN1_BIT_STRING_set_bit()
188 if ((a == NULL) || (a->length < (w + 1)) || (a->data == NULL)) in ASN1_BIT_STRING_get_bit()
[all …]
H A Di2d_evp.c33 static int i2d_provided(const EVP_PKEY *a, int selection, in i2d_provided() argument
75 if (evp_pkey_is_provided(a)) { in i2d_KeyParams()
83 if (a->ameth != NULL && a->ameth->param_encode != NULL) in i2d_KeyParams()
84 return a->ameth->param_encode(a, pp); in i2d_KeyParams()
96 if (evp_pkey_is_provided(a)) { in i2d_PrivateKey()
105 if (a->ameth != NULL && a->ameth->old_priv_encode != NULL) { in i2d_PrivateKey()
106 return a->ameth->old_priv_encode(a, pp); in i2d_PrivateKey()
108 if (a->ameth != NULL && a->ameth->priv_encode != NULL) { in i2d_PrivateKey()
109 PKCS8_PRIV_KEY_INFO *p8 = EVP_PKEY2PKCS8(a); in i2d_PrivateKey()
124 if (evp_pkey_is_provided(a)) { in i2d_PublicKey()
[all …]
/openssl/crypto/rc5/
H A Drc5_local.h72 # define ROTATE_l32(a,n) _lrotl(a,n) argument
73 # define ROTATE_r32(a,n) _lrotr(a,n) argument
75 # define ROTATE_l32(a,n) _rotl(a,n) argument
76 # define ROTATE_r32(a,n) _rotr(a,n) argument
96 # define ROTATE_l32(a,n) (((a)<<(n&0x1f))|(((a)&0xffffffff)>>((32-n)&0x1f))) argument
99 # define ROTATE_r32(a,n) (((a)<<((32-n)&0x1f))|(((a)&0xffffffff)>>(n&0x1f))) argument
108 a^=b; \
109 a=ROTATE_l32(a,b); \
112 b^=a; \
124 a=ROTATE_r32(a,b); \
[all …]
H A Drc5_enc.c98 RC5_32_INT a, b, *s; in RC5_32_encrypt() local
102 a = d[0] + s[0]; in RC5_32_encrypt()
104 E_RC5_32(a, b, s, 2); in RC5_32_encrypt()
105 E_RC5_32(a, b, s, 4); in RC5_32_encrypt()
106 E_RC5_32(a, b, s, 6); in RC5_32_encrypt()
107 E_RC5_32(a, b, s, 8); in RC5_32_encrypt()
128 d[0] = a; in RC5_32_encrypt()
134 RC5_32_INT a, b, *s; in RC5_32_decrypt() local
138 a = d[0]; in RC5_32_decrypt()
160 D_RC5_32(a, b, s, 8); in RC5_32_decrypt()
[all …]
/openssl/crypto/ec/curve448/arch_64/
H A Df_impl64.c34 aa[i] = a[i] + a[i + 4];
113 aa[i] = a[i] + a[i + 4];
115 accum2 = widemul(a[0], a[3]);
117 accum1 = widemul(a[4], a[7]);
119 accum2 += widemul(a[1], a[2]);
121 accum1 += widemul(a[5], a[6]);
138 accum1 += widemul(a[6], a[6]);
140 accum2 = widemul(a[0], a[0]);
144 accum0 -= widemul(a[2], a[2]);
146 accum0 += widemul(a[4], a[4]);
[all …]
/openssl/include/openssl/
H A Dts.h75 TS_REQ *d2i_TS_REQ_fp(FILE *fp, TS_REQ **a);
76 int i2d_TS_REQ_fp(FILE *fp, const TS_REQ *a);
78 TS_REQ *d2i_TS_REQ_bio(BIO *fp, TS_REQ **a);
79 int i2d_TS_REQ_bio(BIO *fp, const TS_REQ *a);
124 long TS_REQ_get_version(const TS_REQ *a);
151 int TS_REQ_get_cert_req(const TS_REQ *a);
154 void TS_REQ_ext_free(TS_REQ *a);
155 int TS_REQ_get_ext_count(TS_REQ *a);
166 int TS_REQ_print_bio(BIO *bio, TS_REQ *a);
175 PKCS7 *TS_RESP_get_token(TS_RESP *a);
[all …]
H A Dbn.h189 # define BN_num_bytes(a) ((BN_num_bits(a)+7)/8) argument
193 int BN_is_one(const BIGNUM *a);
197 # define BN_one(a) (BN_set_word((a),1)) argument
199 void BN_zero_ex(BIGNUM *a);
202 # define BN_zero(a) BN_zero_ex(a) argument
204 # define BN_zero(a) (BN_set_word((a),0)) argument
240 void BN_clear_free(BIGNUM *a);
305 void BN_free(BIGNUM *a);
339 void BN_clear(BIGNUM *a);
480 # define BN_GF2m_sub(r, a, b) BN_GF2m_add(r, a, b) argument
[all …]
/openssl/crypto/x509/
H A Dv3_genn.c126 if (!a || !b || a->type != b->type) in GENERAL_NAME_cmp()
128 switch (a->type) { in GENERAL_NAME_cmp()
167 if (!a || !b) in OTHERNAME_cmp()
195 a->d.ia5 = value; in GENERAL_NAME_set0_value()
203 a->d.ip = value; in GENERAL_NAME_set0_value()
207 a->d.rid = value; in GENERAL_NAME_set0_value()
210 a->type = type; in GENERAL_NAME_set0_value()
217 switch (a->type) { in GENERAL_NAME_get0_value()
230 return a->d.ia5; in GENERAL_NAME_get0_value()
236 return a->d.ip; in GENERAL_NAME_get0_value()
[all …]

Completed in 116 milliseconds

12345678910>>...69