Lines Matching refs:outbuf
337 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()
395 if (outbuf.size() != sizeof(PeerInfo)) { in DoExchangePeerInfo()
396 LOG(ERROR) << "Got size=" << outbuf.size() << "PeerInfo.size=" << sizeof(PeerInfo); in DoExchangePeerInfo()
400 p = outbuf.data(); in DoExchangePeerInfo()