Home
last modified time | relevance | path

Searched refs:outbuf (Results 1 – 5 of 5) sorted by relevance

/system/core/adb/pairing_connection/
Dpairing_connection.cpp337 std::vector<uint8_t> outbuf(pairing_auth_safe_encrypted_size(auth_.get(), buf.size())); in DoExchangePeerInfo() local
338 CHECK(!outbuf.empty()); in DoExchangePeerInfo()
340 if (!pairing_auth_encrypt(auth_.get(), buf.data(), buf.size(), outbuf.data(), &outsize)) { in DoExchangePeerInfo()
344 outbuf.resize(outsize); in DoExchangePeerInfo()
350 out_header.payload = htonl(outbuf.size()); in DoExchangePeerInfo()
359 std::string_view(reinterpret_cast<const char*>(outbuf.data()), outbuf.size()))) { in DoExchangePeerInfo()
382 outbuf.resize(pairing_auth_safe_decrypted_size(auth_.get(), buf.data(), buf.size())); in DoExchangePeerInfo()
383 if (outbuf.empty()) { in DoExchangePeerInfo()
388 if (!pairing_auth_decrypt(auth_.get(), buf.data(), buf.size(), outbuf.data(), &outsize)) { in DoExchangePeerInfo()
392 outbuf.resize(outsize); in DoExchangePeerInfo()
[all …]
/system/core/adb/pairing_auth/include/adb/pairing/
Dpairing_auth.h149 bool pairing_auth_encrypt(PairingAuthCtx* ctx, const uint8_t* inbuf, size_t inlen, uint8_t* outbuf,
182 bool pairing_auth_decrypt(PairingAuthCtx* ctx, const uint8_t* inbuf, size_t inlen, uint8_t* outbuf,
/system/core/adb/pairing_auth/
Dpairing_auth.cpp251 bool pairing_auth_encrypt(PairingAuthCtx* ctx, const uint8_t* inbuf, size_t inlen, uint8_t* outbuf, in pairing_auth_encrypt() argument
255 CHECK(outbuf); in pairing_auth_encrypt()
265 memcpy(outbuf, out.data(), out.size()); in pairing_auth_encrypt()
278 bool pairing_auth_decrypt(PairingAuthCtx* ctx, const uint8_t* inbuf, size_t inlen, uint8_t* outbuf, in pairing_auth_decrypt() argument
282 CHECK(outbuf); in pairing_auth_decrypt()
292 memcpy(outbuf, out.data(), out.size()); in pairing_auth_decrypt()
/system/core/debuggerd/
Ddebuggerd_test.cpp1334 char outbuf[sizeof(java)]; in TEST() local
1335 ASSERT_TRUE(android::base::ReadFully(output_fd.get(), outbuf, sizeof(outbuf))); in TEST()
1336 ASSERT_STREQ("java", outbuf); in TEST()
1365 char outbuf[sizeof(any)]; in TEST() local
1366 ASSERT_TRUE(android::base::ReadFully(output_fd.get(), outbuf, sizeof(outbuf))); in TEST()
1367 ASSERT_STREQ("any", outbuf); in TEST()
/system/core/adb/pairing_auth/tests/
Dpairing_auth_test.cpp103 uint8_t outbuf[256]; in TEST_F() local
116 pairing_auth_encrypt(server.get(), data.data(), data.size(), outbuf, &outsize); in TEST_F()
122 pairing_auth_decrypt(server.get(), data.data(), data.size(), outbuf, &outsize); in TEST_F()