Home
last modified time | relevance | path

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

/system/core/adb/
Dadb_auth.h44 void send_auth_response(const char* token, size_t token_size, atransport* t);
57 bool adbd_auth_verify(const char* token, size_t token_size, const std::string& sig,
/system/core/adb/client/
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()
/system/core/adb/daemon/
Dauth.cpp155 bool adbd_auth_verify(const char* token, size_t token_size, const std::string& sig, in adbd_auth_verify() argument
177 (RSA_verify(NID_sha1, reinterpret_cast<const uint8_t*>(token), token_size, in adbd_auth_verify()
192 static bool adbd_auth_generate_token(void* token, size_t token_size) { in adbd_auth_generate_token() argument
195 bool okay = (fread(token, token_size, 1, fp) == 1); in adbd_auth_generate_token()