Home
last modified time | relevance | path

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

/system/core/adb/
Dadb_auth.h28 void send_auth_response(uint8_t *token, size_t token_size, atransport *t);
41 int adb_auth_sign(void *key, const unsigned char* token, size_t token_size,
46 static inline int adb_auth_generate_token(void *token, size_t token_size) { return 0; } in adb_auth_generate_token() argument
53 size_t token_size, unsigned char* sig) { in adb_auth_sign() argument
61 int adb_auth_generate_token(void *token, size_t token_size);
Dadb_auth.cpp53 void send_auth_response(uint8_t *token, size_t token_size, atransport *t) in send_auth_response() argument
59 ret = adb_auth_sign(t->key, token, token_size, p->data); in send_auth_response()
Dadb_auth_client.cpp127 int adb_auth_generate_token(void *token, size_t token_size) in adb_auth_generate_token() argument
136 ret = fread(token, token_size, 1, f); in adb_auth_generate_token()
139 return ret * token_size; in adb_auth_generate_token()
Dadb_auth_host.cpp347 int adb_auth_sign(void *node, const unsigned char* token, size_t token_size, in adb_auth_sign() argument
353 if (token_size != TOKEN_SIZE) { in adb_auth_sign()
354 D("Unexpected token size %zd", token_size); in adb_auth_sign()
358 if (!RSA_sign(NID_sha1, token, token_size, sig, &len, key->rsa)) { in adb_auth_sign()