Home
last modified time | relevance | path

Searched refs:auth (Results 1 – 25 of 28) sorted by relevance

12

/system/vold/
DKeyStorage.h48 bool storeKey(const std::string& dir, const KeyAuthentication& auth, const KeyBuffer& key);
56 const KeyAuthentication& auth, const KeyBuffer& key);
59 bool retrieveKey(const std::string& dir, const KeyAuthentication& auth, KeyBuffer* key);
DKeyStorage.cpp422 static std::string getStretching(const KeyAuthentication& auth) { in getStretching() argument
423 if (auth.usesKeymaster()) { in getStretching()
447 static bool generateAppId(const KeyAuthentication& auth, const std::string& stretching, in generateAppId() argument
450 if (!stretchSecret(stretching, auth.secret, &stretched)) return false; in generateAppId()
575 bool storeKey(const std::string& dir, const KeyAuthentication& auth, const KeyBuffer& key) { in storeKey() argument
583 std::string stretching = getStretching(auth); in storeKey()
586 if (!generateAppId(auth, stretching, secdiscardable_hash, &appId)) return false; in storeKey()
588 if (auth.usesKeymaster()) { in storeKey()
605 const KeyAuthentication& auth, const KeyBuffer& key) { in storeKeyAtomically() argument
614 if (!storeKey(tmp_path, auth, key)) return false; in storeKeyAtomically()
[all …]
DFsCrypt.cpp198 const android::vold::KeyAuthentication& auth, in read_and_fixate_user_ce_key() argument
204 if (retrieveKey(ce_key_path, auth, ce_key)) { in read_and_fixate_user_ce_key()
293 const android::vold::KeyAuthentication& auth) { in read_and_install_user_ce_key() argument
298 if (!read_and_fixate_user_ce_key(user_id, auth, &ce_key)) return false; in read_and_install_user_ce_key()
660 android::vold::KeyAuthentication auth(secdiscardable_hash); in read_or_create_volkey() local
665 if (!retrieveOrGenerateKey(key_path, key_path + "_tmp", auth, makeGen(options), &key)) in read_or_create_volkey()
706 auto auth = authentication_from_hex(secret_hex); in fscrypt_add_user_key_auth() local
707 if (!auth) return false; in fscrypt_add_user_key_auth()
708 return fscrypt_rewrap_user_key(user_id, serial, kEmptyAuthentication, *auth); in fscrypt_add_user_key_auth()
714 auto auth = authentication_from_hex(secret_hex); in fscrypt_clear_user_key_auth() local
[all …]
/system/security/ondevice-signing/
DKeystoreHmacKey.cpp102 KeyParameter auth; in createKey() local
103 auth.tag = Tag::NO_AUTH_REQUIRED; in createKey()
104 auth.value = KeyParameterValue::make<KeyParameterValue::boolValue>(true); in createKey()
105 params.push_back(auth); in createKey()
134 for (const auto& auth : keyEntryResponse.metadata.authorizations) { in initialize() local
135 if (auth.keyParameter.tag == Tag::MAX_BOOT_LEVEL) { in initialize()
136 if (auth.keyParameter.value.get<KeyParameterValue::integer>() == kOdsignBootLevel) { in initialize()
DKeystoreKey.cpp109 KeyParameter auth; in createKey() local
110 auth.tag = Tag::NO_AUTH_REQUIRED; in createKey()
111 auth.value = KeyParameterValue::make<KeyParameterValue::boolValue>(true); in createKey()
112 params.push_back(auth); in createKey()
205 for (const auto& auth : keyEntryResponse.metadata.authorizations) { in verifyExistingKey() local
206 if (auth.keyParameter.tag == Tag::MAX_BOOT_LEVEL) { in verifyExistingKey()
207 if (auth.keyParameter.value.get<KeyParameterValue::integer>() == kOdsignBootLevel) { in verifyExistingKey()
/system/nfc/src/nfc/tags/
Drw_mfc.cc238 p_mfc->next_block.auth = true; in rw_mfc_handle_format_rsp()
239 p_mfc->last_block_accessed.auth = true; in rw_mfc_handle_format_rsp()
249 p_mfc->next_block.auth = false; in rw_mfc_handle_format_rsp()
250 p_mfc->last_block_accessed.auth = false; in rw_mfc_handle_format_rsp()
441 p_mfc->next_block.auth = true; in rw_mfc_handle_write_rsp()
442 p_mfc->last_block_accessed.auth = true; in rw_mfc_handle_write_rsp()
452 p_mfc->next_block.auth = false; in rw_mfc_handle_write_rsp()
453 p_mfc->last_block_accessed.auth = false; in rw_mfc_handle_write_rsp()
566 p_mfc->last_block_accessed.auth = false; in rw_mfc_select()
568 p_mfc->next_block.auth = false; in rw_mfc_select()
[all …]
/system/sepolicy/prebuilts/api/30.0/public/
Dfingerprintd.te18 # Need to add auth tokens to KeyStore
Dgatekeeperd.te23 # Need to add auth tokens to KeyStore
/system/sepolicy/prebuilts/api/29.0/public/
Dfingerprintd.te18 # Need to add auth tokens to KeyStore
Dgatekeeperd.te23 # Need to add auth tokens to KeyStore
/system/sepolicy/prebuilts/api/28.0/public/
Dfingerprintd.te18 # Need to add auth tokens to KeyStore
Dgatekeeperd.te24 # Need to add auth tokens to KeyStore
/system/sepolicy/prebuilts/api/31.0/public/
Dfingerprintd.te18 # Need to add auth tokens to KeyStore
Dgatekeeperd.te23 # Need to add auth tokens to KeyStore
/system/sepolicy/prebuilts/api/27.0/public/
Dfingerprintd.te18 # Need to add auth tokens to KeyStore
Dgatekeeperd.te24 # Need to add auth tokens to KeyStore
/system/sepolicy/public/
Dfingerprintd.te18 # Need to add auth tokens to KeyStore
Dgatekeeperd.te23 # Need to add auth tokens to KeyStore
/system/sepolicy/prebuilts/api/26.0/public/
Dfingerprintd.te18 # Need to add auth tokens to KeyStore
Dgatekeeperd.te24 # Need to add auth tokens to KeyStore
/system/netd/server/
DXfrmController.cpp561 saInfo.auth = XfrmAlgo{ in ipSecAddSecurityAssociation()
945 nlattr_algo_auth auth{}; in updateSecurityAssociation() local
978 {&auth, 0}, // adjust size if auth algo is present in updateSecurityAssociation()
992 if (!record.aead.name.empty() && (!record.auth.name.empty() || !record.crypt.name.empty())) { in updateSecurityAssociation()
998 if (record.aead.key.size() > MAX_KEY_LENGTH || record.auth.key.size() > MAX_KEY_LENGTH || in updateSecurityAssociation()
1019 len = iov[AUTH].iov_len = fillNlAttrXfrmAlgoAuth(record.auth, &auth); in updateSecurityAssociation()
1062 strncpy(algo->auth.alg_name, inAlgo.name.c_str(), sizeof(algo->auth.alg_name)); in fillNlAttrXfrmAlgoAuth()
1063 algo->auth.alg_key_len = inAlgo.key.size() * 8; // bits in fillNlAttrXfrmAlgoAuth()
1066 algo->auth.alg_trunc_len = inAlgo.truncLenBits; in fillNlAttrXfrmAlgoAuth()
DXfrmController.h126 XfrmAlgo auth; member
301 xfrm_algo_auth auth; member
/system/bt/doc/
Dpts_guide.md39 - `PTS_SmpOptions` sets SMP Pair options (formatted as hex bytes) `auth, io,
/system/nfc/src/nfc/include/
Drw_int.h634 bool auth; member
/system/sepolicy/prebuilts/api/30.0/private/
Dservice_contexts31 auth u:object_r:auth_service:s0

12