Home
last modified time | relevance | path

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

/system/core/adb/
Dadb_auth.h43 void send_auth_response(const char* token, size_t token_size, atransport* t);
53 bool adbd_auth_verify(const char* token, size_t token_size, const std::string& sig,
/system/core/adb/daemon/
Dauth.cpp54 bool adbd_auth_verify(const char* token, size_t token_size, const std::string& sig, in adbd_auth_verify() argument
89 (RSA_verify(NID_sha1, reinterpret_cast<const uint8_t*>(token), token_size, in adbd_auth_verify()
122 static bool adbd_auth_generate_token(void* token, size_t token_size) { in adbd_auth_generate_token() argument
125 bool okay = (fread(token, token_size, 1, fp) == 1); in adbd_auth_generate_token()
/system/core/adb/client/
Dauth.cpp270 static std::string adb_auth_sign(RSA* key, const char* token, size_t token_size) { in adb_auth_sign() argument
271 if (token_size != TOKEN_SIZE) { in adb_auth_sign()
272 D("Unexpected token size %zd", token_size); in adb_auth_sign()
280 if (!RSA_sign(NID_sha1, reinterpret_cast<const uint8_t*>(token), token_size, in adb_auth_sign()
447 void send_auth_response(const char* token, size_t token_size, atransport* t) { in send_auth_response() argument
460 std::string result = adb_auth_sign(key.get(), token, token_size); in send_auth_response()