Home
last modified time | relevance | path

Searched refs:cbc (Results 1 – 25 of 159) sorted by relevance

1234567

/third_party/skia/third_party/externals/microhttpd/src/testcurl/
Dtest_get_chunked.c60 struct CBC *cbc = ctx; in copyBuffer() local
62 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer()
64 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer()
65 cbc->pos += size * nmemb; in copyBuffer()
133 validate (struct CBC cbc, int ebase) in validate() argument
138 if (cbc.pos != 128 * 10) in validate()
144 if (0 != memcmp (buf, &cbc.buf[i * 128], 128)) in validate()
148 128, buf, 128, &cbc.buf[i * 128]); in validate()
161 struct CBC cbc; in testInternalGet() local
164 cbc.buf = buf; in testInternalGet()
[all …]
Dtest_get_sendfile.c66 struct CBC *cbc = ctx; in copyBuffer() local
68 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer()
70 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer()
71 cbc->pos += size * nmemb; in copyBuffer()
122 struct CBC cbc; in testInternalGet() local
125 cbc.buf = buf; in testInternalGet()
126 cbc.size = 2048; in testInternalGet()
127 cbc.pos = 0; in testInternalGet()
135 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalGet()
158 if (cbc.pos != strlen (TESTSTR)) in testInternalGet()
[all …]
Dtest_large_put.c85 struct CBC *cbc = ctx; in copyBuffer() local
87 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer()
89 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer()
90 cbc->pos += size * nmemb; in copyBuffer()
146 struct CBC cbc; in testInternalPut() local
152 cbc.buf = buf; in testInternalPut()
153 cbc.size = 2048; in testInternalPut()
154 cbc.pos = 0; in testInternalPut()
165 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalPut()
192 if (cbc.pos != strlen ("/hello_world")) in testInternalPut()
[all …]
Dtest_get.c68 struct CBC *cbc = ctx; in copyBuffer() local
70 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer()
72 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer()
73 cbc->pos += size * nmemb; in copyBuffer()
116 struct CBC cbc; in testInternalGet() local
119 cbc.buf = buf; in testInternalGet()
120 cbc.size = 2048; in testInternalGet()
121 cbc.pos = 0; in testInternalGet()
129 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalGet()
152 if (cbc.pos != strlen ("/hello_world")) in testInternalGet()
[all …]
Dtest_put_chunked.c73 struct CBC *cbc = ctx; in copyBuffer() local
75 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer()
77 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer()
78 cbc->pos += size * nmemb; in copyBuffer()
136 struct CBC cbc; in testInternalPut() local
141 cbc.buf = buf; in testInternalPut()
142 cbc.size = 2048; in testInternalPut()
143 cbc.pos = 0; in testInternalPut()
152 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalPut()
179 if (cbc.pos != strlen ("/hello_world")) in testInternalPut()
[all …]
Dperf_get.c143 struct CBC *cbc = ctx; in copyBuffer() local
145 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer()
147 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer()
148 cbc->pos += size * nmemb; in copyBuffer()
186 struct CBC cbc; in testInternalGet() local
193 cbc.buf = buf; in testInternalGet()
194 cbc.size = 2048; in testInternalGet()
202 cbc.pos = 0; in testInternalGet()
206 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalGet()
232 if (cbc.pos != strlen ("/hello_world")) in testInternalGet()
[all …]
Dtest_put.c72 struct CBC *cbc = ctx; in copyBuffer() local
74 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer()
76 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer()
77 cbc->pos += size * nmemb; in copyBuffer()
126 struct CBC cbc; in testInternalPut() local
131 cbc.buf = buf; in testInternalPut()
132 cbc.size = 2048; in testInternalPut()
133 cbc.pos = 0; in testInternalPut()
142 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalPut()
169 if (cbc.pos != strlen ("/hello_world")) in testInternalPut()
[all …]
Dtest_process_headers.c59 struct CBC *cbc = ctx; in copyBuffer() local
61 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer()
63 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer()
64 cbc->pos += size * nmemb; in copyBuffer()
154 struct CBC cbc; in testInternalGet() local
157 cbc.buf = buf; in testInternalGet()
158 cbc.size = 2048; in testInternalGet()
159 cbc.pos = 0; in testInternalGet()
167 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalGet()
190 if (cbc.pos != strlen ("/hello_world")) in testInternalGet()
[all …]
Dtest_postform.c76 struct CBC *cbc = ctx; in copyBuffer() local
78 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer()
80 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer()
81 cbc->pos += size * nmemb; in copyBuffer()
179 struct CBC cbc; in testInternalPost() local
183 cbc.buf = buf; in testInternalPost()
184 cbc.size = 2048; in testInternalPost()
185 cbc.pos = 0; in testInternalPost()
195 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalPost()
222 if (cbc.pos != strlen ("/hello_world")) in testInternalPost()
[all …]
Dtest_iplimit.c66 struct CBC *cbc = ctx; in copyBuffer() local
68 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer()
70 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer()
71 cbc->pos += size * nmemb; in copyBuffer()
130 struct CBC cbc[3]; in testMultithreadedGet() local
142 cbc[i].buf = buf; in testMultithreadedGet()
143 cbc[i].size = 2048; in testMultithreadedGet()
144 cbc[i].pos = 0; in testMultithreadedGet()
148 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc[i]); in testMultithreadedGet()
184 if (cbc[i].pos != strlen ("/hello_world")) in testMultithreadedGet()
[all …]
Dtest_quiesce.c61 struct CBC *cbc = ctx; in copyBuffer() local
63 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer()
65 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer()
66 cbc->pos += size * nmemb; in copyBuffer()
160 setupCURL (void *cbc) in setupCURL() argument
167 curl_easy_setopt (c, CURLOPT_WRITEDATA, cbc); in setupCURL()
187 struct CBC cbc; in testGet() local
193 cbc.buf = buf; in testGet()
194 cbc.size = 2048; in testGet()
195 cbc.pos = 0; in testGet()
[all …]
Dtest_post.c82 struct CBC *cbc = ctx; in copyBuffer() local
84 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer()
86 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer()
87 cbc->pos += size * nmemb; in copyBuffer()
167 struct CBC cbc; in testInternalPost() local
170 cbc.buf = buf; in testInternalPost()
171 cbc.size = 2048; in testInternalPost()
172 cbc.pos = 0; in testInternalPost()
182 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalPost()
208 if (cbc.pos != strlen ("/hello_world")) in testInternalPost()
[all …]
Dtest_timeout.c111 struct CBC *cbc = ctx; in copyBuffer() local
113 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer()
115 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer()
116 cbc->pos += size * nmemb; in copyBuffer()
167 struct CBC cbc; in testWithoutTimeout() local
172 cbc.buf = buf; in testWithoutTimeout()
173 cbc.size = 2048; in testWithoutTimeout()
174 cbc.pos = 0; in testWithoutTimeout()
186 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testWithoutTimeout()
210 if (cbc.pos != strlen ("/hello_world")) in testWithoutTimeout()
[all …]
Dtest_post_loop.c63 struct CBC *cbc = ctx; in copyBuffer() local
65 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer()
67 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer()
68 cbc->pos += size * nmemb; in copyBuffer()
115 struct CBC cbc; in testInternalPost() local
120 cbc.buf = buf; in testInternalPost()
121 cbc.size = 2048; in testInternalPost()
131 cbc.pos = 0; in testInternalPost()
136 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalPost()
179 struct CBC cbc; in testMultithreadedPost() local
[all …]
Dtest_urlparse.c61 struct CBC *cbc = ctx; in copyBuffer() local
63 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer()
65 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer()
66 cbc->pos += size * nmemb; in copyBuffer()
131 struct CBC cbc; in testInternalGet() local
134 cbc.buf = buf; in testInternalGet()
135 cbc.size = 2048; in testInternalGet()
136 cbc.pos = 0; in testInternalGet()
144 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalGet()
167 if (cbc.pos != strlen ("/hello_world")) in testInternalGet()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
Dcrypto_internal-cipher.c26 u8 cbc[32]; member
32 u8 cbc[8]; member
37 u8 cbc[8]; member
76 os_memcpy(ctx->u.aes.cbc, iv, AES_BLOCK_SIZE); in crypto_cipher_init()
84 os_memcpy(ctx->u.des3.cbc, iv, 8); in crypto_cipher_init()
92 os_memcpy(ctx->u.des.cbc, iv, 8); in crypto_cipher_init()
122 ctx->u.aes.cbc[j] ^= plain[j]; in crypto_cipher_encrypt()
123 aes_encrypt(ctx->u.aes.ctx_enc, ctx->u.aes.cbc, in crypto_cipher_encrypt()
124 ctx->u.aes.cbc); in crypto_cipher_encrypt()
125 os_memcpy(crypt, ctx->u.aes.cbc, AES_BLOCK_SIZE); in crypto_cipher_encrypt()
[all …]
Daes-cbc.c27 u8 cbc[AES_BLOCK_SIZE]; in aes_128_cbc_encrypt() local
37 os_memcpy(cbc, iv, AES_BLOCK_SIZE); in aes_128_cbc_encrypt()
42 cbc[j] ^= pos[j]; in aes_128_cbc_encrypt()
43 aes_encrypt(ctx, cbc, cbc); in aes_128_cbc_encrypt()
44 os_memcpy(pos, cbc, AES_BLOCK_SIZE); in aes_128_cbc_encrypt()
63 u8 cbc[AES_BLOCK_SIZE], tmp[AES_BLOCK_SIZE]; in aes_128_cbc_decrypt() local
73 os_memcpy(cbc, iv, AES_BLOCK_SIZE); in aes_128_cbc_decrypt()
80 pos[j] ^= cbc[j]; in aes_128_cbc_decrypt()
81 os_memcpy(cbc, tmp, AES_BLOCK_SIZE); in aes_128_cbc_decrypt()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
Dcrypto_internal-cipher.c26 u8 cbc[32]; member
32 u8 cbc[8]; member
37 u8 cbc[8]; member
76 os_memcpy(ctx->u.aes.cbc, iv, AES_BLOCK_SIZE); in crypto_cipher_init()
84 os_memcpy(ctx->u.des3.cbc, iv, 8); in crypto_cipher_init()
92 os_memcpy(ctx->u.des.cbc, iv, 8); in crypto_cipher_init()
122 ctx->u.aes.cbc[j] ^= plain[j]; in crypto_cipher_encrypt()
123 aes_encrypt(ctx->u.aes.ctx_enc, ctx->u.aes.cbc, in crypto_cipher_encrypt()
124 ctx->u.aes.cbc); in crypto_cipher_encrypt()
125 os_memcpy(crypt, ctx->u.aes.cbc, AES_BLOCK_SIZE); in crypto_cipher_encrypt()
[all …]
/third_party/skia/third_party/externals/microhttpd/src/testzzuf/
Dtest_put_chunked.c68 struct CBC *cbc = ctx; in copyBuffer() local
70 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer()
72 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer()
73 cbc->pos += size * nmemb; in copyBuffer()
129 struct CBC cbc; in testInternalPut() local
134 cbc.buf = buf; in testInternalPut()
135 cbc.size = 2048; in testInternalPut()
136 cbc.pos = 0; in testInternalPut()
149 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalPut()
180 struct CBC cbc; in testMultithreadedPut() local
[all …]
Dtest_get_chunked.c51 struct CBC *cbc = ctx; in copyBuffer() local
53 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer()
55 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer()
56 cbc->pos += size * nmemb; in copyBuffer()
127 struct CBC cbc; in testInternalGet() local
130 cbc.buf = buf; in testInternalGet()
131 cbc.size = 2048; in testInternalGet()
132 cbc.pos = 0; in testInternalGet()
144 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalGet()
168 struct CBC cbc; in testMultithreadedGet() local
[all …]
Dtest_get.c53 struct CBC *cbc = ctx; in copyBuffer() local
55 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer()
57 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer()
58 cbc->pos += size * nmemb; in copyBuffer()
101 struct CBC cbc; in testInternalGet() local
104 cbc.buf = buf; in testInternalGet()
105 cbc.size = 2048; in testInternalGet()
106 cbc.pos = 0; in testInternalGet()
118 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalGet()
145 struct CBC cbc; in testMultithreadedGet() local
[all …]
Dtest_put.c68 struct CBC *cbc = ctx; in copyBuffer() local
70 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer()
72 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer()
73 cbc->pos += size * nmemb; in copyBuffer()
123 struct CBC cbc; in testInternalPut() local
128 cbc.buf = buf; in testInternalPut()
129 cbc.size = 2048; in testInternalPut()
130 cbc.pos = 0; in testInternalPut()
143 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalPut()
174 struct CBC cbc; in testMultithreadedPut() local
[all …]
Dtest_put_large.c76 struct CBC *cbc = ctx; in copyBuffer() local
78 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer()
80 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer()
81 cbc->pos += size * nmemb; in copyBuffer()
136 struct CBC cbc; in testInternalPut() local
142 cbc.buf = buf; in testInternalPut()
143 cbc.size = 2048; in testInternalPut()
144 cbc.pos = 0; in testInternalPut()
158 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalPut()
188 struct CBC cbc; in testMultithreadedPut() local
[all …]
Dtest_post.c71 struct CBC *cbc = ctx; in copyBuffer() local
73 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer()
75 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer()
76 cbc->pos += size * nmemb; in copyBuffer()
154 struct CBC cbc; in testInternalPost() local
157 cbc.buf = buf; in testInternalPost()
158 cbc.size = 2048; in testInternalPost()
159 cbc.pos = 0; in testInternalPost()
174 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); in testInternalPost()
205 struct CBC cbc; in testMultithreadedPost() local
[all …]
/third_party/skia/third_party/externals/microhttpd/src/testcurl/https/
Dtls_test_common.c72 struct CBC cbc; in test_daemon_get() local
78 if (NULL == (cbc.buf = malloc (sizeof (char) * len))) in test_daemon_get()
83 cbc.size = len; in test_daemon_get()
84 cbc.pos = 0; in test_daemon_get()
98 curl_easy_setopt (c, CURLOPT_FILE, &cbc); in test_daemon_get()
120 free (cbc.buf); in test_daemon_get()
126 if (memcmp (cbc.buf, test_data, len) != 0) in test_daemon_get()
129 free (cbc.buf); in test_daemon_get()
133 free (cbc.buf); in test_daemon_get()
152 struct CBC *cbc = ctx; in copyBuffer() local
[all …]

1234567