Home
last modified time | relevance | path

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

/system/tpm/trunks/
Dhmac_authorization_delegate.cc85 std::string hmac_data; in GetCommandAuthorization() local
92 hmac_data.append(command_hash); in GetCommandAuthorization()
93 hmac_data.append(reinterpret_cast<const char*>(caller_nonce_.buffer), in GetCommandAuthorization()
95 hmac_data.append(reinterpret_cast<const char*>(tpm_nonce_.buffer), in GetCommandAuthorization()
97 hmac_data.append(attributes_bytes); in GetCommandAuthorization()
98 std::string digest = HmacSha256(hmac_key, hmac_data); in GetCommandAuthorization()
140 std::string hmac_data; in CheckResponseAuthorization() local
154 hmac_data.append(response_hash); in CheckResponseAuthorization()
155 hmac_data.append(reinterpret_cast<const char*>(tpm_nonce_.buffer), in CheckResponseAuthorization()
157 hmac_data.append(reinterpret_cast<const char*>(caller_nonce_.buffer), in CheckResponseAuthorization()
[all …]