Home
last modified time | relevance | path

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

/system/tpm/trunks/
Dhmac_authorization_delegate_test.cc86 delegate.tpm_nonce_ = delegate.caller_nonce_; in TEST()
87 delegate.caller_nonce_ = nonce; in TEST()
123 EXPECT_EQ(delegate_.caller_nonce_.size, original_nonce.size); in TEST_F()
124 EXPECT_EQ(0, memcmp(delegate_.caller_nonce_.buffer, in TEST_F()
136 EXPECT_EQ(delegate_.caller_nonce_.size, original_nonce.size); in TEST_F()
138 EXPECT_NE(0, memcmp(delegate_.caller_nonce_.buffer, in TEST_F()
141 EXPECT_EQ(0, memcmp(delegate_.caller_nonce_.buffer, in TEST_F()
146 original_nonce = delegate_.caller_nonce_; in TEST_F()
149 EXPECT_EQ(delegate_.caller_nonce_.size, original_nonce.size); in TEST_F()
150 EXPECT_NE(0, memcmp(delegate_.caller_nonce_.buffer, in TEST_F()
[all …]
Dhmac_authorization_delegate.cc49 caller_nonce_.size = 0; in HmacAuthorizationDelegate()
69 auth.nonce = caller_nonce_; in GetCommandAuthorization()
93 hmac_data.append(reinterpret_cast<const char*>(caller_nonce_.buffer), in GetCommandAuthorization()
94 caller_nonce_.size); in GetCommandAuthorization()
157 hmac_data.append(reinterpret_cast<const char*>(caller_nonce_.buffer), in CheckResponseAuthorization()
158 caller_nonce_.size); in CheckResponseAuthorization()
187 AesOperation(parameter, caller_nonce_, tpm_nonce_, AES_ENCRYPT); in EncryptCommandParameter()
206 AesOperation(parameter, tpm_nonce_, caller_nonce_, AES_DECRYPT); in DecryptResponseParameter()
224 caller_nonce_ = caller_nonce; in InitSession()
235 caller_nonce_); in InitSession()
[all …]
Dhmac_authorization_delegate.h146 TPM2B_NONCE caller_nonce_; variable