Lines Matching refs:token
27 vector<uint8_t> authToken2AidlVec(const HardwareAuthToken& token) { in authToken2AidlVec() argument
28 static_assert(1 /* version size */ + sizeof(token.challenge) + sizeof(token.userId) + in authToken2AidlVec()
29 sizeof(token.authenticatorId) + sizeof(token.authenticatorType) + in authToken2AidlVec()
30 sizeof(token.timestamp) + 32 /* HMAC size */ in authToken2AidlVec()
36 if (token.mac.size() <= 32) return result; in authToken2AidlVec()
41 pos = copy_bytes_to_iterator(token.challenge, pos); in authToken2AidlVec()
42 pos = copy_bytes_to_iterator(token.userId, pos); in authToken2AidlVec()
43 pos = copy_bytes_to_iterator(token.authenticatorId, pos); in authToken2AidlVec()
44 pos = copy_bytes_to_iterator(token.authenticatorType, pos); in authToken2AidlVec()
45 pos = copy_bytes_to_iterator(token.timestamp, pos); in authToken2AidlVec()
46 pos = std::copy(token.mac.data(), token.mac.data() + token.mac.size(), pos); in authToken2AidlVec()