Home
last modified time | relevance | path

Searched refs:serializedToken (Results 1 – 2 of 2) sorted by relevance

/hardware/interfaces/keymaster/4.0/support/
Dkeymaster_utils.cpp155 std::vector<uint8_t> serializedToken; in serializeVerificationToken() local
156 appendUint64(serializedToken, token.challenge); in serializeVerificationToken()
157 appendUint64(serializedToken, token.timestamp); in serializeVerificationToken()
158 appendUint32(serializedToken, uint32_t(token.securityLevel)); in serializeVerificationToken()
159 appendUint32(serializedToken, token.mac.size()); in serializeVerificationToken()
160 serializedToken.insert(serializedToken.end(), token.mac.begin(), token.mac.end()); in serializeVerificationToken()
161 return serializedToken; in serializeVerificationToken()
165 const std::vector<uint8_t>& serializedToken) { in deserializeVerificationToken() argument
166 if (serializedToken.size() < 24) { in deserializeVerificationToken()
167 LOG(ERROR) << "Unexpected serialized VerificationToken size " << serializedToken.size() in deserializeVerificationToken()
[all …]
/hardware/interfaces/keymaster/4.0/support/include/keymasterV4_0/
Dkeymaster_utils.h63 const std::vector<uint8_t>& serializedToken);