Home
last modified time | relevance | path

Searched refs:token_size (Results 1 – 3 of 3) sorted by relevance

/aosp12/packages/modules/adb/
H A Dadb_auth.h44 void send_auth_response(const char* token, size_t token_size, atransport* t);
58 bool adbd_auth_verify(const char* token, size_t token_size, const std::string& sig,
/aosp12/packages/modules/adb/client/
H A Dauth.cpp260 static std::string adb_auth_sign(RSA* key, const char* token, size_t token_size) { in adb_auth_sign() argument
261 if (token_size != TOKEN_SIZE) { in adb_auth_sign()
262 D("Unexpected token size %zd", token_size); in adb_auth_sign()
270 if (!RSA_sign(NID_sha1, reinterpret_cast<const uint8_t*>(token), token_size, in adb_auth_sign()
459 void send_auth_response(const char* token, size_t token_size, atransport* t) { in send_auth_response() argument
472 std::string result = adb_auth_sign(key.get(), token, token_size); in send_auth_response()
/aosp12/packages/modules/adb/daemon/
H A Dauth.cpp156 bool adbd_auth_verify(const char* token, size_t token_size, const std::string& sig, in adbd_auth_verify() argument
178 (RSA_verify(NID_sha1, reinterpret_cast<const uint8_t*>(token), token_size, in adbd_auth_verify()
193 static bool adbd_auth_generate_token(void* token, size_t token_size) { in adbd_auth_generate_token() argument
196 bool okay = (fread(token, token_size, 1, fp) == 1); in adbd_auth_generate_token()