Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 411) sorted by relevance

12345678910>>...17

/openssl/include/internal/
H A Dring_buf.h50 r->alloc = 0; in OSSL_SAFE_MATH_UNSIGNED()
51 r->head_offset = r->ctail_offset = 0; in OSSL_SAFE_MATH_UNSIGNED()
58 OPENSSL_clear_free(r->start, r->alloc); in ring_buf_destroy()
67 return (size_t)(r->head_offset - r->ctail_offset); in ring_buf_used()
72 return r->alloc - ring_buf_used(r); in ring_buf_avail()
131 idx = r->head_offset % r->alloc; in ring_buf_push()
208 if (cleanse && r->alloc > 0 && end > r->ctail_offset) { in ring_buf_cpop_range()
209 size_t idx = r->ctail_offset % r->alloc; in ring_buf_cpop_range()
227 if (r->head_offset < r->ctail_offset) in ring_buf_cpop_range()
228 r->head_offset = r->ctail_offset; in ring_buf_cpop_range()
[all …]
/openssl/crypto/des/
H A Ddes_enc.c25 r = data[0]; in DES_encrypt1()
28 IP(r, l); in DES_encrypt1()
37 r = ROTATE(r, 29) & 0xffffffffL; in DES_encrypt1()
83 r = ROTATE(r, 3) & 0xffffffffL; in DES_encrypt1()
85 FP(r, l); in DES_encrypt1()
87 data[1] = r; in DES_encrypt1()
106 r = ROTATE(r, 29) & 0xffffffffL; in DES_encrypt2()
162 IP(l, r); in DES_encrypt3()
170 FP(r, l); in DES_encrypt3()
182 IP(l, r); in DES_decrypt3()
[all …]
H A Dfcrypt_b.c34 register DES_LONG l, r, t, u; in fcrypt_body() local
40 r = 0; in fcrypt_body()
47 D_ENCRYPT(l, r, 0); /* 1 */ in fcrypt_body()
48 D_ENCRYPT(r, l, 2); /* 2 */ in fcrypt_body()
49 D_ENCRYPT(l, r, 4); /* 3 */ in fcrypt_body()
50 D_ENCRYPT(r, l, 6); /* 4 */ in fcrypt_body()
64 l = r; in fcrypt_body()
65 r = t; in fcrypt_body()
68 r = ROTATE(r, 3) & 0xffffffffL; in fcrypt_body()
70 PERM_OP(l, r, t, 1, 0x55555555L); in fcrypt_body()
[all …]
/openssl/crypto/rsa/
H A Drsa_lib.c140 if (r == NULL) in RSA_free()
149 if (r->meth != NULL && r->meth->finish != NULL) in RSA_free()
150 r->meth->finish(r); in RSA_free()
156 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_RSA, r, &r->ex_data); in RSA_free()
166 BN_free(r->n); in RSA_free()
167 BN_free(r->e); in RSA_free()
262 r <<= 1; in icbrt64()
263 b = 3 * r * (r + 1) + 1; in icbrt64()
266 r++; in icbrt64()
301 r = (r * (uint64_t)scale) / log_e; in ilog_e()
[all …]
/openssl/crypto/bn/
H A Dbn_mod.c28 if (!r->neg) in BN_nnmod()
31 return (d->neg ? BN_sub : BN_add) (r, r, d); in BN_nnmod()
39 return BN_nnmod(r, r, m, ctx); in BN_mod_add()
119 return BN_nnmod(r, r, m, ctx); in BN_mod_sub()
201 return BN_add(r, r, m); in BN_mod_sub_quick()
240 return BN_mod(r, r, m, ctx); in BN_mod_sqr()
248 return BN_nnmod(r, r, m, ctx); in BN_mod_lshift1()
261 return BN_sub(r, r, m); in BN_mod_lshift1_quick()
315 if (!BN_lshift(r, r, max_shift)) in BN_mod_lshift_quick()
319 if (!BN_lshift1(r, r)) in BN_mod_lshift_quick()
[all …]
H A Dbn_shift.c19 bn_check_top(r); in BN_lshift1()
22 if (r != a) { in BN_lshift1()
32 rp = r->d; in BN_lshift1()
40 r->top += c; in BN_lshift1()
41 bn_check_top(r); in BN_lshift1()
54 BN_zero(r); in BN_rshift1()
59 if (a != r) { in BN_rshift1()
64 rp = r->d; in BN_rshift1()
65 r->top = i; in BN_rshift1()
75 if (!r->top) in BN_rshift1()
[all …]
H A Dbn_mul.c39 r += cl; in bn_sub_part_words()
281 c1 = (int)(bn_add_words(t, r, &(r[n2]), n2)); in bn_mul_recursive()
403 memset(&r[n2], 0, sizeof(*r) * n2); in bn_mul_part_recursive()
436 c1 = (int)(bn_add_words(t, r, &(r[n2]), n2)); in bn_mul_part_recursive()
485 bn_add_words(&(r[n]), &(r[n]), &(t[0]), n); in bn_mul_low_recursive()
487 bn_add_words(&(r[n]), &(r[n]), &(t[0]), n); in bn_mul_low_recursive()
491 bn_add_words(&(r[n]), &(r[n]), &(t[0]), n); in bn_mul_low_recursive()
492 bn_add_words(&(r[n]), &(r[n]), &(t[n]), n); in bn_mul_low_recursive()
534 if ((r == a) || (r == b)) { in bn_mul_fixed_top()
538 rr = r; in bn_mul_fixed_top()
[all …]
H A Dbn_add.c39 r->neg = r_neg; in BN_add()
40 bn_check_top(r); in BN_add()
70 r->neg = r_neg; in BN_sub()
71 bn_check_top(r); in BN_sub()
99 r->top = max; in BN_uadd()
103 rp = r->d; in BN_uadd()
119 r->neg = 0; in BN_uadd()
148 rp = r->d; in BN_usub()
165 r->top = max; in BN_usub()
166 r->neg = 0; in BN_usub()
[all …]
H A Dbn_sqr.c21 bn_correct_top(r); in BN_sqr()
22 bn_check_top(r); in BN_sqr()
37 r->top = 0; in bn_sqr_fixed_top()
38 r->neg = 0; in bn_sqr_fixed_top()
43 rr = (a != r) ? r : BN_CTX_get(ctx); in bn_sqr_fixed_top()
97 if (r != rr && BN_copy(r, rr) == NULL) in bn_sqr_fixed_top()
117 rp = r; in bn_sqr_normal()
135 bn_add_words(r, r, r, max); in bn_sqr_normal()
141 bn_add_words(r, r, tmp, max); in bn_sqr_normal()
207 c1 = (int)(bn_add_words(t, r, &(r[n2]), n2)); in bn_sqr_recursive()
[all …]
H A Dbn_asm.c83 sqr(r[0], r[1], a[0]); in bn_sqr_words()
84 sqr(r[2], r[3], a[1]); in bn_sqr_words()
85 sqr(r[4], r[5], a[2]); in bn_sqr_words()
86 sqr(r[6], r[7], a[3]); in bn_sqr_words()
93 sqr(r[0], r[1], a[0]); in bn_sqr_words()
176 sqr64(r[0], r[1], a[0]); in bn_sqr_words()
177 sqr64(r[2], r[3], a[1]); in bn_sqr_words()
178 sqr64(r[4], r[5], a[2]); in bn_sqr_words()
179 sqr64(r[6], r[7], a[3]); in bn_sqr_words()
186 sqr64(r[0], r[1], a[0]); in bn_sqr_words()
[all …]
H A Dbn_rand.c137 if (r == NULL) { in bnrand_range()
152 BN_zero(r); in bnrand_range()
170 if (!BN_sub(r, r, range)) in bnrand_range()
173 if (!BN_sub(r, r, range)) in bnrand_range()
183 while (BN_cmp(r, range) >= 0); in bnrand_range()
196 while (BN_cmp(r, range) >= 0); in bnrand_range()
199 bn_check_top(r); in bnrand_range()
236 return BN_rand_range(r, range); in BN_pseudo_rand_range()
247 if (r == NULL) { in ossl_bn_priv_rand_range_fixed_top()
262 BN_zero(r); in ossl_bn_priv_rand_range_fixed_top()
[all …]
H A Dbn_gf2m.c237 bn_GF2m_mul_1x1(r + 3, r + 2, a1, b1); in bn_GF2m_mul_2x2()
238 bn_GF2m_mul_1x1(r + 1, r, a0, b0); in bn_GF2m_mul_2x2()
241 r[2] ^= m1 ^ r[1] ^ r[3]; /* h0 ^= m1 ^ l1 ^ h1; */ in bn_GF2m_mul_2x2()
242 r[1] = r[3] ^ r[2] ^ r[0] ^ m1 ^ m0; /* l1 ^= l0 ^ h0 ^ m0; */ in bn_GF2m_mul_2x2()
303 BN_zero(r); in BN_GF2m_mod_arr()
311 if (a != r) { in BN_GF2m_mod_arr()
319 z = r->d; in BN_GF2m_mod_arr()
403 bn_check_top(r); in BN_GF2m_mod()
452 bn_check_top(r); in BN_GF2m_mod_mul_arr()
757 if (!BN_GF2m_mod_inv_vartime(r, r, p, ctx)) in BN_GF2m_mod_inv()
[all …]
/openssl/test/
H A Dsafe_math_test.c57 int err, r, s; in test_int_ops() local
100 r = safe_neg_int(a, &err); in test_int_ops()
106 r = safe_neg_int(b, &err); in test_int_ops()
112 r = safe_abs_int(a, &err); in test_int_ops()
118 r = safe_abs_int(b, &err); in test_int_ops()
146 unsigned int r; in test_uint_ops() local
186 r = safe_neg_uint(a, &err); in test_uint_ops()
191 r = safe_neg_uint(b, &err); in test_uint_ops()
229 size_t r; in test_size_t_ops() local
316 int r, real = 0; in test_int_muldiv() local
[all …]
H A Dasn1_dsa_internal_test.c87 BIGNUM *r; in test_decode() local
91 r = BN_new(); in test_decode()
98 || !TEST_BN_eq_word(r, 1) || !TEST_BN_eq_word(s, 2)) { in test_decode()
103 BN_clear(r); in test_decode()
114 BN_clear(r); in test_decode()
124 BN_clear(r); in test_decode()
141 BN_clear(r); in test_decode()
149 BN_clear(r); in test_decode()
157 BN_clear(r); in test_decode()
165 BN_clear(r); in test_decode()
[all …]
/openssl/crypto/bf/
H A Dbf_enc.c32 register BF_LONG l, r; in BF_encrypt() local
38 r = data[1]; in BF_encrypt()
41 BF_ENC(r, l, s, p[1]); in BF_encrypt()
42 BF_ENC(l, r, s, p[2]); in BF_encrypt()
43 BF_ENC(r, l, s, p[3]); in BF_encrypt()
44 BF_ENC(l, r, s, p[4]); in BF_encrypt()
45 BF_ENC(r, l, s, p[5]); in BF_encrypt()
46 BF_ENC(l, r, s, p[6]); in BF_encrypt()
47 BF_ENC(r, l, s, p[7]); in BF_encrypt()
77 r = data[1]; in BF_decrypt()
[all …]
/openssl/crypto/cast/
H A Dc_enc.c21 CAST_LONG l, r, t; in CAST_encrypt() local
26 r = data[1]; in CAST_encrypt()
28 E_CAST(0, k, l, r, +, ^, -); in CAST_encrypt()
29 E_CAST(1, k, r, l, ^, -, +); in CAST_encrypt()
30 E_CAST(2, k, l, r, -, +, ^); in CAST_encrypt()
31 E_CAST(3, k, r, l, +, ^, -); in CAST_encrypt()
32 E_CAST(4, k, l, r, ^, -, +); in CAST_encrypt()
33 E_CAST(5, k, r, l, -, +, ^); in CAST_encrypt()
48 data[0] = r & 0xffffffffL; in CAST_encrypt()
53 CAST_LONG l, r, t; in CAST_decrypt() local
[all …]
/openssl/test/testutil/
H A Dbasic_output.c95 int r; in test_vprintf_stdout() local
101 return r; in test_vprintf_stdout()
106 int r; in test_vprintf_stderr() local
112 return r; in test_vprintf_stderr()
117 int r; in test_flush_stdout() local
123 return r; in test_flush_stdout()
128 int r; in test_flush_stderr() local
139 int r; in test_vprintf_tapout() local
150 int r; in test_vprintf_taperr() local
161 int r; in test_flush_tapout() local
[all …]
/openssl/crypto/bn/asm/
H A Dbn-586.pl41 $r="eax";
114 &lea($r,&DWP(32,$r));
133 &lea($r,&DWP(4,$r));
154 $r="edi";
189 &lea($r,&DWP(32,$r));
227 $r="eax";
250 &lea($r,&DWP(4,$r));
270 $r="edi";
338 $r="eax";
357 &lea($r,&DWP(8,$r)); # r += 2
[all …]
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()
180 r += 8; in bn_sqr_words()
184 sqr(r[0], r[1], a[0]); in bn_sqr_words()
187 sqr(r[2], r[3], a[1]); in bn_sqr_words()
190 sqr(r[4], r[5], a[2]); in bn_sqr_words()
401 r[0] = c1; in bn_mul_comba8()
405 r[1] = c2; in bn_mul_comba8()
[all …]
/openssl/test/recipes/30-test_evp_data/
H A Devpkdf_kbkdf_counter.txt33 Ctrl.r = r:8
46 Ctrl.r = r:8
59 Ctrl.r = r:8
72 Ctrl.r = r:8
90 Ctrl.r = r:16
103 Ctrl.r = r:16
116 Ctrl.r = r:16
129 Ctrl.r = r:16
147 Ctrl.r = r:24
160 Ctrl.r = r:24
[all …]
/openssl/include/openssl/
H A Derr.h.in131 # define BIOerr(f, r) ERR_raise_data(ERR_LIB_BIO, (r), NULL) argument
132 # define BNerr(f, r) ERR_raise_data(ERR_LIB_BN, (r), NULL) argument
133 # define BUFerr(f, r) ERR_raise_data(ERR_LIB_BUF, (r), NULL) argument
134 # define CMPerr(f, r) ERR_raise_data(ERR_LIB_CMP, (r), NULL) argument
135 # define CMSerr(f, r) ERR_raise_data(ERR_LIB_CMS, (r), NULL) argument
140 # define CTerr(f, r) ERR_raise_data(ERR_LIB_CT, (r), NULL) argument
141 # define DHerr(f, r) ERR_raise_data(ERR_LIB_DH, (r), NULL) argument
142 # define DSAerr(f, r) ERR_raise_data(ERR_LIB_DSA, (r), NULL) argument
146 # define ECerr(f, r) ERR_raise_data(ERR_LIB_EC, (r), NULL) argument
168 # define TSerr(f, r) ERR_raise_data(ERR_LIB_TS, (r), NULL) argument
[all …]
/openssl/crypto/asn1/
H A Da_int.c216 uint64_t r; in asn1_get_uint64() local
225 r <<= 8; in asn1_get_uint64()
228 *pr = r; in asn1_get_uint64()
258 uint64_t r; in asn1_get_int64() local
290 size_t r; in ossl_c2i_ASN1_INTEGER() local
295 if (r == 0) in ossl_c2i_ASN1_INTEGER()
347 if (r < 0) { in asn1_string_set_int64()
551 int64_t r; in ASN1_INTEGER_get() local
557 if (r > LONG_MAX || r < LONG_MIN) in ASN1_INTEGER_get()
590 int64_t r; in ASN1_ENUMERATED_get() local
[all …]
/openssl/external/perl/Text-Template-1.56/t/
H A Dbroken.t12 my $r = Text::Template->new(
20 my $r = Text::Template->new(
24 is $r, q{---};
29 my $r = Text::Template->new(
32 is $r, q{---};
37 my $r = Text::Template->new(
44 is $r, qq{1,Illegal division by zero at template line 1.\n,1/0};
49 my $r = Text::Template->new(
57 is $r, qq{1,Illegal division by zero at template line 1.\n,1/0};
62 my $r = Text::Template->new(TYPE => 'string', SOURCE => 'abc{1/0}defg')
[all …]
/openssl/fuzz/
H A Dprovider.c106 int r = 1; in read_uint() local
109 r = 0; in read_uint()
119 return r; in read_uint()
124 int r = 1; in read_int() local
127 r = 0; in read_int()
137 return r; in read_int()
155 return r; in read_double()
161 int r; in read_utf8_string() local
178 return r; in read_utf8_string()
195 int r; in read_octet_string() local
[all …]
/openssl/crypto/des/asm/
H A Dcrypt586.pl170 local($l,$r,$tt,$lr)=@_;
174 &R_PERM_OP($l,$tt,$r,14,"0x33333333",$r);
175 &R_PERM_OP($tt,$r,$l,22,"0x03fc03fc",$r);
176 &R_PERM_OP($l,$r,$tt, 9,"0xaaaaaaaa",$r);
187 { &rotr($r, 2-$lr); }
188 else { &rotl($r, $lr-2); }
194 local($l,$r,$tt,$lr)=@_;
199 { &rotl($r, 2-$lr); }
209 &R_PERM_OP($l,$r,$tt, 0,"0xaaaaaaaa",$r);
210 &R_PERM_OP($tt,$r,$l,23,"0x03fc03fc",$r);
[all …]

Completed in 134 milliseconds

12345678910>>...17