/system/security/keystore/ |
D | operation_struct.h | 43 characteristics(characteristics_), appToken(appToken_), authToken(), verificationToken(), in Operation() 48 bool hasAuthToken() const { return authToken.mac.size() != 0; } in hasAuthToken() 58 HardwareAuthToken authToken; member
|
D | keymaster_worker.cpp | 306 HardwareAuthToken authToken; in getAuthToken() local 308 std::tie(err, authToken) = keyStore_->getAuthTokenTable().FindAuthorization( in getAuthToken() 336 return {rc, std::move(authToken)}; in getAuthToken() 408 HardwareAuthToken authToken; in begin() local 409 std::tie(authRc, authToken) = getAuthToken(characteristics, 0 /* no challenge */, purpose, in begin() 440 purpose, *keyid, key_auths, opParams, authToken, 0 /* op_handle */, in begin() 473 opParams.hidl_data(), authToken, hidlCb)); in begin() 486 opParams.hidl_data(), authToken, hidlCb)); in begin() 515 if (authRc.isOk() && authToken.mac.size() && in begin() 521 HardwareAuthToken authToken, in begin() [all …]
|
D | key_store_service.cpp | 936 hw_auth_token_t authToken; in addAuthToken() local 937 memcpy(reinterpret_cast<void*>(&authToken), authTokenAsVector.data(), sizeof(hw_auth_token_t)); in addAuthToken() 938 if (authToken.version != 0) { in addAuthToken() 957 auto [err, authToken] = mKeyStore->getAuthTokenTable().FindAuthorizationForCredstore( in getTokensForCredstore() 969 std::vector<uint8_t> serializedAuthToken = authToken2HidlVec(authToken); in getTokensForCredstore() 983 challenge, {} /* params */, authToken, in getTokensForCredstore()
|
D | key_store_service.h | 133 ::android::binder::Status addAuthToken(const ::std::vector<uint8_t>& authToken,
|
D | keymaster_worker.h | 284 HardwareAuthToken authToken, begin_cb _hidl_cb);
|
/system/keymaster/ng/include/ |
D | AndroidKeymaster41Device.h | 87 const HardwareAuthToken& authToken, in verifyAuthorization() argument 89 return super::verifyAuthorization(challenge, parametersToVerify, authToken, _hidl_cb); in verifyAuthorization() 151 const hidl_vec<KeyParameter>& inParams, const HardwareAuthToken& authToken, in begin() argument 153 return super::begin(purpose, key, inParams, authToken, _hidl_cb); in begin() 157 const hidl_vec<uint8_t>& input, const HardwareAuthToken& authToken, in update() argument 160 return super::update(operationHandle, inParams, input, authToken, verificationToken, in update() 166 const HardwareAuthToken& authToken, in finish() argument 169 return super::finish(operationHandle, inParams, input, signature, authToken, in finish()
|
D | AndroidKeymaster4Device.h | 61 const HardwareAuthToken& authToken, 91 const hidl_vec<KeyParameter>& inParams, const HardwareAuthToken& authToken, 94 const hidl_vec<uint8_t>& input, const HardwareAuthToken& authToken, 98 const HardwareAuthToken& authToken,
|
/system/core/trusty/keymaster/4.0/ |
D | TrustyKeymaster4Device.cpp | 94 const HardwareAuthToken& authToken) { in injectAuthToken() argument 104 if (authToken.mac.size() == mac_len) { in injectAuthToken() 111 auth_token->challenge = authToken.challenge; in injectAuthToken() 112 auth_token->user_id = authToken.userId; in injectAuthToken() 113 auth_token->authenticator_id = authToken.authenticatorId; in injectAuthToken() 115 htobe32(static_cast<uint32_t>(authToken.authenticatorType)); in injectAuthToken() 116 auth_token->timestamp = htobe64(authToken.timestamp); in injectAuthToken() 118 memcpy(auth_token->hmac, authToken.mac.data(), mac_len); in injectAuthToken() 311 const HardwareAuthToken& authToken, verifyAuthorization_cb _hidl_cb) { in verifyAuthorization() argument 315 request.auth_token.challenge = authToken.challenge; in verifyAuthorization() [all …]
|
/system/vold/ |
D | KeyStorage.cpp | 168 km::HardwareAuthToken authToken; in beginParams() local 171 authToken = km::support::hidlVec2AuthToken(km::support::blob2hidlVec(auth.token)); in beginParams() 173 return {paramBuilder, authToken}; in beginParams() 233 const km::HardwareAuthToken& authToken, in begin() argument 241 auto opHandle = keymaster.begin(purpose, kmKey, inParams, authToken, outParams); in begin() 271 … const km::HardwareAuthToken& authToken, const KeyBuffer& message, in encryptWithKeymasterKey() argument 275 auto opHandle = begin(keymaster, dir, km::KeyPurpose::ENCRYPT, keyParams, opParams, authToken, in encryptWithKeymasterKey() 299 const km::HardwareAuthToken& authToken, in decryptWithKeymasterKey() argument 306 auto opHandle = begin(keymaster, dir, km::KeyPurpose::DECRYPT, keyParams, opParams, authToken, in decryptWithKeymasterKey() 511 km::HardwareAuthToken authToken; in storeKey() local [all …]
|
D | Keymaster.h | 127 const km::HardwareAuthToken& authToken,
|
D | Keymaster.cpp | 201 const km::HardwareAuthToken& authToken, in begin() argument 215 auto error = mDevice->begin(purpose, keyBlob, inParams.hidl_data(), authToken, hidlCb); in begin()
|
/system/security/identity/ |
D | Credential.cpp | 130 virtual Status onFinished(bool success, const vector<uint8_t>& authToken, in onFinished() argument 132 this->set_value({success, authToken, verificationToken}); in onFinished() 140 unsigned int authTokenMaxAgeMillis, vector<uint8_t>& authToken, in getTokensFromKeystore() argument 168 authToken = returnedAuthToken; in getTokensFromKeystore() 298 HardwareAuthToken authToken = in getEntries() local 301 aidlAuthToken.challenge = int64_t(authToken.challenge); in getEntries() 302 aidlAuthToken.userId = int64_t(authToken.userId); in getEntries() 303 aidlAuthToken.authenticatorId = int64_t(authToken.authenticatorId); in getEntries() 306 int32_t(authToken.authenticatorType)); in getEntries() 307 aidlAuthToken.timestamp.milliSeconds = int64_t(authToken.timestamp); in getEntries() [all …]
|
/system/core/trusty/keymaster/include/trusty_keymaster/ |
D | TrustyKeymaster4Device.h | 57 const HardwareAuthToken& authToken, 87 const hidl_vec<KeyParameter>& inParams, const HardwareAuthToken& authToken, 90 const hidl_vec<uint8_t>& input, const HardwareAuthToken& authToken, 94 const HardwareAuthToken& authToken,
|
/system/security/keystore/binder/android/security/keystore/ |
D | ICredstoreTokenCallback.aidl | 24 void onFinished(boolean success, in byte[] authToken, in byte[] verificationToken); in onFinished() argument
|
D | IKeystoreService.aidl | 73 int addAuthToken(in byte[] authToken); in addAuthToken() argument
|
/system/keymaster/ng/ |
D | AndroidKeymaster4Device.cpp | 280 const ::android::hardware::keymaster::V4_0::HardwareAuthToken& authToken, in verifyAuthorization() 286 request.auth_token.challenge = authToken.challenge; in verifyAuthorization() 287 request.auth_token.user_id = authToken.userId; in verifyAuthorization() 288 request.auth_token.authenticator_id = authToken.authenticatorId; in verifyAuthorization() 289 request.auth_token.authenticator_type = legacy_enum_conversion(authToken.authenticatorType); in verifyAuthorization() 290 request.auth_token.timestamp = authToken.timestamp; in verifyAuthorization() 291 KeymasterBlob mac(authToken.mac.data(), authToken.mac.size()); in verifyAuthorization() 494 const HardwareAuthToken& authToken, begin_cb _hidl_cb) { in begin() argument 501 hidl_vec<uint8_t> hidl_vec_token = authToken2HidlVec(authToken); in begin()
|