Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 217) sorted by relevance

123456789

/openssl/crypto/camellia/asm/
H A Dcmll-x86.pl57 $idx="esi";
269 &rotl ($idx,1);
444 &rotl ($idx,1);
880 &dec ($idx);
932 &lea ($idx,&DWP(16,$idx));
1034 &lea ($idx,&DWP(16,$idx));
1061 &mov ($idx eq "esi" ? $idx : "",$key);
1104 &lea ($idx,&DWP(16,$idx));
1120 &lea ($idx,&DWP(16,$idx));
1133 &lea ($idx eq "esi" ? $idx : "",$ivec);
[all …]
/openssl/test/
H A Dx509_time_test.c256 static int test_x509_cmp_time(int idx) in test_x509_cmp_time() argument
262 t.type = x509_cmp_tests[idx].type; in test_x509_cmp_time()
264 t.length = strlen(x509_cmp_tests[idx].data); in test_x509_cmp_time()
270 idx, x509_cmp_tests[idx].expected, result); in test_x509_cmp_time()
352 static int test_x509_time(int idx) in test_x509_time() argument
357 if (x509_format_tests[idx].set_string) { in test_x509_time()
370 idx, x509_format_tests[idx].expected, result); in test_x509_time()
378 idx, x509_format_tests[idx].expected_type, t->type); in test_x509_time()
389 idx, x509_format_tests[idx].expected_string, t->length, in test_x509_time()
538 static int test_x509_time_print_rfc_822(int idx) in test_x509_time_print_rfc_822() argument
[all …]
H A Drecordlentest.c80 static int test_record_overflow(int idx) in test_record_overflow() argument
93 if (idx == TEST_ENCRYPTED_OVERFLOW_TLS1_2_OK in test_record_overflow()
94 || idx == TEST_ENCRYPTED_OVERFLOW_TLS1_2_NOT_OK) in test_record_overflow()
99 if (idx == TEST_ENCRYPTED_OVERFLOW_TLS1_3_OK in test_record_overflow()
100 || idx == TEST_ENCRYPTED_OVERFLOW_TLS1_3_NOT_OK) in test_record_overflow()
110 if (idx == TEST_ENCRYPTED_OVERFLOW_TLS1_2_OK in test_record_overflow()
117 } else if (idx == TEST_ENCRYPTED_OVERFLOW_TLS1_3_OK in test_record_overflow()
128 if (idx == TEST_PLAINTEXT_OVERFLOW_OK in test_record_overflow()
129 || idx == TEST_PLAINTEXT_OVERFLOW_NOT_OK) { in test_record_overflow()
132 if (idx == TEST_PLAINTEXT_OVERFLOW_NOT_OK) in test_record_overflow()
[all …]
H A Dpriority_queue_test.c162 size_t idx; member
193 || !TEST_size_t_eq(infos[0].idx, 7) in test_22644()
194 || !TEST_ptr(ossl_pqueue_INFO_remove(pq, infos[0].idx))) in test_22644()
199 || !TEST_size_t_eq(infos[1].idx, 7) in test_22644()
205 || !TEST_size_t_eq(infos[2].idx, 7)) in test_22644()
210 || !TEST_size_t_eq(infos[3].idx, 6)) in test_22644()
215 || !TEST_size_t_eq(infos[4].idx, 5)) in test_22644()
220 || !TEST_size_t_eq(infos[5].idx, 4)) in test_22644()
225 || !TEST_size_t_eq(infos[6].idx, 3)) in test_22644()
230 || !TEST_size_t_eq(infos[7].idx, 2)) in test_22644()
[all …]
H A Dgenerate_ssl_tests.pl114 my $idx = 0;
117 my $testname = "${idx}-" . $test->{'name'};
118 print "test-$idx = $testname\n";
119 $idx++;
122 $idx = 0;
125 my $testname = "${idx}-" . $test->{'name'};
127 HASH => [{ idx => $idx, testname => $testname } , $test],
131 $idx++;
H A Dexdatatest.c30 int idx, long argl, void *argp) in exnew() argument
32 if (!TEST_int_eq(idx, saved_idx) in exnew()
40 void **from_d, int idx, long argl, void *argp) in exdup() argument
42 if (!TEST_int_eq(idx, saved_idx) in exdup()
51 int idx, long argl, void *argp) in exfree() argument
53 if (!TEST_int_eq(idx, saved_idx) in exfree()
72 int idx, long argl, void *argp) in exnew2() argument
76 if (!TEST_true(idx == saved_idx2 || idx == saved_idx3) in exnew2()
95 if (!TEST_true(idx == saved_idx2 || idx == saved_idx3) in exdup2()
115 int idx, long argl, void *argp) in exfree2() argument
[all …]
H A Dbio_enc_test.c216 switch (idx) { in do_test_bio_cipher()
225 static int test_bio_enc_aes_128_cbc(int idx) in test_bio_enc_aes_128_cbc() argument
227 return do_test_bio_cipher(EVP_aes_128_cbc(), idx); in test_bio_enc_aes_128_cbc()
230 static int test_bio_enc_aes_128_ctr(int idx) in test_bio_enc_aes_128_ctr() argument
232 return do_test_bio_cipher(EVP_aes_128_ctr(), idx); in test_bio_enc_aes_128_ctr()
235 static int test_bio_enc_aes_256_cfb(int idx) in test_bio_enc_aes_256_cfb() argument
237 return do_test_bio_cipher(EVP_aes_256_cfb(), idx); in test_bio_enc_aes_256_cfb()
240 static int test_bio_enc_aes_256_ofb(int idx) in test_bio_enc_aes_256_ofb() argument
246 static int test_bio_enc_chacha20(int idx) in test_bio_enc_chacha20() argument
248 return do_test_bio_cipher(EVP_chacha20(), idx); in test_bio_enc_chacha20()
[all …]
H A Dhmactest.c88 static int test_hmac_md5(int idx) in test_hmac_md5() argument
99 test[idx].key, test[idx].key_len, in test_hmac_md5()
100 test[idx].data, test[idx].data_len, NULL, NULL), in test_hmac_md5()
103 return TEST_ptr(p) && TEST_str_eq(p, test[idx].digest); in test_hmac_md5()
386 static int test_hmac_chunks(int idx) in test_hmac_chunks() argument
402 ebcdic2ascii(test_chunks[idx].key, test_chunks[idx].key, in test_hmac_chunks()
403 test_chunks[idx].key_len); in test_hmac_chunks()
406 if (!TEST_true(HMAC_Init_ex(ctx, test_chunks[idx].key, in test_hmac_chunks()
410 for (i = 0; i < test_chunks[idx].chunks; i++) { in test_hmac_chunks()
413 memset(buf, i, test_chunks[idx].chunk_size[i]); in test_hmac_chunks()
[all …]
H A Dbio_prefix_text.c144 size_t idx, indent; in setup() local
189 idx = 0; in setup()
191 idx = strtoul(arg, &endptr, 10); in setup()
209 if (idx >= amount) { in setup()
211 progname, idx, amount - 1); in setup()
214 if (BIO_set_indent(chain[idx], (long)indent) <= 0) { in setup()
227 idx = 0; in setup()
229 idx = strtoul(arg, &endptr, 10); in setup()
240 if (idx >= amount) { in setup()
242 progname, idx, amount - 1); in setup()
[all …]
H A Dssl_cert_table_internal_test.c21 #define test_cert_table(nid, amask, idx) \ argument
22 do_test_cert_table(nid, amask, idx, #idx)
24 static int do_test_cert_table(int nid, uint32_t amask, size_t idx, in do_test_cert_table() argument
27 const SSL_CERT_LOOKUP *clu = &ssl_cert_info[idx]; in do_test_cert_table()
33 idxname, idx); in do_test_cert_table()
H A Drpktest.c95 static int test_rpk(int idx) in test_rpk() argument
131 idx %= RPK_TESTS * 2 * 4; in test_rpk()
133 idx %= RPK_TESTS * 2; in test_rpk()
134 idx_prot = idx / RPK_TESTS; in test_rpk()
135 idx %= RPK_TESTS; in test_rpk()
191 && (idx == 4 || idx == 6 || idx == 7)) { in test_rpk()
218 if (idx == 15) { in test_rpk()
268 if (idx == 1) { in test_rpk()
279 switch (idx) { in test_rpk()
479 if (idx == 9) { in test_rpk()
[all …]
H A Dasn1_time_test.c166 struct testdata *td = &tbl[idx]; in test_table()
309 static int test_table_pos(int idx) in test_table_pos() argument
311 return test_table(tbl_testdata_pos, idx); in test_table_pos()
314 static int test_table_neg(int idx) in test_table_neg() argument
316 return test_table(tbl_testdata_neg, idx); in test_table_neg()
319 static int test_table_pos_64bit(int idx) in test_table_pos_64bit() argument
321 return test_table(tbl_testdata_pos_64bit, idx); in test_table_pos_64bit()
324 static int test_table_neg_64bit(int idx) in test_table_neg_64bit() argument
367 static int test_table_compare(int idx) in test_table_compare() argument
433 static int convert_asn1_to_time_t(int idx) in convert_asn1_to_time_t() argument
[all …]
/openssl/include/internal/
H A Dring_buf.h80 size_t avail, idx, l; in ring_buf_write_at() local
95 l = r->alloc - idx; in ring_buf_write_at()
132 l = r->alloc - idx; in ring_buf_push()
151 size_t idx; in ring_buf_get_ptr() local
156 *max_len = r->alloc - idx; in ring_buf_get_ptr()
157 return start + idx; in ring_buf_get_ptr()
178 size_t idx, l; in ring_buf_get_buf_at() local
191 if (l > r->alloc - idx) in ring_buf_get_buf_at()
192 l = r->alloc - idx; in ring_buf_get_buf_at()
217 OPENSSL_cleanse((unsigned char *)r->start + idx, r->alloc - idx); in ring_buf_cpop_range()
[all …]
/openssl/crypto/rc4/asm/
H A Drc4-s390x.pl173 $idx="%r1";
189 la $idx,0
190 sth $idx,0($key)
193 stc $idx,2($idx,$key)
194 la $idx,1($idx)
200 la $idx,0
205 la $idx,0($idx,$acc)
207 la $idx,0($idx,$dat)
208 nill $idx,255
211 llgc $dat,2($idx,$key)
[all …]
/openssl/crypto/x509/
H A Dx509_trust.c69 int idx; in X509_check_trust() local
76 if (idx < 0) in X509_check_trust()
78 pt = X509_TRUST_get0(idx); in X509_check_trust()
91 if (idx < 0) in X509_TRUST_get0()
94 return trstandard + idx; in X509_TRUST_get0()
101 int idx; in X509_TRUST_get_by_id() local
111 if (idx < 0) in X509_TRUST_get_by_id()
129 int idx; in X509_TRUST_add() local
140 if (idx < 0) { in X509_TRUST_add()
164 if (idx < 0) { in X509_TRUST_add()
[all …]
H A Dv3_lib.c56 int idx; in X509V3_EXT_get_nid() local
68 idx = sk_X509V3_EXT_METHOD_find(ext_list, &tmp); in X509V3_EXT_get_nid()
164 int *idx) in X509V3_get_d2i() argument
170 if (idx) in X509V3_get_d2i()
171 *idx = -1; in X509V3_get_d2i()
176 if (idx) in X509V3_get_d2i()
177 lastpos = *idx + 1; in X509V3_get_d2i()
185 if (idx) { in X509V3_get_d2i()
186 *idx = i; in X509V3_get_d2i()
206 if (idx) in X509V3_get_d2i()
[all …]
/openssl/crypto/bn/asm/
H A Dparisc-mont.pl126 $idx="%r20";
220 ldo 8($idx),$idx ; j++++
247 ldo 8($idx),$idx ; j++++
325 ldo 8($idx),$idx ; j++++
354 ldo 8($idx),$idx ; j++++
460 ldo 8($idx),$idx ; j++++
526 ldd $idx($np),$hi0
574 ldo 8($idx),$idx ; j++++
656 ldo 8($idx),$idx ; j++++
687 ldo 8($idx),$idx ; j++++
[all …]
/openssl/crypto/rsa/
H A Drsa_chk.c26 int ret = 1, ex_primes = 0, idx; in rsa_validate_keypair_multiprime() local
80 for (idx = 0; idx < ex_primes; idx++) { in rsa_validate_keypair_multiprime()
81 pinfo = sk_RSA_PRIME_INFO_value(key->prime_infos, idx); in rsa_validate_keypair_multiprime()
93 for (idx = 0; idx < ex_primes; idx++) { in rsa_validate_keypair_multiprime()
94 pinfo = sk_RSA_PRIME_INFO_value(key->prime_infos, idx); in rsa_validate_keypair_multiprime()
131 for (idx = 0; idx < ex_primes; idx++) { in rsa_validate_keypair_multiprime()
132 pinfo = sk_RSA_PRIME_INFO_value(key->prime_infos, idx); in rsa_validate_keypair_multiprime()
200 for (idx = 0; idx < ex_primes; idx++) { in rsa_validate_keypair_multiprime()
201 pinfo = sk_RSA_PRIME_INFO_value(key->prime_infos, idx); in rsa_validate_keypair_multiprime()
/openssl/crypto/aes/asm/
H A Daesp8-ppc.pl456 addi $idx,$idx,16
462 addi $idx,$idx,16
469 addi $idx,$idx,16
473 addi $idx,$idx,16
564 addi $idx,$idx,16
568 addi $idx,$idx,16
575 addi $idx,$idx,16
579 addi $idx,$idx,16
612 addi $idx,$idx,16
616 addi $idx,$idx,16
[all …]
/openssl/crypto/property/
H A Dproperty_string.c31 OSSL_PROPERTY_IDX idx; member
133 ps->idx = ++*pidx; in new_property_string()
134 if (ps->idx == 0) { in new_property_string()
198 return ps != NULL ? ps->idx : 0; in ossl_property_string()
204 OSSL_PROPERTY_IDX idx; member
211 if (prop->idx == findstr->idx) in find_str_fn()
217 OSSL_PROPERTY_IDX idx) in ossl_property_str() argument
235 findstr.idx = idx; in ossl_property_str()
244 : propdata->prop_valuelist, idx - 1); in ossl_property_str()
259 return ossl_property_str(1, ctx, idx); in ossl_property_name_str()
[all …]
/openssl/crypto/
H A Dex_data.c107 void **from_d, int idx, in dummy_dup() argument
127 if (idx < 0 || idx >= sk_EX_CALLBACK_num(ip->meth)) in ossl_crypto_free_ex_index_ex()
129 a = sk_EX_CALLBACK_value(ip->meth, idx); in ossl_crypto_free_ex_index_ex()
141 int CRYPTO_free_ex_index(int class_index, int idx) in CRYPTO_free_ex_index() argument
424 int idx) in CRYPTO_alloc_ex_data() argument
428 curval = CRYPTO_get_ex_data(ad, idx); in CRYPTO_alloc_ex_data()
450 f = sk_EX_CALLBACK_value(ip->meth, idx); in ossl_crypto_alloc_ex_data_intern()
480 for (i = sk_void_num(ad->sk); i <= idx; ++i) { in CRYPTO_set_ex_data()
486 if (sk_void_set(ad->sk, idx, val) != val) { in CRYPTO_set_ex_data()
500 if (ad->sk == NULL || idx >= sk_void_num(ad->sk)) in CRYPTO_get_ex_data()
[all …]
/openssl/crypto/engine/
H A Deng_ctrl.c36 int idx = 0; in int_ctrl_cmd_by_name() local
38 idx++; in int_ctrl_cmd_by_name()
44 return idx; in int_ctrl_cmd_by_name()
49 int idx = 0; in int_ctrl_cmd_by_num() local
55 idx++; in int_ctrl_cmd_by_num()
59 return idx; in int_ctrl_cmd_by_num()
67 int idx; in int_ctrl_helper() local
89 || ((idx = int_ctrl_cmd_by_name(e->cmd_defns, s)) < 0)) { in int_ctrl_helper()
93 return e->cmd_defns[idx].cmd_num; in int_ctrl_helper()
100 || ((idx = int_ctrl_cmd_by_num(e->cmd_defns, (unsigned int)i)) < 0)) { in int_ctrl_helper()
[all …]
/openssl/crypto/conf/
H A Dconf_ssl.c138 const SSL_CONF_CMD *conf_ssl_get(size_t idx, const char **name, size_t *cnt) in conf_ssl_get() argument
140 *name = ssl_names[idx].name; in conf_ssl_get()
141 *cnt = ssl_names[idx].cmd_count; in conf_ssl_get()
142 return ssl_names[idx].cmds; in conf_ssl_get()
150 int conf_ssl_name_find(const char *name, size_t *idx) in conf_ssl_name_find() argument
159 *idx = i; in conf_ssl_name_find()
172 void conf_ssl_get_cmd(const SSL_CONF_CMD *cmd, size_t idx, char **cmdstr, in conf_ssl_get_cmd() argument
175 *cmdstr = cmd[idx].cmd; in conf_ssl_get_cmd()
176 *arg = cmd[idx].arg; in conf_ssl_get_cmd()
/openssl/doc/man3/
H A DBIO_get_ex_new_index.pod39 int TYPE_set_ex_data(TYPE *d, int idx, void *arg);
41 void *TYPE_get_ex_data(const TYPE *d, int idx);
52 int DH_set_ex_data(DH *type, int idx, void *arg);
53 void *DH_get_ex_data(DH *type, int idx);
56 int DSA_set_ex_data(DSA *type, int idx, void *arg);
57 void *DSA_get_ex_data(DSA *type, int idx);
61 void *EC_KEY_get_ex_data(EC_KEY *type, int idx);
65 void *RSA_get_ex_data(RSA *type, int idx);
71 void *ENGINE_get_ex_data(ENGINE *type, int idx);
101 B<idx> set to zero.
[all …]
/openssl/crypto/bio/
H A Dbss_dgram_pair.c42 r->idx[0] = r->idx[1] = r->count = 0; in ring_buf_init()
64 size_t max_len = r->len - r->idx[idx]; in ring_buf_head_tail()
71 *buf = (uint8_t *)r->start + r->idx[idx]; in ring_buf_head_tail()
90 if (!ossl_assert(num_bytes <= r->len - r->idx[idx])) in ring_buf_push_pop()
101 new_idx = r->idx[idx] + num_bytes; in ring_buf_push_pop()
105 r->idx[idx] = new_idx; in ring_buf_push_pop()
106 if (idx != 0) in ring_buf_push_pop()
117 r->idx[0] = r->idx[1] = r->count = 0; in ring_buf_clear()
140 if (r->idx[0] <= r->idx[1]) { in ring_buf_resize()
143 memmove(new_start + r->idx[1] + offset, new_start + r->idx[1], in ring_buf_resize()
[all …]

Completed in 133 milliseconds

123456789