Home
last modified time | relevance | path

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

/hardware/interfaces/confirmationui/1.0/vts/functional/
DVtsHalConfirmationUIV1_0TargetTest.cpp97 HardwareAuthToken auth_token; local
98 auth_token.challenge = static_cast<uint64_t>(command);
99 auth_token.userId = 0;
100 auth_token.authenticatorId = 0;
101 auth_token.authenticatorType = HardwareAuthenticatorType::NONE;
102 auth_token.timestamp = timestamp;
112 auth_token.mac = testHMAC("\0",
113 toBytes(auth_token.challenge), //
114 toBytes(auth_token.userId), //
115 toBytes(auth_token.authenticatorId), //
[all …]
/hardware/interfaces/gatekeeper/1.0/vts/functional/
DVtsHalGatekeeperV1_0TargetTest.cpp59 const hw_auth_token_t *auth_token = in toAuthToken() local
63 EXPECT_NE(nullptr, auth_token); in toAuthToken()
66 if (auth_token != nullptr && auth_token_size >= sizeof(*auth_token)) { in toAuthToken()
68 uint32_t auth_type = ntohl(auth_token->authenticator_type); in toAuthToken()
69 uint64_t auth_tstamp = ntohq(auth_token->timestamp); in toAuthToken()
73 EXPECT_EQ(HW_AUTH_TOKEN_VERSION, auth_token->version); in toAuthToken()
75 ALOGI("Authenticator ID: %016" PRIX64, auth_token->authenticator_id); in toAuthToken()
76 EXPECT_NE(UINT32_C(0), auth_token->user_id); in toAuthToken()
78 return auth_token; in toAuthToken()
168 const hw_auth_token_t *auth_token = toAuthToken(rsp); in checkVerify() local
[all …]
/hardware/interfaces/gatekeeper/1.0/default/
DGatekeeper.cpp92 uint8_t *auth_token = nullptr; in verify() local
99 &auth_token, &auth_token_length, in verify()
102 rsp.data.setToExternal(auth_token, auth_token_length, true); in verify()
/hardware/libhardware/include/hardware/
Dgatekeeper.h144 uint8_t **auth_token, uint32_t *auth_token_length, bool *request_reenroll);