/external/google-breakpad/src/third_party/libdisasm/ |
D | x86_disasm.c | 16 unsigned int x86_disasm( unsigned char *buf, unsigned int buf_len, in x86_disasm() argument 22 if ( ! buf || ! insn || ! buf_len ) { in x86_disasm() 36 if ( offset >= buf_len ) { in x86_disasm() 42 len = buf_len - offset; in x86_disasm() 77 unsigned int buf_len, size, count = 0, bytes = 0; in x86_disasm_range() local 80 buf_len = len + offset; in x86_disasm_range() 83 size = x86_disasm( buf, buf_len, buf_rva, offset + bytes, in x86_disasm_range() 127 unsigned int x86_disasm_forward( unsigned char *buf, unsigned int buf_len, in x86_disasm_forward() argument 137 while ( cont && bytes < buf_len ) { in x86_disasm_forward() 138 size = x86_disasm( buf, buf_len, buf_rva, offset + bytes, in x86_disasm_forward() [all …]
|
D | ia32_modrm.c | 69 static unsigned int imm32_signsized( unsigned char *buf, size_t buf_len, in imm32_signsized() argument 71 if ( size > buf_len ) { in imm32_signsized() 102 static size_t sib_decode( unsigned char *buf, size_t buf_len, x86_ea_t *ea, in sib_decode() argument 112 if ( buf_len < 1 ) { in sib_decode() 122 imm32_signsized( &buf[1], buf_len, &ea->disp, sizeof(int32_t)); in sib_decode() 143 static size_t modrm_decode16( unsigned char *buf, unsigned int buf_len, in modrm_decode16() argument 187 --buf_len; in modrm_decode16() 190 imm32_signsized( buf, buf_len, &ea->disp, sizeof(char) ); in modrm_decode16() 195 imm32_signsized( buf, buf_len, &ea->disp, sizeof(short) ); in modrm_decode16() 208 size_t ia32_modrm_decode( unsigned char *buf, unsigned int buf_len, in ia32_modrm_decode() argument [all …]
|
D | ia32_operand.c | 38 static size_t decode_operand_value( unsigned char *buf, size_t buf_len, in decode_operand_value() argument 68 size = ia32_modrm_decode( buf, buf_len, op, insn, in decode_operand_value() 72 size = ia32_modrm_decode( buf, buf_len, op, insn, in decode_operand_value() 76 size = ia32_modrm_decode( buf, buf_len, op, insn, in decode_operand_value() 80 size = ia32_modrm_decode( buf, buf_len, op, insn, in decode_operand_value() 84 size = ia32_modrm_decode( buf, buf_len, op, insn, in decode_operand_value() 116 x86_imm_sized( buf, buf_len, in decode_operand_value() 119 x86_imm_sized( buf, buf_len, in decode_operand_value() 123 x86_imm_sized( buf, buf_len, in decode_operand_value() 134 x86_imm_signsized(buf, buf_len, &op->data.byte, in decode_operand_value() [all …]
|
D | ia32_insn.c | 261 static size_t ia32_decode_insn( unsigned char *buf, size_t buf_len, in ia32_decode_insn() argument 295 modrm = GET_BYTE( buf, buf_len ); in ia32_decode_insn() 306 op_size = ia32_decode_operand( buf, buf_len, insn, raw_insn->dest, in ia32_decode_insn() 310 buf_len -= op_size; in ia32_decode_insn() 313 op_size = ia32_decode_operand( buf, buf_len, insn, raw_insn->src, in ia32_decode_insn() 316 buf_len -= op_size; in ia32_decode_insn() 319 op_size = ia32_decode_operand( buf, buf_len, insn, raw_insn->aux, in ia32_decode_insn() 373 size_t ia32_table_lookup( unsigned char *buf, size_t buf_len, in ia32_table_lookup() argument 383 op = GET_BYTE( buf, buf_len ); in ia32_table_lookup() 445 next_len = buf_len; in ia32_table_lookup() [all …]
|
D | x86_imm.c | 6 unsigned int x86_imm_signsized( unsigned char * buf, size_t buf_len, in x86_imm_signsized() argument 13 if ( size > buf_len ) { in x86_imm_signsized() 38 unsigned int x86_imm_sized( unsigned char * buf, size_t buf_len, void *dest, in x86_imm_sized() argument 45 if ( size > buf_len ) { in x86_imm_sized()
|
D | ia32_invariant.c | 11 extern size_t ia32_table_lookup( unsigned char *buf, size_t buf_len, 140 static int ia32_decode_invariant( unsigned char *buf, size_t buf_len, argument 279 size_t ia32_disasm_invariant( unsigned char * buf, size_t buf_len, argument 287 size = ia32_table_lookup( buf, buf_len, 0, &raw_insn, &prefixes ); 288 if ( size == INVALID_INSN || size > buf_len ) { 302 size += ia32_decode_invariant( buf + size, buf_len - size, raw_insn, 310 size_t ia32_disasm_size( unsigned char *buf, size_t buf_len ) { argument 312 return( ia32_disasm_invariant( buf, buf_len, &inv ) );
|
/external/wpa_supplicant_8/src/crypto/ |
D | aes-eax.c | 33 size_t buf_len; in aes_128_eax_encrypt() local 39 buf_len = nonce_len; in aes_128_eax_encrypt() 41 buf_len = data_len; in aes_128_eax_encrypt() 42 if (hdr_len > buf_len) in aes_128_eax_encrypt() 43 buf_len = hdr_len; in aes_128_eax_encrypt() 44 buf_len += 16; in aes_128_eax_encrypt() 46 buf = os_malloc(buf_len); in aes_128_eax_encrypt() 74 bin_clear_free(buf, buf_len); in aes_128_eax_encrypt() 97 size_t buf_len; in aes_128_eax_decrypt() local 103 buf_len = nonce_len; in aes_128_eax_decrypt() [all …]
|
D | sha1-tprf.c | 30 const u8 *seed, size_t seed_len, u8 *buf, size_t buf_len) in sha1_t_prf() argument 51 output_len[0] = (buf_len >> 8) & 0xff; in sha1_t_prf() 52 output_len[1] = buf_len & 0xff; in sha1_t_prf() 54 while (pos < buf_len) { in sha1_t_prf() 56 plen = buf_len - pos; in sha1_t_prf()
|
D | sha256-prf.c | 30 const u8 *data, size_t data_len, u8 *buf, size_t buf_len) in sha256_prf() argument 32 sha256_prf_bits(key, key_len, label, data, data_len, buf, buf_len * 8); in sha256_prf() 61 size_t buf_len = (buf_len_bits + 7) / 8; in sha256_prf_bits() local 74 while (pos < buf_len) { in sha256_prf_bits() 75 plen = buf_len - pos; in sha256_prf_bits()
|
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
D | open_memstream.cc | 30 size_t buf_len; in run() local 31 fprintf(stderr, " &buf %p, &buf_len %p\n", &buf, &buf_len); in run() 32 FILE *fp = open_memstream(&buf, &buf_len); in run() 36 check_mem_is_good(&buf_len, sizeof(buf_len)); in run() 37 check_mem_is_good(buf, buf_len); in run() 46 fprintf(stderr, " %p addr %p, len %zu\n", &buf, buf, buf_len); in run() 48 check_mem_is_good(&buf_len, sizeof(buf_len)); in run() 49 check_mem_is_good(buf, buf_len); in run()
|
/external/libunwind/src/mi/ |
D | Gget_proc_name.c | 31 unw_word_t addr, char *buf, size_t buf_len, void *arg) in intern_string() argument 36 for (i = 0; i < buf_len; ++i) in intern_string() 44 buf[buf_len - 1] = '\0'; /* ensure string is NUL terminated */ in intern_string() 50 char *buf, size_t buf_len, unw_word_t *offp, void *arg) in get_proc_name() argument 69 ret = intern_string (as, a, di->u.pi.name_ptr, buf, buf_len, arg); in get_proc_name() 93 return (*a->get_proc_name) (as, ip, buf, buf_len, offp, arg); in get_proc_name() 99 unw_get_proc_name (unw_cursor_t *cursor, char *buf, size_t buf_len, in unw_get_proc_name() argument 104 return get_proc_name (tdep_get_as (c), tdep_get_ip (c), buf, buf_len, offp, in unw_get_proc_name() 111 size_t buf_len, unw_word_t *offp, void *as_arg) in unw_get_proc_name_by_ip() argument 113 return get_proc_name (as, ip, buf, buf_len, offp, as_arg); in unw_get_proc_name_by_ip()
|
/external/openssh/ |
D | hmac.c | 33 size_t buf_len; member 54 ret->buf_len = ssh_digest_blocksize(ret->ictx); in ssh_hmac_start() 55 if ((ret->buf = calloc(1, ret->buf_len)) == NULL) in ssh_hmac_start() 71 if (klen <= ctx->buf_len) in ssh_hmac_init() 74 ctx->buf_len) < 0) in ssh_hmac_init() 76 for (i = 0; i < ctx->buf_len; i++) in ssh_hmac_init() 78 if (ssh_digest_update(ctx->ictx, ctx->buf, ctx->buf_len) < 0) in ssh_hmac_init() 80 for (i = 0; i < ctx->buf_len; i++) in ssh_hmac_init() 82 if (ssh_digest_update(ctx->octx, ctx->buf, ctx->buf_len) < 0) in ssh_hmac_init() 84 explicit_bzero(ctx->buf, ctx->buf_len); in ssh_hmac_init() [all …]
|
/external/boringssl/src/crypto/bytestring/ |
D | bytestring_test.cc | 268 size_t buf_len; in TestCBBBasic() local 283 !CBB_finish(&cbb, &buf, &buf_len)) { in TestCBBBasic() 289 return buf_len == sizeof(kExpected) && memcmp(buf, kExpected, buf_len) == 0; in TestCBBBasic() 341 size_t buf_len; in TestCBBPrefixed() local 359 !CBB_finish(&cbb, &buf, &buf_len)) { in TestCBBPrefixed() 365 return buf_len == sizeof(kExpected) && memcmp(buf, kExpected, buf_len) == 0; in TestCBBPrefixed() 371 size_t buf_len; in TestCBBMisuse() local 397 if (!CBB_finish(&cbb, &buf, &buf_len)) { in TestCBBMisuse() 403 if (buf_len != 3 || in TestCBBMisuse() 413 size_t buf_len; in TestCBBASN1() local [all …]
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | eap_fast_pac.c | 186 size_t buf_len; member 195 if (fgets(rc->buf, rc->buf_len, rc->f) == NULL) in eap_fast_read_line() 206 if (len >= rc->buf_len) in eap_fast_read_line() 207 len = rc->buf_len - 1; in eap_fast_read_line() 213 rc->buf[rc->buf_len - 1] = '\0'; in eap_fast_read_line() 259 rc->buf_len = 2048; in eap_fast_init_pac_data() 260 rc->buf = os_malloc(rc->buf_len); in eap_fast_init_pac_data() 477 static void eap_fast_write(char **buf, char **pos, size_t *buf_len, in eap_fast_write() argument 493 if (*pos - *buf + need > *buf_len) { in eap_fast_write() 494 char *nbuf = os_realloc(*buf, *buf_len + need); in eap_fast_write() [all …]
|
/external/libunwind/src/coredump/ |
D | _UCD_get_proc_name.c | 34 char *buf, size_t buf_len, unw_word_t *offp) in elf_w() 52 ret = elf_w (get_proc_name_in_image) (as, &ui->edi.ei, segbase, mapoff, ip, buf, buf_len, offp); in elf_w() 59 char *buf, size_t buf_len, unw_word_t *offp, void *arg) in _UCD_get_proc_name() argument 64 return _Uelf64_CD_get_proc_name (ui, as, ip, buf, buf_len, offp); in _UCD_get_proc_name() 66 return _Uelf32_CD_get_proc_name (ui, as, ip, buf, buf_len, offp); in _UCD_get_proc_name()
|
/external/boringssl/src/crypto/ec/ |
D | ec_asn1.c | 386 size_t buf_len = 0, tmp_len; in i2d_ECPrivateKey() local 402 buf_len = BN_num_bytes(&key->group->order); in i2d_ECPrivateKey() 403 buffer = OPENSSL_malloc(buf_len); in i2d_ECPrivateKey() 409 if (!BN_bn2bin_padded(buffer, buf_len, key->priv_key)) { in i2d_ECPrivateKey() 414 if (!M_ASN1_OCTET_STRING_set(priv_key->privateKey, buffer, buf_len)) { in i2d_ECPrivateKey() 439 if (tmp_len > buf_len) { in i2d_ECPrivateKey() 446 buf_len = tmp_len; in i2d_ECPrivateKey() 450 buf_len, NULL)) { in i2d_ECPrivateKey() 457 if (!M_ASN1_BIT_STRING_set(priv_key->publicKey, buffer, buf_len)) { in i2d_ECPrivateKey() 540 size_t buf_len = 0; in i2o_ECPublicKey() local [all …]
|
/external/selinux/policycoreutils/sestatus/ |
D | sestatus.c | 93 int buf_len, section = -1; in load_checks() local 106 buf_len = strlen(buf); in load_checks() 107 if (buf[buf_len - 1] == '\n') in load_checks() 108 buf[buf_len - 1] = 0; in load_checks() 113 buf_len--; in load_checks() 134 (char *)malloc((buf_len) * in load_checks() 136 memcpy(pc[*npc], bufp, buf_len); in load_checks() 144 (char *)malloc((buf_len) * in load_checks() 146 memcpy(fc[*nfc], bufp, buf_len); in load_checks()
|
/external/libunwind/src/ |
D | elfxx.c | 158 char* buf, size_t buf_len, unw_word_t* offp, Elf_W(Ehdr)* ehdr) { in elf_w() 219 (uint8_t*) buf, buf_len, true); in elf_w() 227 buf[buf_len] = '\0'; in elf_w() 311 char* buf, size_t buf_len, unw_word_t* offp) { in elf_w() 358 if (buf_len > max_size) { in elf_w() 359 buf_len = max_size; in elf_w() 362 strncpy (buf, str_name, buf_len); in elf_w() 365 buf[buf_len] = '\0'; in elf_w() 408 char *buf, size_t buf_len, unw_word_t* offp, Elf_W(Ehdr)* ehdr) { in elf_w() 412 if (buf_len <= 1) { in elf_w() [all …]
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_peap_common.c | 17 u8 *buf, size_t buf_len) in peap_prfplus() argument 60 extra[0] = buf_len & 0xff; in peap_prfplus() 69 while (pos < buf_len) { in peap_prfplus() 71 plen = buf_len - pos; in peap_prfplus()
|
/external/google-breakpad/src/third_party/libdisasm/swig/ |
D | libdisasm.i | 92 (unsigned char *buf, size_t buf_len) 429 x86_insn_t * disasm( unsigned char *buf, size_t buf_len, in disasm() argument 432 x86_disasm( buf, buf_len, buf_rva, offset, insn ); in disasm() 436 int disasm_range( unsigned char *buf, size_t buf_len, in disasm_range() argument 442 if ( len > buf_len ) { in disasm_range() 443 len = buf_len; in disasm_range() 450 int disasm_forward( unsigned char *buf, size_t buf_len, in disasm_forward() argument 455 return x86_disasm_forward( buf, buf_len, buf_rva, offset, in disasm_forward() 460 size_t disasm_invariant( unsigned char *buf, size_t buf_len, in disasm_invariant() argument 462 return x86_invariant_disasm( buf, buf_len, inv ); in disasm_invariant() [all …]
|
/external/libopus/silk/float/ |
D | find_pitch_lags_FLP.c | 44 opus_int buf_len; in silk_find_pitch_lags_FLP() local 56 buf_len = psEnc->sCmn.la_pitch + psEnc->sCmn.frame_length + psEnc->sCmn.ltp_mem_length; in silk_find_pitch_lags_FLP() 59 silk_assert( buf_len >= psEnc->sCmn.pitch_LPC_win_length ); in silk_find_pitch_lags_FLP() 70 x_buf_ptr = x_buf + buf_len - psEnc->sCmn.pitch_LPC_win_length; in silk_find_pitch_lags_FLP() 105 silk_LPC_analysis_filter_FLP( res, A, x_buf, buf_len, psEnc->sCmn.pitchEstimationLPCOrder ); in silk_find_pitch_lags_FLP()
|
/external/libunwind/src/ptrace/ |
D | _UPT_get_proc_name.c | 31 char *buf, size_t buf_len, unw_word_t *offp, void *arg) in _UPT_get_proc_name() argument 36 return _Uelf64_get_proc_name (as, ui->pid, ip, buf, buf_len, offp, arg); in _UPT_get_proc_name() 38 return _Uelf32_get_proc_name (as, ui->pid, ip, buf, buf_len, offp, arg); in _UPT_get_proc_name()
|
/external/vboot_reference/futility/ |
D | file_type.c | 75 uint32_t buf_len; in futil_file_type() local 95 err = futil_map_file(ifd, MAP_RO, &buf, &buf_len); in futil_file_type() 101 *type = futil_file_type_buf(buf, buf_len); in futil_file_type() 103 err = futil_unmap_file(ifd, MAP_RO, buf, buf_len); in futil_file_type()
|
/external/boringssl/src/crypto/rsa/ |
D | rsa_test.c | 276 unsigned buf_len = sizeof(buf); in test_only_d_given() local 299 if (!RSA_sign(NID_sha256, kDummyHash, sizeof(kDummyHash), buf, &buf_len, in test_only_d_given() 306 if (!RSA_verify(NID_sha256, kDummyHash, sizeof(kDummyHash), buf, buf_len, in test_only_d_given() 324 unsigned buf_len = sizeof(buf); in test_recover_crt_params() local 358 if (RSA_size(key2) > buf_len) { in test_recover_crt_params() 368 if (!RSA_sign(NID_sha256, kDummyHash, sizeof(kDummyHash), buf, &buf_len, in test_recover_crt_params() 375 if (!RSA_verify(NID_sha256, kDummyHash, sizeof(kDummyHash), buf, buf_len, in test_recover_crt_params()
|
/external/wpa_supplicant_8/src/pae/ |
D | ieee802_1x_key.c | 40 int lab_len, ctx_len, ret_len, buf_len; in aes_kdf_128() local 46 buf_len = lab_len + ctx_len + 4; in aes_kdf_128() 54 buf = os_zalloc(buf_len); in aes_kdf_128() 60 WPA_PUT_BE16(&buf[buf_len - 2], ret_bits); in aes_kdf_128() 64 if (omac1_aes_128(kdk, buf, buf_len, ret)) { in aes_kdf_128()
|