HomeSort by relevance Sort by last modified time
    Searched defs:buf_len (Results 1 - 25 of 99) sorted by null

1 2 3 4

  /external/boringssl/src/crypto/ecdh_extra/
ecdh_extra.c 97 size_t buf_len; local
99 !ec_point_get_affine_coordinate_bytes(group, buf, NULL, &buf_len,
106 if (kdf(buf, buf_len, out, &out_len) == NULL) {
112 if (buf_len < out_len) {
113 out_len = buf_len;
  /external/u-boot/arch/arm/mach-uniphier/
board_late_init.c 39 int buf_len = sizeof(dtb_name); local
54 strncpy(dtb_name, compat, buf_len);
55 buf_len -= strlen(compat);
57 strncat(dtb_name, ".dtb", buf_len);
  /external/compiler-rt/test/sanitizer_common/TestCases/Linux/
open_memstream.cc 30 size_t buf_len; local
31 fprintf(stderr, " &buf %p, &buf_len %p\n", &buf, &buf_len);
32 FILE *fp = open_memstream(&buf, &buf_len);
37 check_mem_is_good(&buf_len, sizeof(buf_len));
38 check_mem_is_good(buf, buf_len);
50 fprintf(stderr, " %p addr %p, len %zu\n", &buf, buf, buf_len);
52 check_mem_is_good(&buf_len, sizeof(buf_len));
    [all...]
  /external/libbrillo/brillo/
userdb_utils.cc 20 ssize_t buf_len = sysconf(_SC_GETPW_R_SIZE_MAX); local
21 if (buf_len < 0)
22 buf_len = 16384; // 16K should be enough?...
25 std::vector<char> buf(buf_len);
26 if (getpwnam_r(user.c_str(), &pwd_buf, buf.data(), buf_len, &pwd) || !pwd) {
39 ssize_t buf_len = sysconf(_SC_GETGR_R_SIZE_MAX); local
40 if (buf_len < 0)
41 buf_len = 16384; // 16K should be enough?...
44 std::vector<char> buf(buf_len);
45 if (getgrnam_r(group.c_str(), &grp_buf, buf.data(), buf_len, &grp) || !grp)
    [all...]
  /external/wpa_supplicant_8/src/crypto/
aes-eax.c 33 size_t buf_len; local
39 buf_len = nonce_len;
41 buf_len = data_len;
42 if (hdr_len > buf_len)
43 buf_len = hdr_len;
44 buf_len += 16;
46 buf = os_malloc(buf_len);
74 bin_clear_free(buf, buf_len);
97 size_t buf_len; local
103 buf_len = nonce_len
    [all...]
sha256-prf.c 24 * @buf_len: Number of bytes of key to generate
31 const u8 *data, size_t data_len, u8 *buf, size_t buf_len)
34 buf_len * 8);
46 * @buf_len: Number of bits of key to generate
50 * given key. If the requested buf_len is not divisible by eight, the least
64 size_t buf_len = (buf_len_bits + 7) / 8; local
77 while (pos < buf_len) {
78 plen = buf_len - pos;
sha384-prf.c 24 * @buf_len: Number of bytes of key to generate
31 const u8 *data, size_t data_len, u8 *buf, size_t buf_len)
34 buf_len * 8);
46 * @buf_len: Number of bits of key to generate
50 * given key. If the requested buf_len is not divisible by eight, the least
64 size_t buf_len = (buf_len_bits + 7) / 8; local
77 while (pos < buf_len) {
78 plen = buf_len - pos;
sha512-prf.c 24 * @buf_len: Number of bytes of key to generate
31 const u8 *data, size_t data_len, u8 *buf, size_t buf_len)
34 buf_len * 8);
46 * @buf_len: Number of bits of key to generate
50 * given key. If the requested buf_len is not divisible by eight, the least
64 size_t buf_len = (buf_len_bits + 7) / 8; local
77 while (pos < buf_len) {
78 plen = buf_len - pos;
  /external/libopus/silk/fixed/
find_pitch_lags_FIX.c 45 opus_int buf_len, i, scale; local
59 buf_len = psEnc->sCmn.la_pitch + psEnc->sCmn.frame_length + psEnc->sCmn.ltp_mem_length;
62 celt_assert( buf_len >= psEnc->sCmn.pitch_LPC_win_length );
73 x_ptr = x + buf_len - psEnc->sCmn.pitch_LPC_win_length;
113 silk_LPC_analysis_filter( res, x, A_Q12, buf_len, psEnc->sCmn.pitchEstimationLPCOrder, psEnc->sCmn.arch );
  /external/libopus/silk/float/
find_pitch_lags_FLP.c 44 opus_int buf_len; local
56 buf_len = psEnc->sCmn.la_pitch + psEnc->sCmn.frame_length + psEnc->sCmn.ltp_mem_length;
59 celt_assert( buf_len >= psEnc->sCmn.pitch_LPC_win_length );
70 x_buf_ptr = x_buf + buf_len - psEnc->sCmn.pitch_LPC_win_length;
105 silk_LPC_analysis_filter_FLP( res, A, x_buf, buf_len, psEnc->sCmn.pitchEstimationLPCOrder );
  /external/pdfium/core/fpdfdoc/
cpdf_filespec_unittest.cpp 199 size_t buf_len = strlen(streams[i]) + 1; local
200 std::unique_ptr<uint8_t, FxFreeDeleter> buf(FX_Alloc(uint8_t, buf_len));
201 memcpy(buf.get(), streams[i], buf_len);
202 file_dict->SetNewFor<CPDF_Stream>(keys[i], std::move(buf), buf_len,
  /external/vboot_reference/futility/
file_type.c 75 uint32_t buf_len; local
95 err = futil_map_file(ifd, MAP_RO, &buf, &buf_len);
101 *type = futil_file_type_buf(buf, buf_len);
103 err = futil_unmap_file(ifd, MAP_RO, buf, buf_len);
  /external/wpa_supplicant_8/src/pae/
ieee802_1x_key.c 41 int lab_len, ctx_len, ret_len, buf_len; local
50 buf_len = lab_len + ctx_len + 4;
58 buf = os_zalloc(buf_len);
64 WPA_PUT_BE16(&buf[buf_len - 2], ret_bits);
71 res = omac1_aes_128(kdk, buf, buf_len, ret);
73 res = omac1_aes_256(kdk, buf, buf_len, ret);
  /device/google/cuttlefish_common/host/commands/kernel_log_monitor/
kernel_log_server.cc 114 const size_t buf_len = 256; local
115 char buf[buf_len];
116 ssize_t ret = client_fd_->Read(buf, buf_len);
  /external/google-breakpad/src/third_party/libdisasm/
x86_disasm.c 16 unsigned int x86_disasm( unsigned char *buf, unsigned int buf_len,
22 if ( ! buf || ! insn || ! buf_len ) {
36 if ( offset >= buf_len ) {
42 len = buf_len - offset;
77 unsigned int buf_len, size, count = 0, bytes = 0; local
79 /* buf_len is implied by the arguments */
80 buf_len = len + offset;
83 size = x86_disasm( buf, buf_len, buf_rva, offset + bytes,
127 unsigned int x86_disasm_forward( unsigned char *buf, unsigned int buf_len,
137 while ( cont && bytes < buf_len ) {
    [all...]
  /external/selinux/libsemanage/src/
parse_utils.c 86 size_t buf_len = 0; local
103 ((len = getline(&buffer, &buf_len, info->file_stream)) > 0)) {
  /external/selinux/policycoreutils/run_init/
run_init.c 303 int buf_len; local
318 buf_len = strlen(buf);
319 if (buf[buf_len - 1] == '\n')
320 buf[buf_len - 1] = 0;
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/
minigzip.c 139 off_t buf_len; /* length of the input file */ local
144 buf_len = sb.st_size;
145 if (buf_len <= 0) return Z_ERRNO;
148 buf = mmap((caddr_t) 0, buf_len, PROT_READ, MAP_SHARED, ifd, (off_t)0);
152 len = gzwrite(out, (char *)buf, (unsigned)buf_len);
154 if (len != (int)buf_len) error(gzerror(out, &err));
156 munmap(buf, buf_len);
  /device/linaro/poplar/wifi/wpa_supplicant_8_lib/
driver_cmd_nl80211.c 61 size_t buf_len )
97 ret = os_snprintf(buf, buf_len,
105 priv_cmd.used_len = buf_len;
106 priv_cmd.total_len = buf_len;
163 int i, buf_len; local
178 buf_len = strlen(_cmd) + 3 + wpabuf_len(ap_wps_p2p_ie);
179 buf = os_zalloc(buf_len);
190 pbuf += snprintf(pbuf, buf_len - wpabuf_len(ap_wps_p2p_ie),
194 ret = wpa_driver_nl80211_driver_cmd(priv, buf, buf, buf_len);
  /external/boringssl/src/decrepit/bio/
base64_bio.c 79 int buf_len; member in struct:b64_struct
138 ctx->buf_len = 0;
145 if (ctx->buf_len > 0) {
146 assert(ctx->buf_len >= ctx->buf_off);
147 i = ctx->buf_len - ctx->buf_off;
157 if (ctx->buf_len == ctx->buf_off) {
158 ctx->buf_len = 0;
282 ctx->buf_len = 0;
284 ctx->buf_len = z;
289 &ctx->buf_len, (uint8_t *)ctx->tmp, i)
    [all...]
  /external/linux-kselftest/tools/testing/selftests/capabilities/
test_execve.c 39 int buf_len; local
41 buf_len = vsnprintf(buf, sizeof(buf), fmt, ap);
42 if (buf_len < 0)
45 if (buf_len >= sizeof(buf))
56 written = write(fd, buf, buf_len);
57 if (written != buf_len) {
  /external/linux-kselftest/tools/testing/selftests/mount/
unprivileged-remount-test.c 62 int buf_len; local
64 buf_len = vsnprintf(buf, sizeof(buf), fmt, ap);
65 if (buf_len < 0) {
69 if (buf_len >= sizeof(buf)) {
80 written = write(fd, buf, buf_len);
81 if (written != buf_len) {
  /external/openssh/
hmac.c 33 size_t buf_len; member in struct:ssh_hmac_ctx
54 ret->buf_len = ssh_digest_blocksize(ret->ictx);
55 if ((ret->buf = calloc(1, ret->buf_len)) == NULL)
71 if (klen <= ctx->buf_len)
74 ctx->buf_len) < 0)
76 for (i = 0; i < ctx->buf_len; i++)
78 if (ssh_digest_update(ctx->ictx, ctx->buf, ctx->buf_len) < 0)
80 for (i = 0; i < ctx->buf_len; i++)
82 if (ssh_digest_update(ctx->octx, ctx->buf, ctx->buf_len) < 0)
84 explicit_bzero(ctx->buf, ctx->buf_len);
    [all...]
  /external/pdfium/core/fpdfapi/edit/
cpdf_pagecontentgenerator_unittest.cpp 317 size_t buf_len = FX_ArraySize(content); local
318 std::unique_ptr<uint8_t, FxFreeDeleter> buf(FX_Alloc(uint8_t, buf_len));
319 memcpy(buf.get(), content, buf_len);
320 auto pStream = pdfium::MakeUnique<CPDF_Stream>(std::move(buf), buf_len,
  /external/pdfium/core/fpdfapi/font/
cpdf_tounicodemap.cpp 26 uint32_t buf_len = m_MultiCharBuf.GetLength(); local
27 if (!buf || buf_len == 0) {
31 if (index >= buf_len) {
35 if (index + len < index || index + len >= buf_len) {

Completed in 729 milliseconds

1 2 3 4