Home
last modified time | relevance | path

Searched refs:len2 (Results 1 – 25 of 92) sorted by relevance

1234

/external/dropbear/libtomcrypt/demos/
Dmulti.c7 unsigned long len, len2; in main() local
17 len2 = sizeof(buf[0]); in main()
18 hash_memory_multi(find_hash("sha256"), buf[1], &len2, (unsigned char*)"hello", 5, NULL); in main()
19 if (len != len2 || memcmp(buf[0], buf[1], len)) { in main()
20 printf("Failed: %d %lu %lu\n", __LINE__, len, len2); in main()
23 len2 = sizeof(buf[0]); in main()
24 …hash_memory_multi(find_hash("sha256"), buf[1], &len2, (unsigned char*)"he", 2UL, "llo", 3UL, NULL,… in main()
25 if (len != len2 || memcmp(buf[0], buf[1], len)) { in main()
26 printf("Failed: %d %lu %lu\n", __LINE__, len, len2); in main()
29 len2 = sizeof(buf[0]); in main()
[all …]
/external/dropbear/libtomcrypt/testprof/
Dkatja_test.c10 unsigned long kat_msgsize, len, len2, cnt; in katja_test() local
67 len2 = kat_msgsize; in katja_test()
72 DO(katja_decrypt_key(out, len, tmp, &len2, NULL, 0, hash_idx, &stat2, &key)); in katja_test()
75 if (len2 != kat_msgsize) { in katja_test()
76 fprintf(stderr, "\nkatja_decrypt_key mismatch len %lu (first decrypt)", len2); in katja_test()
80 len2 = kat_msgsize; in katja_test()
81 DO(katja_decrypt_key(out, len, tmp, &len2, NULL, 0, hash_idx, &stat, &key)); in katja_test()
86 if (len2 != kat_msgsize || memcmp(tmp, in, kat_msgsize)) { in katja_test()
88 fprintf(stderr, "\nkatja_decrypt_key mismatch, len %lu (second decrypt)\n", len2); in katja_test()
113 len2 = kat_msgsize; in katja_test()
[all …]
Drsa_test.c130 unsigned long rsa_msgsize, len, len2, cnt; in rsa_test() local
190 len2 = rsa_msgsize; in rsa_test()
195 DO(rsa_decrypt_key(out, len, tmp, &len2, NULL, 0, hash_idx, &stat2, &key)); in rsa_test()
198 if (len2 != rsa_msgsize) { in rsa_test()
199 fprintf(stderr, "\nrsa_decrypt_key mismatch len %lu (first decrypt)", len2); in rsa_test()
203 len2 = rsa_msgsize; in rsa_test()
204 DO(rsa_decrypt_key(out, len, tmp, &len2, NULL, 0, hash_idx, &stat, &key)); in rsa_test()
209 if (len2 != rsa_msgsize || memcmp(tmp, in, rsa_msgsize)) { in rsa_test()
211 fprintf(stderr, "\nrsa_decrypt_key mismatch, len %lu (second decrypt)\n", len2); in rsa_test()
236 len2 = rsa_msgsize; in rsa_test()
[all …]
/external/v8/test/cctest/
Dtest-liveedit.cc68 len1(len1_param), len2(len2_param), next(NULL) {} in DiffChunkStruct()
72 int len2; member in __anon40e1874f0111::DiffChunkStruct
83 void AddChunk(int pos1, int pos2, int len1, int len2) { in AddChunk() argument
84 current_chunk_ = new DiffChunkStruct(pos1, pos2, len1, len2); in AddChunk()
106 int len2 = StrLength(s2); in CompareStringsOneWay() local
124 ASSERT(pos2 + j < len2); in CompareStringsOneWay()
127 diff_parameter += chunk->len1 + chunk->len2; in CompareStringsOneWay()
129 pos2 = diff_pos2 + chunk->len2; in CompareStringsOneWay()
134 ASSERT_EQ(similar_part_length, len2 - pos2); in CompareStringsOneWay()
135 USE(len2); in CompareStringsOneWay()
[all …]
/external/zlib/src/
Dadler32.c12 local uLong adler32_combine_ OF((uLong adler1, uLong adler2, z_off64_t len2));
136 local uLong adler32_combine_(adler1, adler2, len2) in adler32_combine_() argument
139 z_off64_t len2;
146 if (len2 < 0)
150 MOD63(len2); /* assumes len2 >= 0 */
151 rem = (unsigned)len2;
165 uLong ZEXPORT adler32_combine(adler1, adler2, len2) in adler32_combine() argument
168 z_off_t len2;
170 return adler32_combine_(adler1, adler2, len2);
173 uLong ZEXPORT adler32_combine64(adler1, adler2, len2) in adler32_combine64() argument
[all …]
Dcrc32.c53 local uLong crc32_combine_ OF((uLong crc1, uLong crc2, z_off64_t len2));
355 local uLong crc32_combine_(crc1, crc2, len2) in crc32_combine_() argument
358 z_off64_t len2;
366 if (len2 <= 0)
388 if (len2 & 1)
390 len2 >>= 1;
393 if (len2 == 0)
398 if (len2 & 1)
400 len2 >>= 1;
403 } while (len2 != 0);
[all …]
/external/valgrind/main/VEX/priv/
Dmain_util.c328 Int fwidth, nout, len1, len2, len3; in vprintf_wrk() local
378 len2 = vex_strlen(str); in vprintf_wrk()
379 if (fwidth > len2) { len1 = ljustify ? 0 : fwidth-len2; in vprintf_wrk()
380 len3 = ljustify ? fwidth-len2 : 0; } in vprintf_wrk()
390 len2 = vex_strlen(str); in vprintf_wrk()
391 if (fwidth > len2) { len1 = ljustify ? 0 : fwidth-len2; in vprintf_wrk()
392 len3 = ljustify ? fwidth-len2 : 0; } in vprintf_wrk()
406 len2 = vex_strlen(intbuf); in vprintf_wrk()
407 if (fwidth > len2) { len1 = ljustify ? 0 : fwidth-len2; in vprintf_wrk()
408 len3 = ljustify ? fwidth-len2 : 0; } in vprintf_wrk()
[all …]
/external/v8/test/mjsunit/regress/
Dregress-666721.js30 function len2(a) { return a.length; } function
43 assertEquals(0, len2({length:0}));
44 assertEquals(1, len2([1]));
45 assertEquals(2, len2({length:2}));
46 assertEquals(3, len2([1,2,3]));
47 assertEquals(4, len2('1234'));
/external/linux-tools-perf/util/
Dlevenshtein.c44 int len1 = strlen(string1), len2 = strlen(string2); in levenshtein() local
45 int *row0 = malloc(sizeof(int) * (len2 + 1)); in levenshtein()
46 int *row1 = malloc(sizeof(int) * (len2 + 1)); in levenshtein()
47 int *row2 = malloc(sizeof(int) * (len2 + 1)); in levenshtein()
50 for (j = 0; j <= len2; j++) in levenshtein()
56 for (j = 0; j < len2; j++) { in levenshtein()
78 i = row1[len2]; in levenshtein()
/external/qemu/
Dcbuffer.c83 int len2 = len; in cbuffer_write() local
87 while (len2 > 0) { in cbuffer_write()
104 if (avail > len2) in cbuffer_write()
105 avail = len2; in cbuffer_write()
110 len2 -= avail; in cbuffer_write()
113 return len - len2; in cbuffer_write()
119 int len2 = len; in cbuffer_read() local
123 while (len2 > 0) { in cbuffer_read()
137 if (avail > len2) in cbuffer_read()
138 avail = len2; in cbuffer_read()
[all …]
Dtcpdump.c123 int len2 = len; in qemu_tcpdump_packet() local
125 if (len2 > PCAP_SNAPLEN) in qemu_tcpdump_packet()
126 len2 = PCAP_SNAPLEN; in qemu_tcpdump_packet()
131 h.incl_len = (uint32_t) len2; in qemu_tcpdump_packet()
135 fwrite( base, 1, len2, capture_file ); in qemu_tcpdump_packet()
138 capture_size += len2; in qemu_tcpdump_packet()
Dcharpipe.c138 int len2 = cbuffer_write( bip->cb, buf, len ); in charpipehalf_write() local
140 buf += len2; in charpipehalf_write()
141 ret += len2; in charpipehalf_write()
142 len -= len2; in charpipehalf_write()
328 int len2 = cbuffer_write( bip->cb, buf, len ); in charbuffer_write() local
330 buf += len2; in charbuffer_write()
331 ret += len2; in charbuffer_write()
332 len -= len2; in charbuffer_write()
/external/compiler-rt/lib/tsan/unit_tests/
Dtsan_platform_test.cc67 uptr len2 = internal_strlen(str2); in TEST() local
72 EXPECT_EQ(len2, internal_write(fd, str2, len2)); in TEST()
77 EXPECT_EQ(len1 + len2, internal_filesize(fd)); in TEST()
83 EXPECT_EQ(len2, internal_read(fd, buf, len2)); in TEST()
84 EXPECT_EQ(0, internal_memcmp(buf, str2, len2)); in TEST()
/external/valgrind/main/none/tests/s390x/
Dclcl.c13 uint32_t len2; member
63 result.len2 = regs.r2p1 & 0xFFFFFF; in result_from_regs()
74 void *addr2, uint32_t len2, uint32_t pad) in clcl() argument
83 assert((len2 & 0xFFFFFF) == len2); in clcl()
89 r2p1 = len2 | (pad << 24); in clcl()
130 if (result1.len2 != result2.len2) in clcl()
141 run_test(void *addr1, uint32_t len1, void *addr2, uint32_t len2, uint32_t pad) in run_test() argument
145 result = clcl(addr1, len1, addr2, len2, pad); in run_test()
149 result.len1, result.len2, (int64_t)result.addr1 - (int64_t)addr1, in run_test()
Dmvcl.c13 uint32_t len2; member
64 result.len2 = regs.r2p1 & 0xFFFFFF; in result_from_regs()
75 void *addr2, uint32_t len2, uint32_t pad) in mvcl() argument
84 assert((len2 & 0xFFFFFF) == len2); in mvcl()
93 r2p1 = len2 | (pad << 24); in mvcl()
135 if (result1.len2 != result2.len2) in mvcl()
167 result.len1, result.len2, (int64_t)result.addr1 - (int64_t)dst, in run_test()
/external/qemu/audio/
Dfmodaudio.c97 unsigned int len1 = 0, len2 = 0; in fmod_clear_sample() local
106 &len2 in fmod_clear_sample()
114 if ((len1 & hw->info.align) || (len2 & hw->info.align)) { in fmod_clear_sample()
116 len1, len2, hw->info.align + 1); in fmod_clear_sample()
120 if ((len1 + len2) - (hw->samples << hw->info.shift)) { in fmod_clear_sample()
122 len1 + len2, hw->samples << hw->info.shift); in fmod_clear_sample()
129 status = FSOUND_Sample_Unlock (fmd->fmod_sample, p1, p2, len1, len2); in fmod_clear_sample()
233 unsigned int len1 = 0, len2 = 0; in fmod_run_out() local
280 len2 = blen2 >> hw->info.shift; in fmod_run_out()
281 ldebug ("%p %p %d %d %d %d\n", p1, p2, len1, len2, blen1, blen2); in fmod_run_out()
[all …]
Ddsoundaudio.c383 DWORD blen1, blen2, len1, len2; in dsound_clear_sample() local
399 len2 = blen2 >> hw->info.shift; in dsound_clear_sample()
404 p2, blen2, len2); in dsound_clear_sample()
411 if (p2 && len2) { in dsound_clear_sample()
412 audio_pcm_info_clear_buf (&hw->info, p2, len2); in dsound_clear_sample()
576 DWORD len1, len2; in dsound_run_out() local
673 len2 = blen2 >> hwshift; in dsound_run_out()
674 decr = len1 + len2; in dsound_run_out()
680 if (p2 && len2) { in dsound_run_out()
681 dsound_write_sample (hw, p2, len2); in dsound_run_out()
[all …]
/external/dropbear/libtomcrypt/src/misc/base64/
Dbase64_encode.c35 unsigned long i, len2, leven; in base64_encode() local
43 len2 = 4 * ((inlen + 2) / 3); in base64_encode()
44 if (*outlen < len2 + 1) { in base64_encode()
45 *outlen = len2 + 1; in base64_encode()
/external/qemu/distrib/zlib-1.2.3/
Dcrc32.c370 uLong ZEXPORT crc32_combine(crc1, crc2, len2) in crc32_combine() argument
373 z_off_t len2;
381 if (len2 == 0)
403 if (len2 & 1)
405 len2 >>= 1;
408 if (len2 == 0)
413 if (len2 & 1)
415 len2 >>= 1;
418 } while (len2 != 0);
/external/qemu/android/utils/
Dpath.c300 unsigned len2; in path_mkdir_recursive() local
313 len2 = len-1; in path_mkdir_recursive()
314 while (len2 > 0 && !ispathsep(path[len2-1])) in path_mkdir_recursive()
315 len2 -= 1; in path_mkdir_recursive()
317 if (len2 > 0) { in path_mkdir_recursive()
318 old_c = path[len2]; in path_mkdir_recursive()
319 path[len2] = 0; in path_mkdir_recursive()
323 ret = path_mkdir_recursive( path, len2, mode ); in path_mkdir_recursive()
325 path[len2] = old_c; in path_mkdir_recursive()
Ddll.c23 int len2 = strlen(str2); in append_string() local
24 char* result = malloc(len1+len2+1); in append_string()
28 memcpy(result + len1, str2, len2); in append_string()
29 result[len1+len2] = '\0'; in append_string()
/external/srec/portable/src/
DPFileSystem.c197 size_t len2; in PFileSystemGetAbsolutePath() local
199 len2 = P_PATH_MAX; in PFileSystemGetAbsolutePath()
200 CHKLOG(rc, PFileSystemGetcwd(cwd, &len2)); in PFileSystemGetAbsolutePath()
201 len2 = *len; in PFileSystemGetAbsolutePath()
202 CHKLOG(rc, lstrinsert(cwd, path, 0, &len2)); in PFileSystemGetAbsolutePath()
214 size_t len2; in PFileSystemGetAbsolutePath() local
216 len2 = *len; in PFileSystemGetAbsolutePath()
218 CHKLOG(rc, PFileSystemGetParentDirectory(path, &len2)); in PFileSystemGetAbsolutePath()
447 size_t len2; in PFileSystemGetParentDirectory() local
457 len2 = P_PATH_MAX; in PFileSystemGetParentDirectory()
[all …]
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_libc.cc151 uptr len2 = internal_strlen(needle); in internal_strstr() local
152 if (len1 < len2) return 0; in internal_strstr()
153 for (uptr pos = 0; pos <= len1 - len2; pos++) { in internal_strstr()
154 if (internal_memcmp(haystack + pos, needle, len2) == 0) in internal_strstr()
/external/apache-xml/src/main/java/org/apache/xpath/objects/
DXStringForFSB.java476 int len2 = xstr.length(); in compareTo() local
477 int n = Math.min(len1, len2); in compareTo()
496 return len1 - len2; in compareTo()
522 int len2 = xstr.length(); in compareToIgnoreCase() local
523 int n = Math.min(len1, len2); in compareToIgnoreCase()
542 return len1 - len2; in compareToIgnoreCase()
/external/skia/src/ports/
DSkXMLParser_expat.cpp121 size_t len2 = input.read(doc, len); in parse() local
122 SkASSERT(len2 == len); in parse()
124 return this->parse(doc, len2); in parse()

1234