Searched defs:auth (Results 1 - 7 of 7) sorted by relevance

/system/tpm/trunks/
H A Dpassword_authorization_delegate.cc39 TPMS_AUTH_COMMAND auth; local
40 auth.session_handle = TPM_RS_PW;
41 auth.nonce.size = 0;
42 auth.session_attributes = kContinueSession;
43 auth.hmac = password_;
45 TPM_RC serialize_error = Serialize_TPMS_AUTH_COMMAND(auth, authorization);
47 LOG(ERROR) << __func__ << ": could not serialize command auth.";
H A Dhmac_authorization_delegate.cc63 TPMS_AUTH_COMMAND auth; local
64 auth.session_handle = session_handle_;
68 auth.nonce = caller_nonce_;
69 auth.session_attributes = kContinueSession;
72 auth.session_attributes |= kDecryptSession;
75 auth.session_attributes |= kEncryptSession;
81 CHECK_EQ(Serialize_TPMA_SESSION(auth.session_attributes, &attributes_bytes),
99 auth.hmac = Make_TPM2B_DIGEST(digest);
101 TPM_RC serialize_error = Serialize_TPMS_AUTH_COMMAND(auth, authorization);
103 LOG(ERROR) << "Could not serialize command auth
[all...]
H A Dmock_tpm.cc139 const TPMT_SIGNATURE& auth,
143 policy_ref, expiration, auth, authorization_delegate,
155 const TPMT_SIGNATURE& auth,
160 cp_hash_a, policy_ref, expiration, auth, timeout,
131 PolicySigned(const TPMI_DH_OBJECT& auth_object, const std::string& auth_object_name, const TPMI_SH_POLICY& policy_session, const std::string& policy_session_name, const TPM2B_NONCE& nonce_tpm, const TPM2B_DIGEST& cp_hash_a, const TPM2B_NONCE& policy_ref, const INT32& expiration, const TPMT_SIGNATURE& auth, AuthorizationDelegate* authorization_delegate, const PolicySignedResponse& callback) argument
146 PolicySignedSync( const TPMI_DH_OBJECT& auth_object, const std::string& auth_object_name, const TPMI_SH_POLICY& policy_session, const std::string& policy_session_name, const TPM2B_NONCE& nonce_tpm, const TPM2B_DIGEST& cp_hash_a, const TPM2B_NONCE& policy_ref, const INT32& expiration, const TPMT_SIGNATURE& auth, TPM2B_TIMEOUT* timeout, TPMT_TK_AUTH* policy_ticket, AuthorizationDelegate* authorization_delegate) argument
H A Dtpm_generated.cc15116 const TPM2B_AUTH& auth,
15140 rc = Serialize_TPM2B_AUTH(auth, &auth_bytes);
15309 const TPM2B_AUTH& auth,
15319 TPM_RC rc = SerializeCommand_HMAC_Start(handle, handle_name, auth, hash_alg,
15330 const TPM2B_AUTH& auth,
15336 TPM_RC rc = SerializeCommand_HMAC_Start(handle, handle_name, auth, hash_alg,
15348 const TPM2B_AUTH& auth,
15367 rc = Serialize_TPM2B_AUTH(auth, &auth_bytes);
15533 void Tpm::HashSequenceStart(const TPM2B_AUTH& auth, argument
15543 TPM_RC rc = SerializeCommand_HashSequenceStart(auth, hash_al
15113 SerializeCommand_HMAC_Start( const TPMI_DH_OBJECT& handle, const std::string& handle_name, const TPM2B_AUTH& auth, const TPMI_ALG_HASH& hash_alg, std::string* serialized_command, AuthorizationDelegate* authorization_delegate) argument
15307 HMAC_Start(const TPMI_DH_OBJECT& handle, const std::string& handle_name, const TPM2B_AUTH& auth, const TPMI_ALG_HASH& hash_alg, AuthorizationDelegate* authorization_delegate, const HMAC_StartResponse& callback) argument
15328 HMAC_StartSync(const TPMI_DH_OBJECT& handle, const std::string& handle_name, const TPM2B_AUTH& auth, const TPMI_ALG_HASH& hash_alg, TPMI_DH_OBJECT* sequence_handle, AuthorizationDelegate* authorization_delegate) argument
15347 SerializeCommand_HashSequenceStart( const TPM2B_AUTH& auth, const TPMI_ALG_HASH& hash_alg, std::string* serialized_command, AuthorizationDelegate* authorization_delegate) argument
15552 HashSequenceStartSync( const TPM2B_AUTH& auth, const TPMI_ALG_HASH& hash_alg, TPMI_DH_OBJECT* sequence_handle, AuthorizationDelegate* authorization_delegate) argument
18955 SerializeCommand_SetCommandCodeAuditStatus( const TPMI_RH_PROVISION& auth, const std::string& auth_name, const TPMI_ALG_HASH& audit_alg, const TPML_CC& set_list, const TPML_CC& clear_list, std::string* serialized_command, AuthorizationDelegate* authorization_delegate) argument
19145 SetCommandCodeAuditStatus( const TPMI_RH_PROVISION& auth, const std::string& auth_name, const TPMI_ALG_HASH& audit_alg, const TPML_CC& set_list, const TPML_CC& clear_list, AuthorizationDelegate* authorization_delegate, const SetCommandCodeAuditStatusResponse& callback) argument
19170 SetCommandCodeAuditStatusSync( const TPMI_RH_PROVISION& auth, const std::string& auth_name, const TPMI_ALG_HASH& audit_alg, const TPML_CC& set_list, const TPML_CC& clear_list, AuthorizationDelegate* authorization_delegate) argument
20327 SerializeCommand_PCR_SetAuthValue( const TPMI_DH_PCR& pcr_handle, const std::string& pcr_handle_name, const TPM2B_DIGEST& auth, std::string* serialized_command, AuthorizationDelegate* authorization_delegate) argument
20507 PCR_SetAuthValue(const TPMI_DH_PCR& pcr_handle, const std::string& pcr_handle_name, const TPM2B_DIGEST& auth, AuthorizationDelegate* authorization_delegate, const PCR_SetAuthValueResponse& callback) argument
20527 PCR_SetAuthValueSync( const TPMI_DH_PCR& pcr_handle, const std::string& pcr_handle_name, const TPM2B_DIGEST& auth, AuthorizationDelegate* authorization_delegate) argument
20738 SerializeCommand_PolicySigned( const TPMI_DH_OBJECT& auth_object, const std::string& auth_object_name, const TPMI_SH_POLICY& policy_session, const std::string& policy_session_name, const TPM2B_NONCE& nonce_tpm, const TPM2B_DIGEST& cp_hash_a, const TPM2B_NONCE& policy_ref, const INT32& expiration, const TPMT_SIGNATURE& auth, std::string* serialized_command, AuthorizationDelegate* authorization_delegate) argument
20989 PolicySigned(const TPMI_DH_OBJECT& auth_object, const std::string& auth_object_name, const TPMI_SH_POLICY& policy_session, const std::string& policy_session_name, const TPM2B_NONCE& nonce_tpm, const TPM2B_DIGEST& cp_hash_a, const TPM2B_NONCE& policy_ref, const INT32& expiration, const TPMT_SIGNATURE& auth, AuthorizationDelegate* authorization_delegate, const PolicySignedResponse& callback) argument
21017 PolicySignedSync(const TPMI_DH_OBJECT& auth_object, const std::string& auth_object_name, const TPMI_SH_POLICY& policy_session, const std::string& policy_session_name, const TPM2B_NONCE& nonce_tpm, const TPM2B_DIGEST& cp_hash_a, const TPM2B_NONCE& policy_ref, const INT32& expiration, const TPMT_SIGNATURE& auth, TPM2B_TIMEOUT* timeout, TPMT_TK_AUTH* policy_ticket, AuthorizationDelegate* authorization_delegate) argument
26247 SerializeCommand_ClearControl( const TPMI_RH_CLEAR& auth, const std::string& auth_name, const TPMI_YES_NO& disable, std::string* serialized_command, AuthorizationDelegate* authorization_delegate) argument
26416 ClearControl(const TPMI_RH_CLEAR& auth, const std::string& auth_name, const TPMI_YES_NO& disable, AuthorizationDelegate* authorization_delegate, const ClearControlResponse& callback) argument
26436 ClearControlSync(const TPMI_RH_CLEAR& auth, const std::string& auth_name, const TPMI_YES_NO& disable, AuthorizationDelegate* authorization_delegate) argument
27108 SerializeCommand_PP_Commands( const TPMI_RH_PLATFORM& auth, const std::string& auth_name, const TPML_CC& set_list, const TPML_CC& clear_list, std::string* serialized_command, AuthorizationDelegate* authorization_delegate) argument
27286 PP_Commands(const TPMI_RH_PLATFORM& auth, const std::string& auth_name, const TPML_CC& set_list, const TPML_CC& clear_list, AuthorizationDelegate* authorization_delegate, const PP_CommandsResponse& callback) argument
27307 PP_CommandsSync(const TPMI_RH_PLATFORM& auth, const std::string& auth_name, const TPML_CC& set_list, const TPML_CC& clear_list, AuthorizationDelegate* authorization_delegate) argument
28806 SerializeCommand_EvictControl( const TPMI_RH_PROVISION& auth, const std::string& auth_name, const TPMI_DH_OBJECT& object_handle, const std::string& object_handle_name, const TPMI_DH_PERSISTENT& persistent_handle, std::string* serialized_command, AuthorizationDelegate* authorization_delegate) argument
28986 EvictControl(const TPMI_RH_PROVISION& auth, const std::string& auth_name, const TPMI_DH_OBJECT& object_handle, const std::string& object_handle_name, const TPMI_DH_PERSISTENT& persistent_handle, AuthorizationDelegate* authorization_delegate, const EvictControlResponse& callback) argument
29009 EvictControlSync(const TPMI_RH_PROVISION& auth, const std::string& auth_name, const TPMI_DH_OBJECT& object_handle, const std::string& object_handle_name, const TPMI_DH_PERSISTENT& persistent_handle, AuthorizationDelegate* authorization_delegate) argument
29215 SerializeCommand_ClockSet( const TPMI_RH_PROVISION& auth, const std::string& auth_name, const UINT64& new_time, std::string* serialized_command, AuthorizationDelegate* authorization_delegate) argument
29384 ClockSet(const TPMI_RH_PROVISION& auth, const std::string& auth_name, const UINT64& new_time, AuthorizationDelegate* authorization_delegate, const ClockSetResponse& callback) argument
29404 ClockSetSync(const TPMI_RH_PROVISION& auth, const std::string& auth_name, const UINT64& new_time, AuthorizationDelegate* authorization_delegate) argument
29420 SerializeCommand_ClockRateAdjust( const TPMI_RH_PROVISION& auth, const std::string& auth_name, const TPM_CLOCK_ADJUST& rate_adjust, std::string* serialized_command, AuthorizationDelegate* authorization_delegate) argument
29591 ClockRateAdjust(const TPMI_RH_PROVISION& auth, const std::string& auth_name, const TPM_CLOCK_ADJUST& rate_adjust, AuthorizationDelegate* authorization_delegate, const ClockRateAdjustResponse& callback) argument
29611 ClockRateAdjustSync(const TPMI_RH_PROVISION& auth, const std::string& auth_name, const TPM_CLOCK_ADJUST& rate_adjust, AuthorizationDelegate* authorization_delegate) argument
30050 SerializeCommand_NV_DefineSpace( const TPMI_RH_PROVISION& auth_handle, const std::string& auth_handle_name, const TPM2B_AUTH& auth, const TPM2B_NV_PUBLIC& public_info, std::string* serialized_command, AuthorizationDelegate* authorization_delegate) argument
30237 NV_DefineSpace(const TPMI_RH_PROVISION& auth_handle, const std::string& auth_handle_name, const TPM2B_AUTH& auth, const TPM2B_NV_PUBLIC& public_info, AuthorizationDelegate* authorization_delegate, const NV_DefineSpaceResponse& callback) argument
30259 NV_DefineSpaceSync(const TPMI_RH_PROVISION& auth_handle, const std::string& auth_handle_name, const TPM2B_AUTH& auth, const TPM2B_NV_PUBLIC& public_info, AuthorizationDelegate* authorization_delegate) argument
[all...]
/system/netd/server/
H A DXfrmController.h100 XfrmAlgo auth; member in struct:android::net::XfrmEncapType::XfrmSaInfo
186 xfrm_algo_auth auth; member in struct:android::net::XfrmEncapType::XfrmController::nlattr_algo_auth
/system/vold/
H A DExt4Crypt.cpp173 const android::vold::KeyAuthentication& auth,
179 if (android::vold::retrieveKey(ce_key_path, auth, ce_key)) {
190 const android::vold::KeyAuthentication& auth) {
193 if (!read_and_fixate_user_ce_key(user_id, auth, &ce_key)) return false;
506 auto auth = secret.empty() ? kEmptyAuthentication
518 if (!android::vold::storeKeyAtomically(ce_key_path, user_key_temp, auth, ce_key)) return false;
549 android::vold::KeyAuthentication auth(token, secret);
550 if (!read_and_install_user_ce_key(user_id, auth)) {
172 read_and_fixate_user_ce_key(userid_t user_id, const android::vold::KeyAuthentication& auth, KeyBuffer *ce_key) argument
189 read_and_install_user_ce_key(userid_t user_id, const android::vold::KeyAuthentication& auth) argument
H A DKeyStorage.cpp108 static bool generateKeymasterKey(Keymaster& keymaster, const KeyAuthentication& auth, argument
116 if (auth.token.empty()) {
117 LOG(DEBUG) << "Creating key that doesn't need auth token";
121 if (auth.token.size() != sizeof(hw_auth_token_t)) {
123 << auth.token.size() << " bytes";
126 const hw_auth_token_t* at = reinterpret_cast<const hw_auth_token_t*>(auth.token.data());
134 static AuthorizationSet beginParams(const KeyAuthentication& auth, argument
141 if (!auth.token.empty()) {
142 LOG(DEBUG) << "Supplying auth token to Keymaster";
143 paramBuilder.Authorization(TAG_AUTH_TOKEN, blob2hidlVec(auth
255 getStretching(const KeyAuthentication& auth) argument
305 generateAppId(const KeyAuthentication& auth, const std::string& stretching, const std::string& salt, const std::string& secdiscardable, std::string* appId) argument
427 storeKey(const std::string& dir, const KeyAuthentication& auth, const KeyBuffer& key) argument
464 storeKeyAtomically(const std::string& key_path, const std::string& tmp_path, const KeyAuthentication& auth, const KeyBuffer& key) argument
483 retrieveKey(const std::string& dir, const KeyAuthentication& auth, KeyBuffer* key) argument
[all...]

Completed in 376 milliseconds