Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 25 of 162) sorted by relevance

1234567

/openssl/include/internal/
H A Dtsan_assist.h103 # define tsan_load(ptr) (sizeof(*(ptr)) == 8 ? __iso_volatile_load64(ptr) \ argument
112 # define tsan_load(ptr) (*(ptr)) argument
113 # define tsan_store(ptr, val) (*(ptr) = (val)) argument
118 # define tsan_add(ptr, n) (sizeof(*(ptr)) == 8 ? _InterlockedExchangeAdd64((ptr), (n)) \ argument
124 # define tsan_ld_acq(ptr) (*(ptr)) argument
125 # define tsan_st_rel(ptr, val) (*(ptr) = (val)) argument
139 # define tsan_load(ptr) (*(ptr)) argument
140 # define tsan_store(ptr, val) (*(ptr) = (val)) argument
141 # define tsan_add(ptr, n) (*(ptr) += (n)) argument
150 # define tsan_counter(ptr) tsan_add((ptr), 1) argument
[all …]
/openssl/crypto/
H A Dmem_sec.c199 if (ptr == NULL) in CRYPTO_secure_free()
210 sh_free(ptr); in CRYPTO_secure_free()
223 if (ptr == NULL) in CRYPTO_secure_clear_free()
235 sh_free(ptr); in CRYPTO_secure_clear_free()
238 if (ptr == NULL) in CRYPTO_secure_clear_free()
401 temp = (SH_LIST *)ptr; in sh_add_to_list()
411 *list = ptr; in sh_add_to_list()
702 if (ptr == NULL) in sh_free()
727 memset(ptr > buddy ? ptr : buddy, 0, sizeof(SH_LIST)); in sh_free()
728 if (ptr > buddy) in sh_free()
[all …]
H A Driscv64cpuid.pl45 my ($ptr,$len,$temp1,$temp2) = ('a0','a1','t0','t1');
48 # void OPENSSL_cleanse(void *ptr, size_t len)
60 sb x0,0($ptr)
61 addi $ptr,$ptr,1
68 andi $temp1,$ptr,0x7
70 sb x0,0($ptr)
71 addi $ptr,$ptr,1
78 sd x0,0($ptr)
79 addi $ptr,$ptr,8
H A Driscv32cpuid.pl45 my ($ptr,$len,$temp1,$temp2) = ('a0','a1','t0','t1');
48 # void OPENSSL_cleanse(void *ptr, size_t len)
60 sb x0,0($ptr)
61 addi $ptr,$ptr,1
68 andi $temp1,$ptr,0x3
70 sb x0,0($ptr)
71 addi $ptr,$ptr,1
78 sw x0,0($ptr)
79 addi $ptr,$ptr,4
H A Dloongarch64cpuid.pl53 my ($ptr,$len,$temp1,$temp2) = ($a0,$a1,$t0,$t1);
56 # void OPENSSL_cleanse(void *ptr, size_t len)
68 st.b $zero,$ptr,0
69 addi.d $ptr,$ptr,1
76 andi $temp1,$ptr,0x7
78 st.b $zero,$ptr,0
79 addi.d $ptr,$ptr,1
86 st.d $zero,$ptr,0
87 addi.d $ptr,$ptr,8
/openssl/crypto/bio/
H A Dbss_file.c113 bi->ptr = NULL; in file_new()
127 fclose(a->ptr); in file_free()
128 a->ptr = NULL; in file_free()
147 ? UP_ferror((FILE *)b->ptr) : ferror((FILE *)b->ptr))) { in file_read()
181 FILE *fp = (FILE *)b->ptr; in file_ctrl()
210 b->ptr = ptr; in file_ctrl()
218 if (ptr == stdin || ptr == stdout || ptr == stderr) in file_ctrl()
304 b->ptr = fp; in file_ctrl()
311 if (ptr != NULL) { in file_ctrl()
312 fpp = (FILE **)ptr; in file_ctrl()
[all …]
H A Dbss_sock.c94 bi->ptr = OPENSSL_zalloc(sizeof(struct bss_sock_st)); in sock_new()
95 if (bi->ptr == NULL) in sock_new()
111 OPENSSL_free(a->ptr); in sock_free()
112 a->ptr = NULL; in sock_free()
193 b->num = *((int *)ptr); in sock_ctrl()
201 ip = (int *)ptr; in sock_ctrl()
221 BIO_POLL_DESCRIPTOR *pd = ptr; in sock_ctrl()
234 crypto_info = (ktls_crypto_info_t *)ptr; in sock_ctrl()
262 if (ptr != NULL && num == 2) { in sock_ctrl()
263 const char **pptr = (const char **)ptr; in sock_ctrl()
[all …]
H A Dbss_acpt.c85 bi->ptr = (char *)ba; in acpt_new()
121 c = (BIO_ACCEPT *)bio->ptr; in acpt_close_socket()
136 data = (BIO_ACCEPT *)a->ptr; in acpt_free()
141 a->ptr = NULL; in acpt_free()
369 data = (BIO_ACCEPT *)b->ptr; in acpt_read()
388 data = (BIO_ACCEPT *)b->ptr; in acpt_write()
408 data = (BIO_ACCEPT *)b->ptr; in acpt_ctrl()
424 if (ptr != NULL) { in acpt_ctrl()
471 b->num = *((int *)ptr); in acpt_ctrl()
479 ip = (int *)ptr; in acpt_ctrl()
[all …]
H A Dbf_buff.c66 bi->ptr = (char *)ctx; in buffer_new()
77 b = (BIO_F_BUFFER_CTX *)a->ptr; in buffer_free()
80 OPENSSL_free(a->ptr); in buffer_free()
81 a->ptr = NULL; in buffer_free()
94 ctx = (BIO_F_BUFFER_CTX *)b->ptr; in buffer_read()
165 ctx = (BIO_F_BUFFER_CTX *)b->ptr; in buffer_write()
244 ctx = (BIO_F_BUFFER_CTX *)b->ptr; in buffer_ctrl()
304 if (ptr != NULL) { in buffer_ctrl()
305 ip = (int *)ptr; in buffer_ctrl()
387 dbio = (BIO *)ptr; in buffer_ctrl()
[all …]
H A Dbss_dgram_pair.c292 bio->ptr = b; in dgram_pair_init()
303 b = bio->ptr; in dgram_mem_init()
323 b = bio->ptr; in dgram_pair_free()
353 b1 = bio1->ptr; in dgram_pair_ctrl_make_bio_pair()
354 b2 = bio2->ptr; in dgram_pair_ctrl_make_bio_pair()
413 b2 = bio2->ptr; in dgram_pair_ctrl_destroy_bio_pair()
443 peerb = b->peer->ptr; in dgram_pair_ctrl_eof()
500 readb = b->peer->ptr; in dgram_pair_ctrl_pending()
556 readb = b->peer->ptr; in dgram_pair_ctrl_get_local_addr_cap()
572 peerb = b->peer->ptr; in dgram_pair_ctrl_get_effective_caps()
[all …]
H A Dbss_conn.c336 c = (BIO_CONNECT *)bio->ptr; in conn_close_socket()
352 data = (BIO_CONNECT *)a->ptr; in conn_free()
359 a->ptr = NULL; in conn_free()
371 data = (BIO_CONNECT *)b->ptr; in conn_read()
482 if (ptr != NULL) { in conn_ctrl()
517 if (ptr != NULL) { in conn_ctrl()
650 ip = (int *)ptr; in conn_ctrl()
671 dbio = (BIO *)ptr; in conn_ctrl()
764 char *ptr = buf; in conn_gets() local
809 if (*ptr++ == '\n') in conn_gets()
[all …]
H A Dbss_bio.c86 bio->ptr = b; in bio_new()
96 b = bio->ptr; in bio_free()
120 b = bio->ptr; in bio_read()
123 peer_b = b->peer->ptr; in bio_read()
210 b = bio->ptr; in bio_nread0()
253 b = bio->ptr; in bio_nread()
279 b = bio->ptr; in bio_write()
356 b = bio->ptr; in bio_nwrite0()
408 b = bio->ptr; in bio_nwrite()
613 b1 = bio1->ptr; in bio_make_pair()
[all …]
H A Dbss_mem.c96 bb = (BIO_BUF_MEM *)ret->ptr; in BIO_new_mem_buf()
128 bi->ptr = (char *)bb; in mem_init()
149 bb = (BIO_BUF_MEM *)a->ptr; in mem_free()
194 BIO_BUF_MEM *bbm = (BIO_BUF_MEM *)b->ptr; in mem_read()
218 BIO_BUF_MEM *bbm = (BIO_BUF_MEM *)b->ptr; in mem_write()
246 BIO_BUF_MEM *bbm = (BIO_BUF_MEM *)b->ptr; in mem_ctrl()
296 if (ptr != NULL) { in mem_ctrl()
297 pptr = (char **)ptr; in mem_ctrl()
304 bbm->buf = ptr; in mem_ctrl()
308 if (ptr != NULL) { in mem_ctrl()
[all …]
H A Dbf_lbuf.c71 bi->ptr = (char *)ctx; in linebuffer_new()
82 b = (BIO_LINEBUFFER_CTX *)a->ptr; in linebuffer_free()
84 OPENSSL_free(a->ptr); in linebuffer_free()
85 a->ptr = NULL; in linebuffer_free()
112 ctx = (BIO_LINEBUFFER_CTX *)b->ptr; in linebuffer_write()
209 ctx = (BIO_LINEBUFFER_CTX *)b->ptr; in linebuffer_ctrl()
216 ret = BIO_ctrl(b->next_bio, cmd, num, ptr); in linebuffer_ctrl()
253 ret = BIO_ctrl(b->next_bio, cmd, num, ptr); in linebuffer_ctrl()
281 ret = BIO_ctrl(b->next_bio, cmd, num, ptr); in linebuffer_ctrl()
285 dbio = (BIO *)ptr; in linebuffer_ctrl()
[all …]
H A Dbss_fd.c94 bi->ptr = NULL; in fd_new()
144 static long fd_ctrl(BIO *b, int cmd, long num, void *ptr) in fd_ctrl() argument
162 b->num = *((int *)ptr); in fd_ctrl()
168 ip = (int *)ptr; in fd_ctrl()
211 char *ptr = buf; in fd_gets() local
214 while (ptr < end && fd_read(bp, ptr, 1) > 0) { in fd_gets()
215 if (*ptr++ == '\n') in fd_gets()
219 ptr[0] = '\0'; in fd_gets()
/openssl/crypto/sha/asm/
H A Dsha1-mb-x86_64.pl141 lea `16*4`(@ptr[0]),@ptr[0]
143 lea `16*4`(@ptr[1]),@ptr[1]
145 lea `16*4`(@ptr[2]),@ptr[2]
147 lea `16*4`(@ptr[3]),@ptr[3]
625 lea 0x40(@ptr[0]),@ptr[0]
628 lea 0x40(@ptr[1]),@ptr[1]
809 lea `16*4`(@ptr[0]),@ptr[0]
811 lea `16*4`(@ptr[1]),@ptr[1]
813 lea `16*4`(@ptr[2]),@ptr[2]
815 lea `16*4`(@ptr[3]),@ptr[3]
[all …]
H A Dsha256-mb-x86_64.pl129 lea `16*4`(@ptr[0]),@ptr[0]
131 lea `16*4`(@ptr[1]),@ptr[1]
133 lea `16*4`(@ptr[2]),@ptr[2]
135 lea `16*4`(@ptr[3]),@ptr[3]
538 lea 0x40(@ptr[0]),@ptr[0]
540 lea 0x40(@ptr[1]),@ptr[1]
814 lea `16*4`(@ptr[0]),@ptr[0]
816 lea `16*4`(@ptr[1]),@ptr[1]
818 lea `16*4`(@ptr[2]),@ptr[2]
820 lea `16*4`(@ptr[3]),@ptr[3]
[all …]
/openssl/util/perl/TLSProxy/
H A DServerKeyExchange.pm62 my $ptr = 2;
63 my $p = substr($self->data, $ptr, $p_len);
64 $ptr += $p_len;
67 $ptr += 2;
68 my $g = substr($self->data, $ptr, $g_len);
69 $ptr += $g_len;
72 $ptr += 2;
74 $ptr += $pub_key_len;
82 $ptr += 2;
88 $ptr += 2;
[all …]
H A DClientHello.pm62 my $ptr = 2;
65 $ptr += 32;
67 $ptr++;
69 $ptr += $session_id_len;
74 $ptr++;
76 $ptr += $legacy_cookie_len;
79 $ptr += 2;
82 $ptr += $ciphersuite_len;
84 $ptr++;
86 $ptr += $comp_meth_len;
[all …]
H A DServerHello.pm61 my $ptr = 2;
65 my $random = substr($self->data, $ptr, 32);
66 $ptr += 32;
70 $ptr++;
72 $ptr += $session_id_len;
75 $ptr += 2;
77 $comp_meth = unpack('C', substr($self->data, $ptr));
78 $ptr++;
84 $ptr += 2;
90 $extension_data = substr($self->data, $ptr);
[all …]
H A DCertificateRequest.pm48 my $ptr = 1;
52 my $request_ctx = substr($self->data, $ptr, $request_ctx_len);
53 $ptr += $request_ctx_len;
55 my $extensions_len = unpack('n', substr($self->data, $ptr));
56 $ptr += 2;
57 my $extension_data = substr($self->data, $ptr);
/openssl/crypto/aes/asm/
H A Daesni-mb-x86_64.pl812 sub @ptr[$i],$offset
818 lea 16(@ptr[$i],$offset),@ptr[$i] # switch to output
827 prefetcht0 15(@ptr[$i-1])
1067 vmovdqu (@ptr[1]),@out[1]
1068 vmovdqu (@ptr[2]),@out[2]
1069 vmovdqu (@ptr[3]),@out[3]
1070 vmovdqu (@ptr[4]),@out[4]
1071 vmovdqu (@ptr[5]),@out[5]
1072 vmovdqu (@ptr[6]),@out[6]
1121 sub @ptr[$i],$offset
[all …]
/openssl/crypto/dso/
H A Ddso_dl.c55 shl_t ptr = NULL; in dl_load() local
67 ptr = shl_load(filename, BIND_IMMEDIATE | in dl_load()
70 if (ptr == NULL) { in dl_load()
94 if (ptr != NULL) in dl_load()
95 shl_unload(ptr); in dl_load()
101 shl_t ptr; in dl_unload() local
109 ptr = (shl_t) sk_pop(dso->meth_data); in dl_unload()
110 if (ptr == NULL) { in dl_unload()
118 shl_unload(ptr); in dl_unload()
124 shl_t ptr; in dl_bind_func() local
[all …]
H A Ddso_dlfcn.c98 void *ptr = NULL; in dlfcn_load() local
116 ptr = dlopen(filename, flags); in dlfcn_load()
117 if (ptr == NULL) { in dlfcn_load()
137 if (ptr != NULL) in dlfcn_load()
138 dlclose(ptr); in dlfcn_load()
144 void *ptr; in dlfcn_unload() local
152 if (ptr == NULL) { in dlfcn_unload()
161 dlclose(ptr); in dlfcn_unload()
167 void *ptr; in dlfcn_bind_func() local
182 if (ptr == NULL) { in dlfcn_bind_func()
[all …]
/openssl/crypto/evp/
H A Dbio_md.c131 static long md_ctrl(BIO *b, int cmd, long num, void *ptr) in md_ctrl() argument
150 ret = BIO_ctrl(next, cmd, num, ptr); in md_ctrl()
154 ppmd = ptr; in md_ctrl()
160 pctx = ptr; in md_ctrl()
166 BIO_set_data(b, ptr); in md_ctrl()
172 ret = BIO_ctrl(next, cmd, num, ptr); in md_ctrl()
177 md = ptr; in md_ctrl()
183 dbio = ptr; in md_ctrl()
190 ret = BIO_ctrl(next, cmd, num, ptr); in md_ctrl()

Completed in 53 milliseconds

1234567