Lines Matching refs:token
245 hw_auth_token_t token; in MintAuthToken() local
247 token.version = HW_AUTH_TOKEN_VERSION; in MintAuthToken()
248 token.challenge = challenge; in MintAuthToken()
249 token.user_id = user_id; in MintAuthToken()
250 token.authenticator_id = authenticator_id; in MintAuthToken()
251 token.authenticator_type = htobe32(HW_AUTH_PASSWORD); in MintAuthToken()
252 token.timestamp = htobe64(timestamp); in MintAuthToken()
254 constexpr uint32_t hashable_length = sizeof(token.version) + in MintAuthToken()
255 sizeof(token.challenge) + in MintAuthToken()
256 sizeof(token.user_id) + in MintAuthToken()
257 sizeof(token.authenticator_id) + in MintAuthToken()
258 sizeof(token.authenticator_type) + in MintAuthToken()
259 sizeof(token.timestamp); in MintAuthToken()
267 ComputeSignature(token.hmac, sizeof(token.hmac), auth_token_key, key_len, in MintAuthToken()
268 reinterpret_cast<uint8_t *>(&token), hashable_length); in MintAuthToken()
270 memset(token.hmac, 0, sizeof(token.hmac)); in MintAuthToken()
276 *reinterpret_cast<hw_auth_token_t*>(token_buffer) = token; in MintAuthToken()