/third_party/curl/lib/ |
H A D | escape.c | 108 * *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...] |
/kernel/linux/linux-6.6/tools/testing/selftests/net/mptcp/ |
H A D | mptcp_sockopt.c | 279 socklen_t olen, _olen; in do_getsockopt_bogus_sf_data() local 285 olen = sizeof(good_data); in do_getsockopt_bogus_sf_data() 286 good_data.size_subflow_data = olen; in do_getsockopt_bogus_sf_data() 288 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 290 assert(olen == sizeof(good_data)); in do_getsockopt_bogus_sf_data() 294 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 296 assert(olen == sizeof(good_data)); in do_getsockopt_bogus_sf_data() 302 _olen = rand() % olen; in do_getsockopt_bogus_sf_data() 303 olen = _olen; in do_getsockopt_bogus_sf_data() 304 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 352 socklen_t olen; do_getsockopt_mptcp_info() local 379 socklen_t olen; do_getsockopt_tcp_info() local 428 socklen_t olen, rlen, llen; do_getsockopt_subflow_addrs() local 500 socklen_t olen; do_getsockopt_mptcp_full_info() local [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_tunnel.c | 79 int olen, l2_len; in encap_ipv4() local 132 olen = sizeof(h_outer.ip); in encap_ipv4() 152 olen += sizeof(h_outer.l4hdr.gre); in encap_ipv4() 158 olen += sizeof(h_outer.l4hdr.udp); in encap_ipv4() 176 *((__u32 *)((__u8 *)&h_outer + olen)) = mpls_label; in encap_ipv4() 179 if (bpf_skb_load_bytes(skb, 0, (__u8 *)&h_outer + olen, in encap_ipv4() 184 olen += l2_len; in encap_ipv4() 187 if (bpf_skb_adjust_room(skb, olen, BPF_ADJ_ROOM_MAC, flags)) in encap_ipv4() 192 h_outer.ip.tot_len = bpf_htons(olen + in encap_ipv4() 199 if (bpf_skb_store_bytes(skb, ETH_HLEN, &h_outer, olen, in encap_ipv4() 224 int olen, l2_len; encap_ipv6() local 452 int olen = len; decap_internal() local [all...] |
/third_party/mbedtls/3rdparty/everest/library/ |
H A D | x25519.c | 59 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 D | everest.c | 48 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()
|
/kernel/linux/linux-5.10/net/ceph/ |
H A D | armor.c | 39 int olen = 0; in ceph_armor() local 64 olen += 4; in ceph_armor() 69 olen++; in ceph_armor() 72 return olen; in ceph_armor() 77 int olen = 0; in ceph_unarmor() local 97 return olen + 1; in ceph_unarmor() 100 return olen + 2; in ceph_unarmor() 102 olen += 3; in ceph_unarmor() 105 return olen; in ceph_unarmor()
|
/kernel/linux/linux-6.6/net/ceph/ |
H A D | armor.c | 39 int olen = 0; in ceph_armor() local 64 olen += 4; in ceph_armor() 69 olen++; in ceph_armor() 72 return olen; in ceph_armor() 77 int olen = 0; in ceph_unarmor() local 97 return olen + 1; in ceph_unarmor() 100 return olen + 2; in ceph_unarmor() 102 olen += 3; in ceph_unarmor() 105 return olen; in ceph_unarmor()
|
/kernel/linux/linux-5.10/arch/x86/boot/compressed/ |
H A D | mkpiggy.c | 21 uint32_t olen; in main() local 44 if (fread(&olen, sizeof(olen), 1, f) != 1) { in main() 50 olen = get_unaligned_le32(&olen); in main() 56 printf("z_output_len = %lu\n", (unsigned long)olen); in main() 67 printf("output_len:\n\t.long %lu\n", (unsigned long)olen); in main()
|
/kernel/linux/linux-6.6/arch/x86/boot/compressed/ |
H A D | mkpiggy.c | 21 uint32_t olen; in main() local 44 if (fread(&olen, sizeof(olen), 1, f) != 1) { in main() 50 olen = get_unaligned_le32(&olen); in main() 56 printf("z_output_len = %lu\n", (unsigned long)olen); in main() 67 printf("output_len:\n\t.long %lu\n", (unsigned long)olen); in main()
|
/kernel/linux/linux-5.10/lib/842/ |
H A D | 842_decompress.c | 56 u64 olen; member 136 if (n > p->olen) in do_data() 158 p->olen -= n; in do_data() 207 p->olen -= size; in __do_index() 266 * to the output buffer @out, using no more than @olen bytes. 273 * Returns: 0 on success, error on failure. The @olen parameter 278 u8 *out, unsigned int *olen) in sw842_decompress() 290 p.olen = *olen; in sw842_decompress() 292 total = p.olen; in sw842_decompress() 277 sw842_decompress(const u8 *in, unsigned int ilen, u8 *out, unsigned int *olen) sw842_decompress() argument [all...] |
/kernel/linux/linux-6.6/lib/842/ |
H A D | 842_decompress.c | 56 u64 olen; member 136 if (n > p->olen) in do_data() 158 p->olen -= n; in do_data() 207 p->olen -= size; in __do_index() 266 * to the output buffer @out, using no more than @olen bytes. 273 * Returns: 0 on success, error on failure. The @olen parameter 278 u8 *out, unsigned int *olen) in sw842_decompress() 290 p.olen = *olen; in sw842_decompress() 292 total = p.olen; in sw842_decompress() 277 sw842_decompress(const u8 *in, unsigned int ilen, u8 *out, unsigned int *olen) sw842_decompress() argument [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_tunnel.c | 98 int olen, l2_len; in __encap_ipv4() local 152 olen = sizeof(h_outer.ip); in __encap_ipv4() 176 olen += sizeof(h_outer.l4hdr.gre); in __encap_ipv4() 182 olen += sizeof(h_outer.l4hdr.udp); in __encap_ipv4() 198 l2_hdr = (__u8 *)&h_outer + olen; in __encap_ipv4() 220 olen += l2_len; in __encap_ipv4() 223 if (bpf_skb_adjust_room(skb, olen, BPF_ADJ_ROOM_MAC, flags)) in __encap_ipv4() 228 h_outer.ip.tot_len = bpf_htons(olen + in __encap_ipv4() 235 if (bpf_skb_store_bytes(skb, ETH_HLEN, &h_outer, olen, in __encap_ipv4() 266 int olen, l2_le in __encap_ipv6() local 377 int olen; encap_ipv6_ipip6() local 603 int olen = len; decap_internal() local [all...] |
/third_party/mbedtls/library/ |
H A D | entropy_poll.c | 44 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 D | ecdh.c | 274 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 D | cipher.c | 580 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...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/ |
H A D | base64.c | 28 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 D | base64.c | 31 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 D | uudecode.c | 54 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 D | tls1_prf.c | 77 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 D | tls1_prf.c | 77 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 D | unit1655.c | 104 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 D | cipher_aead_demo.c | 195 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 D | crypt_and_hash.c | 64 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 D | fils_hlp.c | 59 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 D | fils_hlp.c | 59 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...] |