Home
last modified time | relevance | path

Searched refs:wcs (Results 1 – 20 of 20) sorted by relevance

/external/google-breakpad/src/common/windows/
Dstring_utils.cc48 bool WindowsStringUtils::safe_mbstowcs(const string &mbs, wstring *wcs) { in safe_mbstowcs() argument
49 assert(wcs); in safe_mbstowcs()
86 *wcs = &wcs_v[0]; in safe_mbstowcs()
91 bool WindowsStringUtils::safe_wcstombs(const wstring &wcs, string *mbs) { in safe_wcstombs() argument
99 if ((err = wcstombs_s(&mbs_length, NULL, 0, wcs.c_str(), _TRUNCATE)) != 0) { in safe_wcstombs()
104 if ((mbs_length = wcstombs(NULL, wcs.c_str(), wcs.length())) == (size_t)-1) { in safe_wcstombs()
116 if ((err = wcstombs_s(NULL, &mbs_v[0], mbs_length, wcs.c_str(), in safe_wcstombs()
121 if (wcstombs(&mbs_v[0], wcs.c_str(), wcs.length()) == (size_t)-1) { in safe_wcstombs()
Dstring_utils-inl.h88 static bool safe_mbstowcs(const string &mbs, wstring *wcs);
91 static bool safe_wcstombs(const wstring &wcs, string *mbs);
/external/scapy/scapy/layers/tls/
Drecord.py507 self.tls_session.wcs = self.tls_session.pwcs
536 alg = self.tls_session.wcs.compression
544 write_seq_num = struct.pack("!Q", self.tls_session.wcs.seq_num)
545 self.tls_session.wcs.seq_num += 1
550 return self.tls_session.wcs.cipher.auth_encrypt(s, add_data,
563 write_seq_num = struct.pack("!Q", self.tls_session.wcs.seq_num)
564 self.tls_session.wcs.seq_num += 1
566 alg = self.tls_session.wcs.hmac
587 block_size = self.tls_session.wcs.cipher.block_size
601 return self.tls_session.wcs.cipher.encrypt(s)
[all …]
Dsession.py310 wcs=None, rcs=None): argument
328 if wcs is None:
330 self.wcs = writeConnState(connection_end=connection_end)
331 self.wcs.derive_keys()
333 self.wcs = wcs
462 if hasattr(self, "wcs") and self.wcs:
463 self.wcs.connection_end = val
497 self.rcs, self.wcs = self.wcs, self.rcs
500 if self.wcs:
501 self.wcs.row = "write"
[all …]
Drecord_sslv2.py161 self.tls_session.wcs = self.tls_session.pwcs
185 secret = self.tls_session.wcs.cipher.key
189 write_seq_num = struct.pack("!I", self.tls_session.wcs.seq_num)
190 alg = self.tls_session.wcs.hash
196 block_size = self.tls_session.wcs.cipher.block_size
213 if self.pad == b"" and self.tls_session.wcs.cipher.type == 'block':
259 self.tls_session.wcs = self.tls_session.pwcs
270 self.tls_session.wcs.seq_num += 1
Drecord_tls13.py177 wcs = self.tls_session.wcs
178 write_seq_num = struct.pack("!Q", wcs.seq_num)
179 wcs.seq_num += 1
180 return wcs.cipher.auth_encrypt(s, b"", write_seq_num)
203 self.tls_session.wcs = self.tls_session.pwcs
Dbasefields.py151 return pkt.tls_session.wcs.mac_len
Dhandshake.py860 m = b"\x20"*64 + context_string + b"\x00" + s.wcs.hash.digest(m)
978 self.vdata = s.wcs.prf.compute_verify_data(con_end, "write",
1007 s.pwcs = writeConnState(ciphersuite=type(s.wcs.ciphersuite),
Dautomaton_srv.py98 cs = s.wcs.ciphersuite.name
117 cs = self.cur_session.wcs.ciphersuite.name
Dhandshake_sslv2.py357 wcs_seq_num = s.wcs.seq_num
Dautomaton_cli.py116 cs = s.wcs.ciphersuite.name
/external/protobuf/src/google/protobuf/io/
Dio_win32_unittest.cc119 std::unique_ptr<WCHAR[]> wcs(new WCHAR[size]); in GetEnvVarAsUtf8() local
120 ::GetEnvironmentVariableW(name, wcs.get(), size); in GetEnvVarAsUtf8()
126 return strings::wcs_to_utf8(wcs.get(), result); in GetEnvVarAsUtf8()
135 std::unique_ptr<WCHAR[]> wcs(new WCHAR[size]); in GetCwdAsUtf8() local
136 ::GetCurrentDirectoryW(size, wcs.get()); in GetCwdAsUtf8()
142 return strings::wcs_to_utf8(wcs.get(), result); in GetCwdAsUtf8()
440 wstring wcs; in TEST_F() local
441 ASSERT_TRUE(strings::utf8_to_wcs(kUtf8Text, &wcs)); in TEST_F()
443 ASSERT_EQ(wcs, kUtf16Text); in TEST_F()
/external/icu/icu4c/source/test/perf/ustrperf/
Dstringperf.h252 wchar_t* wcs; in prepareLinesForStd() local
257 wcs = u_strToWCS(ws, wcap, &wl, lines_[i].name, lines_[i].len, &err); in prepareLinesForStd()
258 memcpy(wlines_[i].name, wcs, wl * sizeof(wchar_t)); in prepareLinesForStd()
262 wcs = u_strToWCS(ws, wcap, &wl, lines_[i].name, lines_[i].len-1, &err); in prepareLinesForStd()
263 memcpy(wlines_[i].name, wcs, wl*sizeof(wchar_t)); in prepareLinesForStd()
/external/scapy/test/
Dsslv2.uts114 s.wcs.cipher.key == b'\xf4\xae\x00\x03kB>\x06\xba[\xd7\xea,\x08\xc2\xae'
176 t2.tls_session.rcs.seq_num == 6 and t2.tls_session.wcs.seq_num == 4
188 assert(t1.tls_session.rcs.seq_num == 6 and t1.tls_session.wcs.seq_num == 4)
194 assert(t2.tls_session.rcs.seq_num == 6 and t2.tls_session.wcs.seq_num == 4)
218 assert(t.tls_session.wcs.seq_num == 2)
272 assert(isinstance(s.wcs.ciphersuite, SSL_CK_DES_192_EDE3_CBC_WITH_MD5))
274 s.wcs.cipher.iv == b'\x01'*8
Dtls.uts906 assert(t.wcs.row == "write")
/external/icu/icu4c/source/test/cintltst/
Dcustrtrn.c1392 wchar_t *wcs; in Test_widestrs() local
1402 wcs = u_strToWCS(ws, wcap, &wl, ustr, ul, &err); in Test_widestrs()
1411 wl = (int32_t)uprv_wcslen(wcs); in Test_widestrs()
1412 cp = u_strFromWCS(rts, rtcap, &rtl, wcs, wl, &err); in Test_widestrs()
1419 …log_err("u_strFromWCS: wcs = %S, wl = %d,rts = %s, rtl = %d!\n", wcs, wl, u_austrcpy(astr, rts), r… in Test_widestrs()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DTargetLibraryInfo.def1315 /// size_t wcslen (const wchar_t* wcs);
/external/icu/icu4c/source/
Dconfigure.ac967 AC_SEARCH_LIBS(wcscpy, wcs w)
Dconfigure7397 for ac_lib in '' wcs w; do
/external/cldr/tools/java/org/unicode/cldr/util/data/transforms/
Dinternal_raw_IPA-old.txt211155 wcs %14201