Home
last modified time | relevance | path

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

/system/tpm/trunks/
Dpassword_authorization_delegate.cc56 TPMS_AUTH_RESPONSE auth_response; in CheckResponseAuthorization() local
60 parse_error = Parse_TPMS_AUTH_RESPONSE(&mutable_auth_string, &auth_response, in CheckResponseAuthorization()
70 if (auth_response.nonce.size != 0) { in CheckResponseAuthorization()
74 if (auth_response.hmac.size != 0) { in CheckResponseAuthorization()
78 if (auth_response.session_attributes != kContinueSession) { in CheckResponseAuthorization()
Dpassword_authorization_delegate_test.cc56 std::string auth_response("\x00\x00" // nonceTpm = zero length buffer in TEST() local
64 auth_response); in TEST()
71 std::string auth_response("\x00\x00" // nonceTpm = zero length buffer in TEST() local
80 auth_response); in TEST()
Dhmac_authorization_delegate.cc115 TPMS_AUTH_RESPONSE auth_response; in CheckResponseAuthorization() local
119 &auth_response, in CheckResponseAuthorization()
125 if (auth_response.hmac.size != kHashDigestSize) { in CheckResponseAuthorization()
129 if (auth_response.nonce.size < kNonceMinSize || in CheckResponseAuthorization()
130 auth_response.nonce.size > kNonceMaxSize) { in CheckResponseAuthorization()
134 tpm_nonce_ = auth_response.nonce; in CheckResponseAuthorization()
136 CHECK_EQ(Serialize_TPMA_SESSION(auth_response.session_attributes, in CheckResponseAuthorization()
161 CHECK_EQ(digest.size(), auth_response.hmac.size); in CheckResponseAuthorization()
162 if (!crypto::SecureMemEqual(digest.data(), auth_response.hmac.buffer, in CheckResponseAuthorization()
Dhmac_authorization_delegate_test.cc187 TPMS_AUTH_RESPONSE auth_response; in TEST_F() local
188 auth_response.session_attributes = kContinueSession; in TEST_F()
189 auth_response.nonce.size = kAesKeySize; in TEST_F()
190 memset(auth_response.nonce.buffer, 0, kAesKeySize); in TEST_F()
191 auth_response.hmac.size = kHashDigestSize; in TEST_F()
198 memcpy(auth_response.hmac.buffer, hmac_buffer, kHashDigestSize); in TEST_F()
201 EXPECT_EQ(TPM_RC_SUCCESS, Serialize_TPMS_AUTH_RESPONSE(auth_response, in TEST_F()