Home
last modified time | relevance | path

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

/hardware/interfaces/gatekeeper/1.0/software/tests/
Dgatekeeper_test.cpp90 auto auth_token = response.auth_token.Data<hw_auth_token_t>(); in TEST() local
92 ASSERT_NE(nullptr, auth_token); in TEST()
93 ASSERT_EQ((uint32_t)HW_AUTH_PASSWORD, ntohl(auth_token->authenticator_type)); in TEST()
94 ASSERT_EQ((uint64_t)1, auth_token->challenge); in TEST()
95 ASSERT_NE(~((uint32_t)0), auth_token->timestamp); in TEST()
96 ASSERT_NE((uint64_t)0, auth_token->user_id); in TEST()
97 ASSERT_NE((uint64_t)0, auth_token->authenticator_id); in TEST()
114 auto auth_token = response.auth_token.Data<hw_auth_token_t>(); in TEST() local
115 ASSERT_NE(nullptr, auth_token); in TEST()
117 secure_id_t secure_id = auth_token->user_id; in TEST()
[all …]
/hardware/interfaces/gatekeeper/1.0/software/
DSoftGateKeeperDevice.cpp93 hidl_vec<uint8_t> auth_token( in verify() local
94 response.auth_token.Data<uint8_t>(), in verify()
95 response.auth_token.Data<uint8_t>() + response.auth_token.size()); in verify()
99 response.retry_timeout, auth_token}); in verify()
/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()
154 const hw_auth_token_t *auth_token = toAuthToken(rsp); in checkVerify() local
[all …]
/hardware/interfaces/confirmationui/1.0/vts/functional/
DVtsHalConfirmationUIV1_0TargetTest.cpp101 HardwareAuthToken auth_token; local
102 auth_token.challenge = static_cast<uint64_t>(command);
103 auth_token.userId = 0;
104 auth_token.authenticatorId = 0;
105 auth_token.authenticatorType = HardwareAuthenticatorType::NONE;
106 auth_token.timestamp = timestamp;
116 auth_token.mac = testHMAC("\0",
117 toBytes(auth_token.challenge), //
118 toBytes(auth_token.userId), //
119 toBytes(auth_token.authenticatorId), //
[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);