Home
last modified time | relevance | path

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

/packages/modules/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 …]
/packages/modules/adb/pairing_auth/
Dpairing_auth.cpp253 bool pairing_auth_encrypt(PairingAuthCtx* ctx, const uint8_t* inbuf, size_t inlen, uint8_t* outbuf, in pairing_auth_encrypt() argument
257 CHECK(outbuf); in pairing_auth_encrypt()
267 memcpy(outbuf, out.data(), out.size()); in pairing_auth_encrypt()
280 bool pairing_auth_decrypt(PairingAuthCtx* ctx, const uint8_t* inbuf, size_t inlen, uint8_t* outbuf, in pairing_auth_decrypt() argument
284 CHECK(outbuf); in pairing_auth_decrypt()
294 memcpy(outbuf, out.data(), out.size()); in pairing_auth_decrypt()
/packages/modules/adb/pairing_auth/include/adb/pairing/
Dpairing_auth.h148 bool pairing_auth_encrypt(PairingAuthCtx* ctx, const uint8_t* inbuf, size_t inlen, uint8_t* outbuf,
181 bool pairing_auth_decrypt(PairingAuthCtx* ctx, const uint8_t* inbuf, size_t inlen, uint8_t* outbuf,
/packages/modules/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()