Home
last modified time | relevance | path

Searched refs:olen (Results 1 - 25 of 258) sorted by relevance

1234567891011

/third_party/curl/lib/
H A Descape.c108 * *olen. If length == 0, the length is assumed to be strlen(string).
121 char **ostring, size_t *olen, in Curl_urldecode()
164 if(olen) in Curl_urldecode()
166 *olen = ns - *ostring; in Curl_urldecode()
173 * pointer to a malloced string with length given in *olen.
175 * If olen == NULL, no output length is stored.
179 int length, int *olen) in curl_easy_unescape()
191 if(olen) { in curl_easy_unescape()
193 *olen = curlx_uztosi(outputlen); in curl_easy_unescape()
217 unsigned char *out, size_t olen) /* outpu in Curl_hexencode()
120 Curl_urldecode(const char *string, size_t length, char **ostring, size_t *olen, enum urlreject ctrl) Curl_urldecode() argument
178 curl_easy_unescape(struct Curl_easy *data, const char *string, int length, int *olen) curl_easy_unescape() argument
216 Curl_hexencode(const unsigned char *src, size_t len, unsigned char *out, size_t olen) Curl_hexencode() argument
[all...]
/third_party/mbedtls/3rdparty/everest/library/
H A Dx25519.c59 int mbedtls_x25519_make_params( mbedtls_x25519_context *ctx, size_t *olen, in mbedtls_x25519_make_params() argument
71 *olen = MBEDTLS_X25519_KEY_SIZE_BYTES + 4; in mbedtls_x25519_make_params()
72 if( blen < *olen ) in mbedtls_x25519_make_params()
107 size_t olen = 0; in mbedtls_x25519_get_params() local
111 return mbedtls_ecp_point_write_binary( &key->grp, &key->Q, MBEDTLS_ECP_PF_COMPRESSED, &olen, ctx->peer_point, MBEDTLS_X25519_KEY_SIZE_BYTES ); in mbedtls_x25519_get_params()
119 int mbedtls_x25519_calc_secret( mbedtls_x25519_context *ctx, size_t *olen, in mbedtls_x25519_calc_secret() argument
129 *olen = MBEDTLS_X25519_KEY_SIZE_BYTES; in mbedtls_x25519_calc_secret()
131 if( blen < *olen ) in mbedtls_x25519_calc_secret()
145 int mbedtls_x25519_make_public( mbedtls_x25519_context *ctx, size_t *olen, in mbedtls_x25519_make_public() argument
159 *olen in mbedtls_x25519_make_public()
[all...]
H A Deverest.c48 int mbedtls_everest_make_params( mbedtls_ecdh_context_everest *ctx, size_t *olen, in mbedtls_everest_make_params() argument
54 return mbedtls_x25519_make_params( x25519_ctx, olen, buf, blen, f_rng, p_rng ); in mbedtls_everest_make_params()
76 int mbedtls_everest_make_public( mbedtls_ecdh_context_everest *ctx, size_t *olen, in mbedtls_everest_make_public() argument
82 return mbedtls_x25519_make_public( x25519_ctx, olen, buf, blen, f_rng, p_rng ); in mbedtls_everest_make_public()
92 int mbedtls_everest_calc_secret( mbedtls_ecdh_context_everest *ctx, size_t *olen, in mbedtls_everest_calc_secret() argument
98 return mbedtls_x25519_calc_secret( x25519_ctx, olen, buf, blen, f_rng, p_rng ); in mbedtls_everest_calc_secret()
/third_party/mbedtls/library/
H A Dentropy_poll.c44 size_t *olen) in mbedtls_platform_entropy_poll()
47 *olen = 0; in mbedtls_platform_entropy_poll()
63 *olen += ulong_bytes; in mbedtls_platform_entropy_poll()
149 unsigned char *output, size_t len, size_t *olen) in mbedtls_platform_entropy_poll()
159 *olen = (size_t) ret; in mbedtls_platform_entropy_poll()
175 *olen = len; in mbedtls_platform_entropy_poll()
179 *olen = 0; in mbedtls_platform_entropy_poll()
196 *olen = len; in mbedtls_platform_entropy_poll()
206 unsigned char *output, size_t len, size_t *olen) in mbedtls_nv_seed_poll()
223 *olen in mbedtls_nv_seed_poll()
43 mbedtls_platform_entropy_poll(void *data, unsigned char *output, size_t len, size_t *olen) mbedtls_platform_entropy_poll() argument
148 mbedtls_platform_entropy_poll(void *data, unsigned char *output, size_t len, size_t *olen) mbedtls_platform_entropy_poll() argument
205 mbedtls_nv_seed_poll(void *data, unsigned char *output, size_t len, size_t *olen) mbedtls_nv_seed_poll() argument
[all...]
H A Decdh.c274 size_t *olen, int point_format, in ecdh_make_params_internal()
326 *olen = grp_len + pt_len; in ecdh_make_params_internal()
337 int mbedtls_ecdh_make_params(mbedtls_ecdh_context *ctx, size_t *olen, in mbedtls_ecdh_make_params() argument
350 return ecdh_make_params_internal(ctx, olen, ctx->point_format, buf, blen, in mbedtls_ecdh_make_params()
356 return mbedtls_everest_make_params(&ctx->ctx.everest_ecdh, olen, in mbedtls_ecdh_make_params()
360 return ecdh_make_params_internal(&ctx->ctx.mbed_ecdh, olen, in mbedtls_ecdh_make_params()
493 size_t *olen, int point_format, in ecdh_make_public_internal()
530 return mbedtls_ecp_tls_write_point(&ctx->grp, &ctx->Q, point_format, olen, in ecdh_make_public_internal()
537 int mbedtls_ecdh_make_public(mbedtls_ecdh_context *ctx, size_t *olen, in mbedtls_ecdh_make_public() argument
548 return ecdh_make_public_internal(ctx, olen, ct in mbedtls_ecdh_make_public()
273 ecdh_make_params_internal(mbedtls_ecdh_context_mbed *ctx, size_t *olen, int point_format, unsigned char *buf, size_t blen, int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, int restart_enabled) ecdh_make_params_internal() argument
492 ecdh_make_public_internal(mbedtls_ecdh_context_mbed *ctx, size_t *olen, int point_format, unsigned char *buf, size_t blen, int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, int restart_enabled) ecdh_make_public_internal() argument
610 ecdh_calc_secret_internal(mbedtls_ecdh_context_mbed *ctx, size_t *olen, unsigned char *buf, size_t blen, int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, int restart_enabled) ecdh_calc_secret_internal() argument
665 mbedtls_ecdh_calc_secret(mbedtls_ecdh_context *ctx, size_t *olen, unsigned char *buf, size_t blen, int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) mbedtls_ecdh_calc_secret() argument
[all...]
H A Dcipher.c580 size_t ilen, unsigned char *output, size_t *olen) in mbedtls_cipher_update()
598 *olen = 0; in mbedtls_cipher_update()
609 *olen = ilen; in mbedtls_cipher_update()
624 output, ilen, olen); in mbedtls_cipher_update()
632 output, ilen, olen); in mbedtls_cipher_update()
638 *olen = ilen; in mbedtls_cipher_update()
687 *olen += block_size; in mbedtls_cipher_update()
729 *olen += ilen; in mbedtls_cipher_update()
746 *olen = ilen; in mbedtls_cipher_update()
762 *olen in mbedtls_cipher_update()
579 mbedtls_cipher_update(mbedtls_cipher_context_t *ctx, const unsigned char *input, size_t ilen, unsigned char *output, size_t *olen) mbedtls_cipher_update() argument
1011 mbedtls_cipher_finish(mbedtls_cipher_context_t *ctx, unsigned char *output, size_t *olen) mbedtls_cipher_finish() argument
1306 mbedtls_cipher_crypt(mbedtls_cipher_context_t *ctx, const unsigned char *iv, size_t iv_len, const unsigned char *input, size_t ilen, unsigned char *output, size_t *olen) mbedtls_cipher_crypt() argument
1402 mbedtls_cipher_aead_encrypt(mbedtls_cipher_context_t *ctx, const unsigned char *iv, size_t iv_len, const unsigned char *ad, size_t ad_len, const unsigned char *input, size_t ilen, unsigned char *output, size_t *olen, unsigned char *tag, size_t tag_len) mbedtls_cipher_aead_encrypt() argument
1479 mbedtls_cipher_aead_decrypt(mbedtls_cipher_context_t *ctx, const unsigned char *iv, size_t iv_len, const unsigned char *ad, size_t ad_len, const unsigned char *input, size_t ilen, unsigned char *output, size_t *olen, const unsigned char *tag, size_t tag_len) mbedtls_cipher_aead_decrypt() argument
1582 mbedtls_cipher_auth_encrypt_ext(mbedtls_cipher_context_t *ctx, const unsigned char *iv, size_t iv_len, const unsigned char *ad, size_t ad_len, const unsigned char *input, size_t ilen, unsigned char *output, size_t output_len, size_t *olen, size_t tag_len) mbedtls_cipher_auth_encrypt_ext() argument
1633 mbedtls_cipher_auth_decrypt_ext(mbedtls_cipher_context_t *ctx, const unsigned char *iv, size_t iv_len, const unsigned char *ad, size_t ad_len, const unsigned char *input, size_t ilen, unsigned char *output, size_t output_len, size_t *olen, size_t tag_len) mbedtls_cipher_auth_decrypt_ext() argument
[all...]
H A Dbase64.c61 int mbedtls_base64_encode(unsigned char *dst, size_t dlen, size_t *olen, in mbedtls_base64_encode() argument
69 *olen = 0; in mbedtls_base64_encode()
76 *olen = SIZE_MAX; in mbedtls_base64_encode()
83 *olen = n + 1; in mbedtls_base64_encode()
119 *olen = (size_t) (p - dst); in mbedtls_base64_encode()
128 int mbedtls_base64_decode(unsigned char *dst, size_t dlen, size_t *olen, in mbedtls_base64_decode() argument
187 *olen = 0; in mbedtls_base64_decode()
199 *olen = n; in mbedtls_base64_decode()
228 *olen = (size_t) (p - dst); in mbedtls_base64_decode()
H A Dnist_kw.c133 size_t olen, padlen = 0; in mbedtls_nist_kw_wrap() local
197 inbuff, 16, output, &olen); in mbedtls_nist_kw_wrap()
219 inbuff, 16, outbuff, &olen); in mbedtls_nist_kw_wrap()
263 size_t olen; in unwrap() local
286 inbuff, 16, outbuff, &olen); in unwrap()
325 size_t olen; in mbedtls_nist_kw_unwrap() local
379 input, 16, outbuff, &olen); in mbedtls_nist_kw_unwrap()
584 size_t olen; in mbedtls_nist_kw_self_test() local
611 kw_msg_len[i], out, &olen, sizeof(out)); in mbedtls_nist_kw_self_test()
612 if (ret != 0 || kw_out_len[i] != olen || in mbedtls_nist_kw_self_test()
[all...]
H A Dentropy_poll.h46 unsigned char *output, size_t len, size_t *olen);
59 unsigned char *output, size_t len, size_t *olen);
69 unsigned char *output, size_t len, size_t *olen);
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
H A Dbase64.c28 size_t olen; in base64_gen_encode() local
33 olen = len * 4 / 3 + 4; /* 3-byte blocks to 4-byte */ in base64_gen_encode()
35 olen += olen / 72; /* line feeds */ in base64_gen_encode()
36 olen++; /* nul termination */ in base64_gen_encode()
37 if (olen < len) in base64_gen_encode()
39 out = os_malloc(olen); in base64_gen_encode()
91 size_t i, count, olen; in base64_gen_decode() local
110 olen = (count + extra_pad) / 4 * 3; in base64_gen_decode()
111 pos = out = os_malloc(olen); in base64_gen_decode()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
H A Dbase64.c31 size_t olen; in base64_gen_encode() local
36 olen = len * 4 / 3 + 4; /* 3-byte blocks to 4-byte */ in base64_gen_encode()
38 olen += olen / 72; /* line feeds */ in base64_gen_encode()
39 olen++; /* nul termination */ in base64_gen_encode()
40 if (olen < len) in base64_gen_encode()
42 out = os_malloc(olen); in base64_gen_encode()
93 size_t i, count, olen; in base64_gen_decode() local
112 olen = (count + extra_pad) / 4 * 3; in base64_gen_decode()
113 pos = out = os_malloc(olen); in base64_gen_decode()
[all...]
/third_party/toybox/toys/posix/
H A Duudecode.c54 int olen; in uudecode_main() local
63 olen = 0; in uudecode_main()
65 if (!m) olen = (*(in++) - 32) & 0x3f; in uudecode_main()
72 if (olen < 1) break; in uudecode_main()
73 if (olen < 3) len = olen + 1; in uudecode_main()
97 olen--; in uudecode_main()
/third_party/node/deps/openssl/openssl/providers/implementations/kdfs/
H A Dtls1_prf.c77 unsigned char *out, size_t olen);
290 unsigned char *out, size_t olen) in tls1_prf_P_hash()
324 if (olen > chunk) { in tls1_prf_P_hash()
331 if (olen <= chunk) { in tls1_prf_P_hash()
335 memcpy(out, Ai, olen); in tls1_prf_P_hash()
338 if (!EVP_MAC_final(ctx, out, NULL, olen)) in tls1_prf_P_hash()
343 olen -= chunk; in tls1_prf_P_hash()
376 unsigned char *out, size_t olen) in tls1_prf_alg()
387 seed, seed_len, out, olen)) in tls1_prf_alg()
390 if ((tmp = OPENSSL_malloc(olen)) in tls1_prf_alg()
287 tls1_prf_P_hash(EVP_MAC_CTX *ctx_init, const unsigned char *sec, size_t sec_len, const unsigned char *seed, size_t seed_len, unsigned char *out, size_t olen) tls1_prf_P_hash() argument
373 tls1_prf_alg(EVP_MAC_CTX *mdctx, EVP_MAC_CTX *sha1ctx, const unsigned char *sec, size_t slen, const unsigned char *seed, size_t seed_len, unsigned char *out, size_t olen) tls1_prf_alg() argument
[all...]
/third_party/openssl/providers/implementations/kdfs/
H A Dtls1_prf.c77 unsigned char *out, size_t olen);
290 unsigned char *out, size_t olen) in tls1_prf_P_hash()
324 if (olen > chunk) { in tls1_prf_P_hash()
331 if (olen <= chunk) { in tls1_prf_P_hash()
335 memcpy(out, Ai, olen); in tls1_prf_P_hash()
338 if (!EVP_MAC_final(ctx, out, NULL, olen)) in tls1_prf_P_hash()
343 olen -= chunk; in tls1_prf_P_hash()
376 unsigned char *out, size_t olen) in tls1_prf_alg()
387 seed, seed_len, out, olen)) in tls1_prf_alg()
390 if ((tmp = OPENSSL_malloc(olen)) in tls1_prf_alg()
287 tls1_prf_P_hash(EVP_MAC_CTX *ctx_init, const unsigned char *sec, size_t sec_len, const unsigned char *seed, size_t seed_len, unsigned char *out, size_t olen) tls1_prf_P_hash() argument
373 tls1_prf_alg(EVP_MAC_CTX *mdctx, EVP_MAC_CTX *sha1ctx, const unsigned char *sec, size_t slen, const unsigned char *seed, size_t seed_len, unsigned char *out, size_t olen) tls1_prf_alg() argument
[all...]
/third_party/curl/tests/unit/
H A Dunit1655.c104 size_t olen = 100000; variable
113 &olen);
133 fail_unless(olen <= sizeof(victim.dohbuffer), "wrote outside bounds");
134 fail_unless(olen > strlen(name), "unrealistic low size");
152 size_t olen; variable
156 fail_if(olen1 == magic1, "olen has not been assigned properly");
163 fail_if(olen2 == magic1, "olen has not been assigned properly");
164 fail_unless(olen1 == olen2, "olen should not grow for a trailing dot");
170 fail_if(olen2 == magic1, "olen has not been assigned properly");
171 fail_unless(olen1 + 1 == olen2, "olen shoul
[all...]
/third_party/mbedtls/programs/cipher/
H A Dcipher_aead_demo.c195 size_t olen; in aead_encrypt() local
203 CHK(mbedtls_cipher_update(ctx, part1, part1_len, p, &olen)); in aead_encrypt()
204 p += olen; in aead_encrypt()
205 CHK(mbedtls_cipher_update(ctx, part2, part2_len, p, &olen)); in aead_encrypt()
206 p += olen; in aead_encrypt()
207 CHK(mbedtls_cipher_finish(ctx, p, &olen)); in aead_encrypt()
208 p += olen; in aead_encrypt()
212 olen = p - out; in aead_encrypt()
213 print_buf("out", out, olen); in aead_encrypt()
/third_party/mbedtls/programs/aes/
H A Dcrypt_and_hash.c64 size_t keylen, ilen, olen; in main() local
339 if (mbedtls_cipher_update(&cipher_ctx, buffer, ilen, output, &olen) != 0) { in main()
344 if (mbedtls_md_hmac_update(&md_ctx, output, olen) != 0) { in main()
349 if (fwrite(output, 1, olen, fout) != olen) { in main()
350 mbedtls_fprintf(stderr, "fwrite(%ld bytes) failed\n", (long) olen); in main()
355 if (mbedtls_cipher_finish(&cipher_ctx, output, &olen) != 0) { in main()
359 if (mbedtls_md_hmac_update(&md_ctx, output, olen) != 0) { in main()
364 if (fwrite(output, 1, olen, fout) != olen) { in main()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
H A Dfils_hlp.c59 u8 opt, olen; in fils_dhcp_request() local
66 olen = *pos++; in fils_dhcp_request()
67 if (olen > end - pos) in fils_dhcp_request()
72 if (olen > 0) in fils_dhcp_request()
80 os_memmove(pos, pos + 2 + olen, end - pos - 2 - olen); in fils_dhcp_request()
81 end -= 2 + olen; in fils_dhcp_request()
82 olen = 0; in fils_dhcp_request()
85 pos += olen; in fils_dhcp_request()
98 u8 opt, olen; in fils_dhcp_request() local
202 u8 opt, olen; fils_dhcp_handler() local
360 u8 opt, olen; fils_process_hlp_dhcp() local
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
H A Dfils_hlp.c59 u8 opt, olen; in fils_dhcp_request() local
66 olen = *pos++; in fils_dhcp_request()
67 if (olen > end - pos) in fils_dhcp_request()
72 if (olen > 0) in fils_dhcp_request()
80 os_memmove(pos, pos + 2 + olen, end - pos - 2 - olen); in fils_dhcp_request()
81 end -= 2 + olen; in fils_dhcp_request()
82 olen = 0; in fils_dhcp_request()
85 pos += olen; in fils_dhcp_request()
98 u8 opt, olen; in fils_dhcp_request() local
202 u8 opt, olen; fils_dhcp_handler() local
360 u8 opt, olen; fils_process_hlp_dhcp() local
[all...]
/foundation/communication/dsoftbus/adapter/common/openssl/
H A Dsoftbus_adapter_crypto.c238 int32_t SoftBusBase64Encode(unsigned char *dst, size_t dlen, size_t *olen, const unsigned char *src, size_t slen) in SoftBusBase64Encode() argument
240 if (dst == NULL || dlen == 0 || olen == NULL || src == NULL || slen == 0) { in SoftBusBase64Encode()
243 *olen = 0; in SoftBusBase64Encode()
263 *olen += outlen; in SoftBusBase64Encode()
265 *olen += outlen; in SoftBusBase64Encode()
267 if (*olen > dlen) { in SoftBusBase64Encode()
268 COMM_LOGE(COMM_ADAPTER, "[TRANS] invalid dlen=%{public}zu, olen=%{public}zu.", dlen, *olen); in SoftBusBase64Encode()
274 ret = memcpy_s(dst, dlen, dstTmp, *olen); in SoftBusBase64Encode()
281 if ((*olen > in SoftBusBase64Encode()
291 SoftBusBase64Decode(unsigned char *dst, size_t dlen, size_t *olen, const unsigned char *src, size_t slen) SoftBusBase64Decode() argument
347 uint32_t olen; SoftBusGenerateStrHash() local
[all...]
/third_party/mbedtls/programs/psa/
H A Daead_demo.c210 size_t olen, olen_tag; in aead_encrypt() local
220 PSA_CHECK(psa_aead_update(&op, part1, part1_len, p, end - p, &olen)); in aead_encrypt()
221 p += olen; in aead_encrypt()
222 PSA_CHECK(psa_aead_update(&op, part2, part2_len, p, end - p, &olen)); in aead_encrypt()
223 p += olen; in aead_encrypt()
224 PSA_CHECK(psa_aead_finish(&op, p, end - p, &olen, in aead_encrypt()
226 p += olen; in aead_encrypt()
230 olen = p - out; in aead_encrypt()
231 print_buf("out", out, olen); in aead_encrypt()
/foundation/communication/dhcp/test/unittest/services/dhcp_server/unittest/
H A Ddhcp_message_sim.cpp183 uint8_t *current = msg->packet.options, olen = MAGIC_COOKIE_LENGTH; in ParseDhcpOptions() local
185 if (memcpy_s(current, olen, &cookie, olen) != EOK) { in ParseDhcpOptions()
189 replyOptsLength += olen; in ParseDhcpOptions()
190 current += olen; in ParseDhcpOptions()
194 olen = OPT_HEADER_LENGTH + 1; in ParseDhcpOptions()
196 olen = OPT_HEADER_LENGTH + pNode->option.length; in ParseDhcpOptions()
198 if (memcpy_s(current, olen, &pNode->option, olen) != EOK) { in ParseDhcpOptions()
203 current += olen; in ParseDhcpOptions()
[all...]
/foundation/communication/dsoftbus/tests/adapter/unittest/
H A Ddsoftbus_crypto_test.cpp58 size_t olen = 10; in HWTEST_F() local
59 int32_t ret = SoftBusBase64Encode((unsigned char *)dst, sizeof(dst), &olen, (unsigned char *)src, sizeof(src)); in HWTEST_F()
62 encodeLen = olen; in HWTEST_F()
63 memcpy_s(encodeStr, olen, dst, olen); in HWTEST_F()
76 size_t olen = 10; in HWTEST_F() local
77 int32_t ret = SoftBusBase64Encode(NULL, sizeof(dst), &olen, (unsigned char *)src, sizeof(src)); in HWTEST_F()
83 ret = SoftBusBase64Encode((unsigned char *)dst, sizeof(dst), &olen, NULL, sizeof(src)); in HWTEST_F()
97 size_t olen = 10; in HWTEST_F() local
99 int32_t ret = SoftBusBase64Encode((unsigned char *)dst, dlen, &olen, (unsigne in HWTEST_F()
116 size_t olen = 10; HWTEST_F() local
132 size_t olen = 10; HWTEST_F() local
156 size_t olen = 10; HWTEST_F() local
[all...]
/third_party/node/deps/base64/base64/lib/arch/neon32/
H A Dcodec.c59 enc_loop_neon32(&s, &slen, &o, &olen); in BASE64_ENC_FUNCTION()
60 enc_loop_generic_32(&s, &slen, &o, &olen); in BASE64_ENC_FUNCTION()
71 dec_loop_neon32(&s, &slen, &o, &olen); in BASE64_DEC_FUNCTION()
72 dec_loop_generic_32(&s, &slen, &o, &olen); in BASE64_DEC_FUNCTION()
/third_party/node/deps/base64/base64/lib/arch/neon64/
H A Dcodec.c79 enc_loop_neon64(&s, &slen, &o, &olen); in BASE64_ENC_FUNCTION()
80 enc_loop_generic_64(&s, &slen, &o, &olen); in BASE64_ENC_FUNCTION()
91 dec_loop_neon64(&s, &slen, &o, &olen); in BASE64_DEC_FUNCTION()
92 dec_loop_generic_32(&s, &slen, &o, &olen); in BASE64_DEC_FUNCTION()

Completed in 14 milliseconds

1234567891011